Class RelationalStructMetaData
java.lang.Object
com.apple.foundationdb.relational.api.RelationalStructMetaData
- All Implemented Interfaces:
StructMetaData
,Wrapper
-
Constructor Summary
ConstructorsConstructorDescriptionRelationalStructMetaData
(FieldDescription... columns) RelationalStructMetaData
(String name, FieldDescription... columns) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getArrayMetaData
(int oneBasedColumn) Get the Metadata for an array type.getCatalogName
(int oneBasedColumn) int
getColumnLabel
(int oneBasedColumn) getColumnName
(int oneBasedColumn) int
getColumnType
(int oneBasedColumn) getColumnTypeName
(int oneBasedColumn) int
getSchemaName
(int oneBasedColumn) getStructMetaData
(int oneBasedColumn) Get the Metadata for a nested struct type.getTableName
(int oneBasedColumn) Returns the name of the struct type.int
hashCode()
int
isNullable
(int oneBasedColumn) boolean
isWrapperFor
(Class<?> iface) <T> T
-
Constructor Details
-
RelationalStructMetaData
-
RelationalStructMetaData
-
-
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.
-
getColumnCount
- Specified by:
getColumnCount
in interfaceStructMetaData
- Throws:
SQLException
-
isNullable
- Specified by:
isNullable
in interfaceStructMetaData
- Throws:
SQLException
-
getColumnLabel
- Specified by:
getColumnLabel
in interfaceStructMetaData
- Throws:
SQLException
-
getColumnName
- Specified by:
getColumnName
in interfaceStructMetaData
- Throws:
SQLException
-
getSchemaName
- Specified by:
getSchemaName
in interfaceStructMetaData
- Throws:
SQLException
-
getTableName
- Specified by:
getTableName
in interfaceStructMetaData
- Throws:
SQLException
-
getCatalogName
- Specified by:
getCatalogName
in interfaceStructMetaData
- Throws:
SQLException
-
getColumnType
- Specified by:
getColumnType
in interfaceStructMetaData
- Throws:
SQLException
-
getColumnTypeName
- Specified by:
getColumnTypeName
in interfaceStructMetaData
- Throws:
SQLException
-
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.
-
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.
-
getLeadingPhantomColumnCount
public int getLeadingPhantomColumnCount()- Specified by:
getLeadingPhantomColumnCount
in interfaceStructMetaData
-
unwrap
- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperFor
in interfaceWrapper
-
getFields
-
equals
-
hashCode
public int hashCode()
-