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.intgetColumnLabel(int column) getColumnName(int column) intgetColumnType(int column) getColumnTypeName(int column) Get theDataTypeobject equivalent of this metadata.getStructMetaData(int oneBasedColumn) Get the Metadata for a nested struct type.Returns the name of the struct type.intisNullable(int oneBasedColumn) <T> TMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.apple.foundationdb.relational.api.RelationalResultSetMetaData
getCatalogName, getColumnClassName, getColumnDisplaySize, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isReadOnly, isSearchable, isSigned, isWrapperFor, isWritableMethods inherited from interface com.apple.foundationdb.relational.api.StructMetaData
getLeadingPhantomColumnCount
-
Constructor Details
-
StructResultSetMetaData
-
-
Method Details
-
getTypeName
Description copied from interface:StructMetaDataReturns 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 Twill give the struct(a, b)the namefoo.- Specified by:
getTypeNamein interfaceStructMetaData- Returns:
- The name of the struct type.
- Throws:
SQLException
-
getColumnCount
- Specified by:
getColumnCountin interfaceResultSetMetaData- Specified by:
getColumnCountin interfaceStructMetaData- Throws:
SQLException
-
getColumnName
- Specified by:
getColumnNamein interfaceResultSetMetaData- Specified by:
getColumnNamein interfaceStructMetaData- Throws:
SQLException
-
getColumnLabel
- Specified by:
getColumnLabelin interfaceRelationalResultSetMetaData- Specified by:
getColumnLabelin interfaceResultSetMetaData- Specified by:
getColumnLabelin interfaceStructMetaData- Throws:
SQLException
-
getColumnType
- Specified by:
getColumnTypein interfaceResultSetMetaData- Specified by:
getColumnTypein interfaceStructMetaData- Throws:
SQLException
-
getColumnTypeName
- Specified by:
getColumnTypeNamein interfaceRelationalResultSetMetaData- Specified by:
getColumnTypeNamein interfaceResultSetMetaData- Specified by:
getColumnTypeNamein interfaceStructMetaData- Throws:
SQLException
-
getArrayMetaData
Description copied from interface:StructMetaDataGet the Metadata for an array type. If the column is not an array type, this will throw an error.- Specified by:
getArrayMetaDatain 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.
-
getRelationalDataType
Description copied from interface:StructMetaDataGet theDataTypeobject equivalent of this metadata.- Specified by:
getRelationalDataTypein interfaceStructMetaData- Returns:
- the datatype object.
- Throws:
SQLException- if something goes wrong.
-
getStructMetaData
Description copied from interface:StructMetaDataGet the Metadata for a nested struct type. If the column is not a struct type, this will throw an error.- Specified by:
getStructMetaDatain 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:
isNullablein interfaceRelationalResultSetMetaData- Specified by:
isNullablein interfaceResultSetMetaData- Specified by:
isNullablein interfaceStructMetaData- Throws:
SQLException
-
unwrap
- Specified by:
unwrapin interfaceRelationalResultSetMetaData- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-