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