Package oracle.jdbc
Interface OracleTypeMetaData.Struct
- All Superinterfaces:
OracleTypeMetaData
- All Known Implementing Classes:
StructDescriptor
- Enclosing interface:
- OracleTypeMetaData
This nested interface defines additional methods for struct types
-
Nested Class Summary
Nested classes/interfaces inherited from interface oracle.jdbc.OracleTypeMetaData
OracleTypeMetaData.Array, OracleTypeMetaData.ArrayStorage, OracleTypeMetaData.Kind, OracleTypeMetaData.Opaque, OracleTypeMetaData.Struct -
Method Summary
Modifier and TypeMethodDescriptionintThe number of fields in the Object Type.intReturns the number of attributes defined in the subtype.Gets the metadata regarding this type.String[]Returns the SQL type names of the direct subtypes.Returns the SQL type name of the direct subtype.intbooleanIndicates whether the object type is a final type.booleanIndicates whether the object type is instantiable.booleanIndicates whether the object type is a subtype.Methods inherited from interface oracle.jdbc.OracleTypeMetaData
getKind, getName, getSchemaName, getSQLName, getTypeCode, getTypeCodeName
-
Method Details
-
getTypeVersion
- Throws:
SQLException
-
getLength
The number of fields in the Object Type.- Returns:
- the size.
- Throws:
SQLException
-
getMetaData
Gets the metadata regarding this type. The return ResultSetMetaData contains the attribute name, attribute type id and attribute type precision information. The column index in ResultSetMetaData maps to the position of the attribute in a Struct (with the first attribute being at index 1).- Returns:
- a ResultSetMetaData object that contains the type info
- Throws:
SQLException
-
isFinalType
Indicates whether the object type is a final type.- Returns:
- true if the object type is a final type and false otherwise.
- Throws:
SQLException
-
isSubtype
Indicates whether the object type is a subtype.- Returns:
- true if the object type is a subtype and false otherwise.
- Throws:
SQLException
-
isInstantiable
Indicates whether the object type is instantiable.- Returns:
- true if the object type is instantiable and false otherwise.
- Throws:
SQLException
-
getSupertypeName
Returns the SQL type name of the direct subtype.- Returns:
- the fully qualified name of the supertype. Returns null if the object type is not a subtype.
- Throws:
SQLException
-
getLocalAttributeCount
Returns the number of attributes defined in the subtype.- Returns:
- number of subtype attributes.
- Throws:
SQLException
-
getSubtypeNames
Returns the SQL type names of the direct subtypes.- Returns:
- the fully qualified name of the direct subtypes. Returns an empty String array if there is no subtypes.
- Throws:
SQLException
-