public class IntegerValueAccessor extends java.lang.Object implements ValueAccessor
LOGGER| Constructor and Description |
|---|
IntegerValueAccessor() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getJavaType(BaseElement elem) |
int |
getJdbcType() |
java.lang.Integer |
getRowValue(java.sql.ResultSet rs,
BaseElement elem)
Returns a query result value corresponding with a
elem from rs. |
void |
setParameter(java.sql.PreparedStatement ps,
int pos,
java.lang.Object value)
Sets the query parameter value corresponding with
pos. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassForColumnClassNamepublic int getJdbcType()
getJdbcType in interface ValueAccessorTypes id this accessor handles.public java.lang.Class<?> getJavaType(BaseElement elem)
getJavaType in interface ValueAccessorjava.sql.Types#CLOB maps to java.sql.CLOB (appendix
table B.3 from the JDBC 4.2 specification) the actual type generated for CLOB is String.public java.lang.Integer getRowValue(java.sql.ResultSet rs,
BaseElement elem)
throws java.sql.SQLException
ValueAccessorelem from rs.getRowValue in interface ValueAccessorrs - The result set containing rows of column valueselem - The query column from which to find a valueelem. Note, the type of the value must match the Java type returned from
elem.getType().java.sql.SQLExceptionpublic void setParameter(java.sql.PreparedStatement ps,
int pos,
java.lang.Object value)
throws java.sql.SQLException
ValueAccessorpos.setParameter in interface ValueAccessorps - The prepared statement containing the parameterized query.pos - The index of the parameter, beginning with 1.value - The value of the parameterjava.sql.SQLExceptionCopyright © 2023. All rights reserved.