public class CassandraParameterMetaData extends Object implements ParameterMetaData
ParameterMetaData.parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown| Constructor and Description |
|---|
CassandraParameterMetaData(com.datastax.oss.driver.api.core.cql.BoundStatement boundStatement,
int parametersCount)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getParameterClassName(int i) |
int |
getParameterCount() |
int |
getParameterMode(int i)
Retrieves the designated parameter's mode.
|
int |
getParameterType(int i) |
String |
getParameterTypeName(int i) |
int |
getPrecision(int i) |
int |
getScale(int i) |
int |
isNullable(int i)
Retrieves whether null values are allowed in the designated parameter.
|
boolean |
isSigned(int i) |
boolean |
isWrapperFor(Class<?> iface) |
<T> T |
unwrap(Class<T> iface) |
public CassandraParameterMetaData(com.datastax.oss.driver.api.core.cql.BoundStatement boundStatement,
int parametersCount)
boundStatement - The CQL bound statement from a CassandraPreparedStatement.parametersCount - The number of parameters in the prepared statement.public int getParameterCount()
getParameterCount in interface ParameterMetaDatapublic int isNullable(int i)
All columns are nullable in Cassandra so any parameter allows null values.
isNullable in interface ParameterMetaDatai - The parameter index considering the first parameter is 1, the second is 2, ...ParameterMetaData.parameterNullable in
this implementation.public boolean isSigned(int i)
throws SQLException
isSigned in interface ParameterMetaDataSQLExceptionpublic int getPrecision(int i)
throws SQLException
getPrecision in interface ParameterMetaDataSQLExceptionpublic int getScale(int i)
throws SQLException
getScale in interface ParameterMetaDataSQLExceptionpublic int getParameterType(int i)
getParameterType in interface ParameterMetaDatapublic String getParameterTypeName(int i)
getParameterTypeName in interface ParameterMetaDatapublic String getParameterClassName(int i)
getParameterClassName in interface ParameterMetaDatapublic int getParameterMode(int i)
Since Cassandra only supports prepared statements and not callable statements, the parameter's mode is always IN.
getParameterMode in interface ParameterMetaDatai - The parameter index considering the first parameter is 1, the second is 2, ...ParameterMetaData.parameterModeIn in this implementation.public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionCopyright © 2020–2024 ING Bank. All rights reserved.