Package oracle.jdbc
Interface OracleParameterMetaData
- All Superinterfaces:
ParameterMetaData,Wrapper
This interface defines the Oracle extensions to the standard JDBC
interface
java.sql.ParameterMetaData. For pre-JDK 1.4
applications, this interface provides the equivalent functions in
java.sql.ParameterMetaData. Applications can use
java.sql.ParameterMetaData where they do not make use
of Oracle extensions. However, when an application uses the Oracle
extensions to java.sql.ParameterMetaData, it must use
oracle.jdbc.OracleParameterMetaData.
This is an interface that can be used to get information about the types
and properties of the parameters in a PreparedStatement object.
-
Field Summary
Fields inherited from interface java.sql.ParameterMetaData
parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown -
Method Summary
Modifier and TypeMethodDescriptiongetVectorMetaData(int param) Returns the metadata for a VECTOR parameter, ornullif the parameter is not a VECTOR.voidquery(Connection conn) Re-query the database for parameter types.Methods inherited from interface java.sql.ParameterMetaData
getParameterClassName, getParameterCount, getParameterMode, getParameterType, getParameterTypeName, getPrecision, getScale, isNullable, isSignedMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Method Details
-
query
Re-query the database for parameter types. This method will re-query the types in the database without re-parsing the statement (if possible). This method will parse the statement again if the ParameterMetadata cache is enabled and oracle.jdbc.parameterMetadataCacheIncludeParsing (system property) is set to false (default value). For any other use case, this method will re-use the parsing information and only re-issue the database queries.- Parameters:
conn- - the connection to use to query the database.- Throws:
SQLException- - if there was an error processing the queries.
-
getVectorMetaData
Returns the metadata for a VECTOR parameter, ornullif the parameter is not a VECTOR.- Parameters:
param- the first parameter 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
-