public abstract class TypedStatementParameter<T> extends StatementParameterImpl
StatementParameter
.StatementParameterImpl.QueryType
log
Constructor and Description |
---|
TypedStatementParameter() |
TypedStatementParameter(java.lang.String query,
StatementParameterImpl.QueryType type,
java.lang.Boolean nullConvert,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
apply(int parameterIndex,
java.sql.PreparedStatement statement,
AdaptrisMessage msg)
Apply this statement parameter to the
PreparedStatement . |
protected T |
convert(java.lang.Object value) |
protected abstract T |
convertToType(java.lang.Object value) |
protected abstract T |
defaultValue() |
convertNull, getConvertNull, getHandler, getParameterLogger, getQueryString, getQueryType, getQueryValue, logger, setConvertNull, setParameterLogger, setQueryString, setQueryType
getName, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
makeCopy
public TypedStatementParameter()
public TypedStatementParameter(java.lang.String query, StatementParameterImpl.QueryType type, java.lang.Boolean nullConvert, java.lang.String name)
public final void apply(int parameterIndex, java.sql.PreparedStatement statement, AdaptrisMessage msg) throws java.sql.SQLException
JdbcStatementParameter
PreparedStatement
.parameterIndex
- the index in the PreparedStatement
statement
- the PreparedStatement
msg
- the AdaptrisMessagejava.sql.SQLException
- on exceptionprotected T convert(java.lang.Object value)
protected abstract T defaultValue()
protected abstract T convertToType(java.lang.Object value)