Class RelationalStructMetaData
java.lang.Object
com.apple.foundationdb.relational.api.RelationalStructMetaData
- All Implemented Interfaces:
StructMetaData,Wrapper
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetArrayMetaData(int oneBasedColumn) Get the Metadata for an array type.getCatalogName(int oneBasedColumn) intgetColumnLabel(int oneBasedColumn) getColumnName(int oneBasedColumn) intgetColumnType(int oneBasedColumn) getColumnTypeName(int oneBasedColumn) intGet theDataTypeobject equivalent of this metadata.getSchemaName(int oneBasedColumn) getStructMetaData(int oneBasedColumn) Get the Metadata for a nested struct type.getTableName(int oneBasedColumn) Returns the name of the struct type.inthashCode()intisNullable(int oneBasedColumn) booleanisWrapperFor(Class<?> iface) static RelationalStructMetaDataof(DataType.StructType type) <T> T
-
Method Details
-
of
-
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.
-
getColumnCount
- Specified by:
getColumnCountin interfaceStructMetaData- Throws:
SQLException
-
isNullable
- Specified by:
isNullablein interfaceStructMetaData- Throws:
SQLException
-
getColumnLabel
- Specified by:
getColumnLabelin interfaceStructMetaData- Throws:
SQLException
-
getColumnName
- Specified by:
getColumnNamein interfaceStructMetaData- Throws:
SQLException
-
getSchemaName
- Specified by:
getSchemaNamein interfaceStructMetaData- Throws:
SQLException
-
getTableName
- Specified by:
getTableNamein interfaceStructMetaData- Throws:
SQLException
-
getCatalogName
- Specified by:
getCatalogNamein interfaceStructMetaData- Throws:
SQLException
-
getColumnType
- Specified by:
getColumnTypein interfaceStructMetaData- Throws:
SQLException
-
getColumnTypeName
- Specified by:
getColumnTypeNamein interfaceStructMetaData- Throws:
SQLException
-
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.
-
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.
-
getLeadingPhantomColumnCount
public int getLeadingPhantomColumnCount()- Specified by:
getLeadingPhantomColumnCountin interfaceStructMetaData
-
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.
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper
-
equals
-
hashCode
public int hashCode()
-