Package oracle.jdbc
Interface OracleResultSetMetaData
- All Superinterfaces:
ResultSetMetaData,Wrapper
- All Known Subinterfaces:
StructMetaData
An object that can be used to get information about the types
and properties of the columns in a ResultSet object.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumeXtensible Data Security (XDS) attribute. -
Field Summary
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotations(int column) Since 23ai, annotations can be specified to schema objects such as tables, views and columns.getDomainName(int column) Gets the domain name for input column index.getDomainSchema(int column) Gets the domain schema for input column index.intgetScale(int column) Gets the designated column's number of digits to the right of the decimal point.getSecurityAttribute(int indexOfColumnInResultSet) Returns the eXtensible Data Security (XDS) attribute of this column.getVectorMetaData(int column) Returns the metadata for a VECTOR column, ornullif the column is not a VECTOR.booleanisColumnInvisible(int indexOfColumnInResultSet) Returns the column visibility information of the specified column.booleanisColumnJSON(int column) Returns true if the specified column contains JSON data otherwise returns false.booleanisNCHAR(int index) isNCHAR (int)booleanisVariableScale(int column) If the scale of Oracle NUMBER, FLOAT, DECIMAL and DOUBLE database datatype is unspecified this method returnstrue.Methods inherited from interface java.sql.ResultSetMetaData
getCatalogName, getColumnClassName, getColumnCount, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnType, getColumnTypeName, getPrecision, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWritableMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Method Details
-
isNCHAR
isNCHAR (int)- Parameters:
index- the column index- Returns:
- true if the column is of type NCHAR/NVARCHAR/NCLOB false if the column is not of type NCHAR/NVARCHAR/NCLOB
- Throws:
SQLException
-
getSecurityAttribute
OracleResultSetMetaData.SecurityAttribute getSecurityAttribute(int indexOfColumnInResultSet) throws SQLException Returns the eXtensible Data Security (XDS) attribute of this column.- Throws:
SQLException- See Also:
-
OracleResultSet.getAuthorizationIndicator
-
isColumnInvisible
Returns the column visibility information of the specified column.An invisible column is a user defined/specified hidden column which can be later changed to visible. It is created as:
create table test_tab (col1 integer invisible, col2 integer);It can be modified later by using:
alter table test_tab modify (col1 visible);- Parameters:
indexOfColumnInResultSet- the column index- Returns:
- true if the column is invisible false if the column is not invisible
- Throws:
SQLException
-
isVariableScale
If the scale of Oracle NUMBER, FLOAT, DECIMAL and DOUBLE database datatype is unspecified this method returnstrue. Oracle database returns -127 if scale is unspecified.- Parameters:
column- the first column is 1, the second is 2, ...- Returns:
- true if the column type has variable scale
- Throws:
SQLException
-
isColumnJSON
Returns true if the specified column contains JSON data otherwise returns false.A columns that always contains JSON data is a textual (VARCHAR2 or CLOB) or binary (BLOB) table column with an IS JSON check constraint or a view column that has an underlying JSON generation function .
- Parameters:
column- the column index- Returns:
- true if the column contains JSON data false if the column does not contain JSON data
- Throws:
SQLException
-
getScale
Gets the designated column's number of digits to the right of the decimal point.An Oracle NUMBER data type can be defined with a scale that ranges from -84 to 127. When the scale is not specified, the special value -127 will be returned by this method. It has no other meaning than to indicate that the scale isn't set.
For data types that don't have a scale, the value 0 is returned.
- Specified by:
getScalein interfaceResultSetMetaData- Parameters:
column- the first column is 1, the second is 2, ...- Returns:
- scale
- Throws:
SQLException- if a database access error occurs
-
getDomainName
Gets the domain name for input column index.- Parameters:
column- the column index- Returns:
- the domain name for input column index
- Throws:
SQLException
-
getDomainSchema
Gets the domain schema for input column index.- Parameters:
column- the column index- Returns:
- the domain schema for input column index
- Throws:
SQLException
-
getAnnotations
Since 23ai, annotations can be specified to schema objects such as tables, views and columns. Annotations is a mechanism to store application metadata centrally in the database. Annotations can be specified at creation time or at modification time. An individual annotation has a name and an optional value. Both the name and the value are freeform text fields. A schema object can have multiple annotations.getAnnotations(int)is used for getting annotation associated with column. Please referOracleDatabaseMetaDatafor table and view annotations.- Parameters:
column- the column index- Returns:
- Returns
annotationsassociated for the given column index.
If there are noannotationsthen returnsnull. - Throws:
SQLException- Since:
- 23ai
- See Also:
-
getVectorMetaData
Returns the metadata for a VECTOR column, ornullif the column is not a VECTOR.- Parameters:
column- the first column is 1, the second is 2, ...- Returns:
- VECTOR column metadata, or
nullif the column is not a VECTOR. - Throws:
SQLException- if a database access error occurs- Since:
- 23.4
-