public class MariaDbParameterMetaData
extends java.lang.Object
implements java.sql.ParameterMetaData
Modifier and Type | Field and Description |
---|---|
private ColumnInformation[] |
parametersInformation |
Constructor and Description |
---|
MariaDbParameterMetaData(ColumnInformation[] parametersInformation) |
Modifier and Type | Method and Description |
---|---|
private void |
checkAvailable() |
java.lang.String |
getParameterClassName(int param) |
int |
getParameterCount() |
private ColumnInformation |
getParameterInformation(int param) |
int |
getParameterMode(int param) |
int |
getParameterType(int param)
Parameter type are not sent by server.
|
java.lang.String |
getParameterTypeName(int param) |
int |
getPrecision(int param) |
int |
getScale(int param) |
int |
isNullable(int param) |
boolean |
isSigned(int param) |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
<T> T |
unwrap(java.lang.Class<T> iface) |
private final ColumnInformation[] parametersInformation
public MariaDbParameterMetaData(ColumnInformation[] parametersInformation)
private void checkAvailable() throws java.sql.SQLException
java.sql.SQLException
public int getParameterCount() throws java.sql.SQLException
getParameterCount
in interface java.sql.ParameterMetaData
java.sql.SQLException
private ColumnInformation getParameterInformation(int param) throws java.sql.SQLException
java.sql.SQLException
public int isNullable(int param) throws java.sql.SQLException
isNullable
in interface java.sql.ParameterMetaData
java.sql.SQLException
public boolean isSigned(int param) throws java.sql.SQLException
isSigned
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int getPrecision(int param) throws java.sql.SQLException
getPrecision
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int getScale(int param) throws java.sql.SQLException
getScale
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int getParameterType(int param) throws java.sql.SQLException
getParameterType
in interface java.sql.ParameterMetaData
param
- parameter numberjava.sql.SQLException
- a feature not supported, since server doesn't sent the right informationpublic java.lang.String getParameterTypeName(int param) throws java.sql.SQLException
getParameterTypeName
in interface java.sql.ParameterMetaData
java.sql.SQLException
public java.lang.String getParameterClassName(int param) throws java.sql.SQLException
getParameterClassName
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int getParameterMode(int param)
getParameterMode
in interface java.sql.ParameterMetaData
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException
unwrap
in interface java.sql.Wrapper
java.sql.SQLException
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException
isWrapperFor
in interface java.sql.Wrapper
java.sql.SQLException