Class StructResultSetMetaData
java.lang.Object
com.apple.foundationdb.relational.api.StructResultSetMetaData
- All Implemented Interfaces:
RelationalResultSetMetaData
,StructMetaData
,ResultSetMetaData
,Wrapper
@API(EXPERIMENTAL)
public class StructResultSetMetaData
extends Object
implements RelationalResultSetMetaData
-
Field Summary
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArrayMetaData
(int oneBasedColumn) Get the Metadata for an array type.int
getColumnLabel
(int column) getColumnName
(int column) int
getColumnType
(int column) getColumnTypeName
(int column) getStructMetaData
(int oneBasedColumn) Get the Metadata for a nested struct type.Returns the name of the struct type.int
isNullable
(int oneBasedColumn) <T> T
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.apple.foundationdb.relational.api.RelationalResultSetMetaData
getCatalogName, getColumnClassName, getColumnDisplaySize, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isReadOnly, isSearchable, isSigned, isWrapperFor, isWritable
Methods inherited from interface com.apple.foundationdb.relational.api.StructMetaData
getLeadingPhantomColumnCount
-
Constructor Details
-
StructResultSetMetaData
-
-
Method Details
-
getTypeName
Description copied from interface:StructMetaData
Returns the name of the struct type. The user can set the struct type name in SQL explicitly by usingstruct <name> (...)
clause.
For example:SELECT struct Foo (a, b) from T
will give the struct(a, b)
the namefoo
.- Specified by:
getTypeName
in interfaceStructMetaData
- Returns:
- The name of the struct type.
- Throws:
SQLException
-
getColumnCount
- Specified by:
getColumnCount
in interfaceResultSetMetaData
- Specified by:
getColumnCount
in interfaceStructMetaData
- Throws:
SQLException
-
getColumnName
- Specified by:
getColumnName
in interfaceResultSetMetaData
- Specified by:
getColumnName
in interfaceStructMetaData
- Throws:
SQLException
-
getColumnLabel
- Specified by:
getColumnLabel
in interfaceRelationalResultSetMetaData
- Specified by:
getColumnLabel
in interfaceResultSetMetaData
- Specified by:
getColumnLabel
in interfaceStructMetaData
- Throws:
SQLException
-
getColumnType
- Specified by:
getColumnType
in interfaceResultSetMetaData
- Specified by:
getColumnType
in interfaceStructMetaData
- Throws:
SQLException
-
getColumnTypeName
- Specified by:
getColumnTypeName
in interfaceRelationalResultSetMetaData
- Specified by:
getColumnTypeName
in interfaceResultSetMetaData
- Specified by:
getColumnTypeName
in interfaceStructMetaData
- Throws:
SQLException
-
getArrayMetaData
Description copied from interface:StructMetaData
Get the Metadata for an array type. If the column is not an array type, this will throw an error.- Specified by:
getArrayMetaData
in interfaceStructMetaData
- Parameters:
oneBasedColumn
- the position of the column, indexed at 1- Returns:
- the metadata for the array at column
oneBasedColumn
- Throws:
SQLException
- if the type of the column is not an array, or if something else goes wrong.
-
getStructMetaData
Description copied from interface:StructMetaData
Get the Metadata for a nested struct type. If the column is not a struct type, this will throw an error.- Specified by:
getStructMetaData
in interfaceStructMetaData
- Parameters:
oneBasedColumn
- the position of the column, indexed at 1- Returns:
- the metadata for the struct at column
oneBasedColumn
- Throws:
SQLException
- if the type of the column is not a struct, or if something else goes wrong.
-
isNullable
- Specified by:
isNullable
in interfaceRelationalResultSetMetaData
- Specified by:
isNullable
in interfaceResultSetMetaData
- Specified by:
isNullable
in interfaceStructMetaData
- Throws:
SQLException
-
unwrap
- Specified by:
unwrap
in interfaceRelationalResultSetMetaData
- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-