public class CallableParameterMetaData extends Object implements ParameterMetaData
parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown
Constructor and Description |
---|
CallableParameterMetaData(MariaDbConnection con,
String database,
String name,
boolean isFunction,
boolean noAccessToMetadata)
Retrieve Callable metaData.
|
Modifier and Type | Method and Description |
---|---|
String |
getDatabase() |
String |
getName(int param) |
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) |
int |
getScale(int param) |
int |
isNullable(int param) |
boolean |
isSigned(int param) |
boolean |
isWrapperFor(Class<?> iface) |
void |
readMetadata()
Read procedure metadata from mysql.proc table(column param_list).
|
void |
readMetadataFromDbIfRequired()
Search metaData if not already loaded.
|
protected void |
setParams(List<org.mariadb.jdbc.CallParameter> params) |
<T> T |
unwrap(Class<T> iface) |
public CallableParameterMetaData(MariaDbConnection con, String database, String name, boolean isFunction, boolean noAccessToMetadata)
con
- connectiondatabase
- database namename
- procedure/function nameisFunction
- is it a functionnoAccessToMetadata
- tell if metadata information cannot be access from current userpublic void readMetadataFromDbIfRequired() throws SQLException
SQLException
- if error append during loading metaDatapublic void readMetadata() throws SQLException
SQLException
- if data doesn't correspond.public int getParameterCount() throws SQLException
getParameterCount
in interface ParameterMetaData
SQLException
public int isNullable(int param) throws SQLException
isNullable
in interface ParameterMetaData
SQLException
public boolean isSigned(int param) throws SQLException
isSigned
in interface ParameterMetaData
SQLException
public int getPrecision(int param) throws SQLException
getPrecision
in interface ParameterMetaData
SQLException
public int getScale(int param) throws SQLException
getScale
in interface ParameterMetaData
SQLException
public int getParameterType(int param) throws SQLException
getParameterType
in interface ParameterMetaData
SQLException
public String getParameterTypeName(int param) throws SQLException
getParameterTypeName
in interface ParameterMetaData
SQLException
public String getParameterClassName(int param) throws SQLException
getParameterClassName
in interface ParameterMetaData
SQLException
public int getParameterMode(int param) throws SQLException
getParameterMode
in interface ParameterMetaData
param
- parameter indexSQLException
- if index is wrongpublic String getName(int param) throws SQLException
SQLException
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface Wrapper
SQLException
public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
public String getDatabase() throws SQLException
SQLException
protected void setParams(List<org.mariadb.jdbc.CallParameter> params)
Copyright © 2016. All rights reserved.