public class CallableParameterMetaData extends Object implements ParameterMetaData
| Modifier and Type | Field and Description |
|---|---|
protected OceanBaseConnection |
con |
protected String |
database |
protected boolean |
isFunction |
protected String |
name |
protected String |
obOraclePackageName |
protected String |
obOracleSchema |
protected static Pattern |
PARAMETER_PATTERN |
protected List<com.oceanbase.jdbc.CallParameter> |
params |
protected String |
query |
protected static Pattern |
RETURN_PATTERN |
protected boolean |
valid |
parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown| Constructor and Description |
|---|
CallableParameterMetaData(OceanBaseConnection con,
String database,
String name,
boolean isFunction)
Retrieve Callable metaData.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateMetadataFromPrepareResultSet(ServerPrepareResult serverPrepareResult) |
String |
getDatabase() |
String |
getName(int param) |
com.oceanbase.jdbc.CallParameter |
getParam(int index) |
com.oceanbase.jdbc.CallParameter |
getParamByName(String name) |
String |
getParameterClassName(int param) |
int |
getParameterCount() |
int |
getParameterMode(int param)
Get mode info.
|
int |
getParameterType(int param) |
String |
getParameterTypeName(int param) |
int |
getPrecision(int param) |
String |
getProName() |
int |
getScale(int param) |
int |
isNullable(int param) |
boolean |
isSigned(int param) |
boolean |
isWrapperFor(Class<?> iface) |
protected int |
mapMariaDbTypeToJdbc(String str) |
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 RETURN_PATTERN
protected final OceanBaseConnection con
protected final String name
protected List<com.oceanbase.jdbc.CallParameter> params
protected String obOraclePackageName
protected String obOracleSchema
protected String database
protected boolean valid
protected boolean isFunction
protected String query
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
SQLExceptionprotected int mapMariaDbTypeToJdbc(String str)
public int getParameterCount()
getParameterCount in interface ParameterMetaDatapublic com.oceanbase.jdbc.CallParameter getParamByName(String name)
public com.oceanbase.jdbc.CallParameter getParam(int index)
throws SQLException
SQLExceptionpublic int isNullable(int param)
throws SQLException
isNullable in interface ParameterMetaDataSQLExceptionpublic boolean isSigned(int param)
throws SQLException
isSigned in interface ParameterMetaDataSQLExceptionpublic int getPrecision(int param)
throws SQLException
getPrecision in interface ParameterMetaDataSQLExceptionpublic int getScale(int param)
throws SQLException
getScale in interface ParameterMetaDataSQLExceptionpublic int getParameterType(int param)
throws SQLException
getParameterType in interface ParameterMetaDataSQLExceptionpublic String getParameterTypeName(int param) throws SQLException
getParameterTypeName in interface ParameterMetaDataSQLExceptionpublic String getParameterClassName(int param) throws SQLException
getParameterClassName in interface ParameterMetaDataSQLExceptionpublic int getParameterMode(int param)
throws SQLException
getParameterMode in interface ParameterMetaDataparam - parameter indexSQLException - if index is wrongpublic String getName(int param) throws SQLException
SQLExceptionpublic boolean isWrapperFor(Class<?> iface)
isWrapperFor in interface WrapperCopyright © 2022 oceanbase.com. All rights reserved.