public class MysqlParameterMetadata
extends java.lang.Object
implements java.sql.ParameterMetaData
Modifier and Type | Field and Description |
---|---|
(package private) ResultSetMetaData |
metadata |
(package private) int |
parameterCount |
(package private) boolean |
returnSimpleMetadata |
Constructor and Description |
---|
MysqlParameterMetadata(Field[] fieldInfo,
int parameterCount,
ExceptionInterceptor exceptionInterceptor) |
MysqlParameterMetadata(int count)
Used for "fake" basic metadata for client-side prepared statements when
we don't know the parameter types.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getParameterClassName(int arg0) |
int |
getParameterCount() |
int |
getParameterMode(int arg0) |
int |
getParameterType(int arg0) |
java.lang.String |
getParameterTypeName(int arg0) |
int |
getPrecision(int arg0) |
int |
getScale(int arg0) |
int |
isNullable(int arg0) |
boolean |
isSigned(int arg0) |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
<T> T |
unwrap(java.lang.Class<T> iface) |
boolean returnSimpleMetadata
ResultSetMetaData metadata
int parameterCount
MysqlParameterMetadata(Field[] fieldInfo, int parameterCount, ExceptionInterceptor exceptionInterceptor)
MysqlParameterMetadata(int count)
parameterCount
- public int getParameterCount() throws java.sql.SQLException
getParameterCount
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int isNullable(int arg0) throws java.sql.SQLException
isNullable
in interface java.sql.ParameterMetaData
java.sql.SQLException
public boolean isSigned(int arg0) throws java.sql.SQLException
isSigned
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int getPrecision(int arg0) throws java.sql.SQLException
getPrecision
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int getScale(int arg0) throws java.sql.SQLException
getScale
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int getParameterType(int arg0) throws java.sql.SQLException
getParameterType
in interface java.sql.ParameterMetaData
java.sql.SQLException
public java.lang.String getParameterTypeName(int arg0) throws java.sql.SQLException
getParameterTypeName
in interface java.sql.ParameterMetaData
java.sql.SQLException
public java.lang.String getParameterClassName(int arg0) throws java.sql.SQLException
getParameterClassName
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int getParameterMode(int arg0) throws java.sql.SQLException
getParameterMode
in interface java.sql.ParameterMetaData
java.sql.SQLException
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException
isWrapperFor
in interface java.sql.Wrapper
java.sql.SQLException
Wrapper.isWrapperFor(Class)
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException
unwrap
in interface java.sql.Wrapper
java.sql.SQLException
Wrapper.unwrap(Class)