public class CallableParameterMetaData extends Object implements ParameterMetaData
| 限定符和类型 | 字段和说明 |
|---|---|
protected List<com.oceanbase.jdbc.CallParameter> |
allParams |
protected OceanBaseConnection |
con |
protected String |
database |
protected boolean |
isFunction |
protected boolean |
isOracleMode |
protected String |
name |
protected String |
obOraclePackageName |
protected String |
obOracleSchema |
protected SQLException |
outputParamSetParamValueException |
protected static Pattern |
PARAMETER_PATTERN |
protected static Pattern |
PARAMETER_PATTERN_MYSQL_MODE_NOT_INFORMATION_SCHEMA |
protected List<com.oceanbase.jdbc.CallParameter> |
placeholderParams |
protected int[] |
placeholderToParameterIndexMap
placeholderToParameterIndexMap[i] = j
The assignment placeholderToParameterIndexMap[i] = j
indicates that the (i+1)th placeholder in the SQL string corresponds to the (j+1)th parameter in the SQL command.
|
protected String |
query |
protected static Pattern |
RETURN_PATTERN |
protected boolean |
valid |
| 构造器和说明 |
|---|
CallableParameterMetaData(OceanBaseConnection con,
String database,
String name,
boolean isFunction)
Retrieve Callable metaData.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
generateMetadataFromPrepareResultSet(ServerPrepareResult serverPrepareResult) |
String |
getDatabase() |
String |
getName(int param) |
com.oceanbase.jdbc.CallParameter |
getParam(int index) |
String |
getParameterClassName(int param) |
int |
getParameterCount()
When it is an Oracle function, return the number of placeholder type parameters in SQL
|
int |
getParameterMode(int param)
Get mode info.
|
int |
getParameterType(int param) |
String |
getParameterTypeName(int param) |
com.oceanbase.jdbc.CallParameter |
getPlaceholderParam(int index) |
int |
getPrecision(int param) |
String |
getProName() |
int |
getScale(int param) |
boolean |
hasEmptyPlaceholderParams() |
int |
isNullable(int param) |
boolean |
isSigned(int param) |
boolean |
isWrapperFor(Class<?> iface) |
void |
readMetadataFromDbIfRequired()
Search metaData if not already loaded.
|
void |
readMetadataFromDbIfRequired(String query,
String arguments,
Boolean isObFunction) |
<T> T |
unwrap(Class<T> iface) |
protected static final Pattern PARAMETER_PATTERN
protected static final Pattern PARAMETER_PATTERN_MYSQL_MODE_NOT_INFORMATION_SCHEMA
protected static final Pattern RETURN_PATTERN
protected final OceanBaseConnection con
protected boolean isOracleMode
protected final String name
protected List<com.oceanbase.jdbc.CallParameter> placeholderParams
protected List<com.oceanbase.jdbc.CallParameter> allParams
protected int[] placeholderToParameterIndexMap
protected String obOraclePackageName
protected String obOracleSchema
protected String database
protected boolean valid
protected boolean isFunction
protected String query
protected SQLException outputParamSetParamValueException
public CallableParameterMetaData(OceanBaseConnection con, String database, String name, boolean isFunction)
con - connectiondatabase - database namename - procedure/function nameisFunction - is it a functionpublic String getProName()
public String getDatabase()
public void readMetadataFromDbIfRequired()
throws SQLException
SQLException - if error append during loading metaDatapublic void generateMetadataFromPrepareResultSet(ServerPrepareResult serverPrepareResult) throws SQLException
SQLExceptionpublic void readMetadataFromDbIfRequired(String query, String arguments, Boolean isObFunction) throws SQLException
SQLExceptionpublic int getParameterCount()
getParameterCount 在接口中 ParameterMetaDatapublic com.oceanbase.jdbc.CallParameter getParam(int index)
throws SQLException
SQLExceptionpublic int isNullable(int param)
throws SQLException
isNullable 在接口中 ParameterMetaDataSQLExceptionpublic boolean isSigned(int param)
throws SQLException
isSigned 在接口中 ParameterMetaDataSQLExceptionpublic int getPrecision(int param)
throws SQLException
getPrecision 在接口中 ParameterMetaDataSQLExceptionpublic int getScale(int param)
throws SQLException
getScale 在接口中 ParameterMetaDataSQLExceptionpublic int getParameterType(int param)
throws SQLException
getParameterType 在接口中 ParameterMetaDataSQLExceptionpublic String getParameterTypeName(int param) throws SQLException
getParameterTypeName 在接口中 ParameterMetaDataSQLExceptionpublic String getParameterClassName(int param) throws SQLException
getParameterClassName 在接口中 ParameterMetaDataSQLExceptionpublic int getParameterMode(int param)
throws SQLException
getParameterMode 在接口中 ParameterMetaDataparam - parameter indexSQLException - if index is wrongpublic String getName(int param) throws SQLException
SQLExceptionpublic boolean isWrapperFor(Class<?> iface)
isWrapperFor 在接口中 Wrapperpublic boolean hasEmptyPlaceholderParams()
public com.oceanbase.jdbc.CallParameter getPlaceholderParam(int index)
Copyright © 2024 oceanbase.com. All rights reserved.