Package org.mariadb.jdbc
Class SimpleParameterMetaData
- java.lang.Object
-
- org.mariadb.jdbc.SimpleParameterMetaData
-
- All Implemented Interfaces:
java.sql.ParameterMetaData,java.sql.Wrapper
public class SimpleParameterMetaData extends java.lang.Object implements java.sql.ParameterMetaDataVery basic info about the parameterized query, only reliable method is getParameterCount().
-
-
Field Summary
Fields Modifier and Type Field Description private intparameterCount
-
Constructor Summary
Constructors Constructor Description SimpleParameterMetaData(int parameterCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetParameterClassName(int param)intgetParameterCount()intgetParameterMode(int param)intgetParameterType(int param)Parameter type are not sent by server.java.lang.StringgetParameterTypeName(int param)intgetPrecision(int param)intgetScale(int param)intisNullable(int param)booleanisSigned(int param)booleanisWrapperFor(java.lang.Class<?> iface)<T> Tunwrap(java.lang.Class<T> iface)
-
-
-
Method Detail
-
getParameterCount
public int getParameterCount() throws java.sql.SQLException- Specified by:
getParameterCountin interfacejava.sql.ParameterMetaData- Throws:
java.sql.SQLException
-
isNullable
public int isNullable(int param) throws java.sql.SQLException- Specified by:
isNullablein interfacejava.sql.ParameterMetaData- Throws:
java.sql.SQLException
-
isSigned
public boolean isSigned(int param) throws java.sql.SQLException- Specified by:
isSignedin interfacejava.sql.ParameterMetaData- Throws:
java.sql.SQLException
-
getPrecision
public int getPrecision(int param) throws java.sql.SQLException- Specified by:
getPrecisionin interfacejava.sql.ParameterMetaData- Throws:
java.sql.SQLException
-
getScale
public int getScale(int param) throws java.sql.SQLException- Specified by:
getScalein interfacejava.sql.ParameterMetaData- Throws:
java.sql.SQLException
-
getParameterType
public int getParameterType(int param) throws java.sql.SQLExceptionParameter type are not sent by server. See https://jira.mariadb.org/browse/CONJ-568 and https://jira.mariadb.org/browse/MDEV-15031- Specified by:
getParameterTypein interfacejava.sql.ParameterMetaData- Parameters:
param- parameter number- Returns:
- SQL type from java.sql.Types
- Throws:
java.sql.SQLException- a feature not supported, since server doesn't sent the right information
-
getParameterTypeName
public java.lang.String getParameterTypeName(int param) throws java.sql.SQLException- Specified by:
getParameterTypeNamein interfacejava.sql.ParameterMetaData- Throws:
java.sql.SQLException
-
getParameterClassName
public java.lang.String getParameterClassName(int param) throws java.sql.SQLException- Specified by:
getParameterClassNamein interfacejava.sql.ParameterMetaData- Throws:
java.sql.SQLException
-
getParameterMode
public int getParameterMode(int param)
- Specified by:
getParameterModein interfacejava.sql.ParameterMetaData
-
unwrap
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException- Specified by:
unwrapin interfacejava.sql.Wrapper- Throws:
java.sql.SQLException
-
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException- Specified by:
isWrapperForin interfacejava.sql.Wrapper- Throws:
java.sql.SQLException
-
-