Package org.monetdb.monetdbe
Class MonetParameterMetaData
java.lang.Object
org.monetdb.monetdbe.MonetWrapper
org.monetdb.monetdbe.MonetParameterMetaData
- All Implemented Interfaces:
ParameterMetaData,Wrapper
public class MonetParameterMetaData extends MonetWrapper implements ParameterMetaData
A
ParameterMetaData suitable for the MonetDB embedded database.
An object that can be used to get information about the types and properties for each parameter marker in a PreparedStatement object.-
Field Summary
Fields Modifier and Type Field Description protected String[]monetTypesThe MonetDB types of the parameters as stringsprotected intparameterCountNumber of parametersprotected int[]sqlTypesThe JDBC SQL types of the parametersprotected int[]typesThe MonetDB types of the parameters as integersFields inherited from interface java.sql.ParameterMetaData
parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown -
Method Summary
Modifier and Type Method Description StringgetParameterClassName(int param)Returns the fully-qualified name of the Java class whose instances are manufactured if the method ResultSet.getObject is called to retrieve a value from the column.intgetParameterCount()Retrieves the number of parameters in the PreparedStatement object for which this ParameterMetaData object contains information.intgetParameterMode(int param)Retrieves the designated parameter's mode.intgetParameterType(int param)Retrieves the designated parameter's SQL type.StringgetParameterTypeName(int param)Retrieves the designated parameter's MonetDBe type name as a String.intgetPrecision(int param)Retrieves the designated parameter's specified column size.intgetScale(int param)Retrieves the designated parameter's number of digits to right of the decimal point.intisNullable(int param)Retrieves whether null values are allowed in the designated parameter.booleanisSigned(int param)Retrieves whether values for the designated parameter can be signed numbers.
-
Field Details
-
parameterCount
protected final int parameterCountNumber of parameters -
types
protected final int[] typesThe MonetDB types of the parameters as integers -
monetTypes
The MonetDB types of the parameters as strings -
sqlTypes
protected final int[] sqlTypesThe JDBC SQL types of the parameters
-
-
Method Details
-
getParameterCount
Retrieves the number of parameters in the PreparedStatement object for which this ParameterMetaData object contains information.- Specified by:
getParameterCountin interfaceParameterMetaData- Returns:
- the number of parameters
- Throws:
SQLException
-
isNullable
Retrieves whether null values are allowed in the designated parameter. Currently not supported.- Specified by:
isNullablein interfaceParameterMetaData- Parameters:
param- Parameter number (starts at 1)- Returns:
- the nullability status of the given parameter; one of ParameterMetaData.parameterNoNulls, ParameterMetaData.parameterNullable, or ParameterMetaData.parameterNullableUnknown
- Throws:
SQLException
-
isSigned
Retrieves whether values for the designated parameter can be signed numbers.- Specified by:
isSignedin interfaceParameterMetaData- Parameters:
param- Parameter number (starts at 1)- Returns:
- true if so; false otherwise
- Throws:
SQLException
-
getPrecision
Retrieves the designated parameter's specified column size. The returned value represents the maximum column size for the given parameter.- Specified by:
getPrecisionin interfaceParameterMetaData- Parameters:
param- Parameter number (starts at 1)- Returns:
- precision
- Throws:
SQLException
-
getScale
Retrieves the designated parameter's number of digits to right of the decimal point. Currently not supported.- Specified by:
getScalein interfaceParameterMetaData- Parameters:
param- Parameter number (starts at 1)- Returns:
- scale
- Throws:
SQLException
-
getParameterType
Retrieves the designated parameter's SQL type.- Specified by:
getParameterTypein interfaceParameterMetaData- Parameters:
param- Parameter number (starts at 1)- Returns:
- SQL type from java.sql.Types
- Throws:
SQLException- if the column parameter is out of bounds
-
getParameterTypeName
Retrieves the designated parameter's MonetDBe type name as a String.- Specified by:
getParameterTypeNamein interfaceParameterMetaData- Parameters:
param- Parameter number (starts at 1)- Returns:
- MonetDBe type
- Throws:
SQLException- if the column parameter is out of bounds
-
getParameterClassName
Returns the fully-qualified name of the Java class whose instances are manufactured if the method ResultSet.getObject is called to retrieve a value from the column.- Specified by:
getParameterClassNamein interfaceParameterMetaData- Parameters:
param- Parameter number (starts at 1)- Returns:
- the fully-qualified name of the class in the Java programming language that would be used by the method ResultSet.getObject to retrieve the value in the specified column
- Throws:
SQLException- if the column parameter is out of bounds
-
getParameterMode
Retrieves the designated parameter's mode. MonetDB doesn't support OUT parameters, so we return ParameterMetaData.parameterModeIn always.- Specified by:
getParameterModein interfaceParameterMetaData- Parameters:
param- Parameter number (starts at 1)- Returns:
- ParameterMetaData.parameterModeIn
- Throws:
SQLException
-