public abstract static class JDBCValueMappings.AbstractValueReaderWriter<JALO,DB> extends Object implements JDBCValueMappings.ValueReader<JALO,DB>, JDBCValueMappings.ValueWriter<JALO,DB>
| Constructor and Description |
|---|
AbstractValueReaderWriter() |
| Modifier and Type | Method and Description |
|---|---|
JALO |
convertValueToJava(DB value) |
DB |
convertValueToSQL(JALO value) |
boolean |
getBoolean(ResultSet rs,
int idx) |
boolean |
getBoolean(ResultSet rs,
String fieldName) |
byte |
getByte(ResultSet rs,
int idx) |
byte |
getByte(ResultSet rs,
String fieldName) |
char |
getChar(ResultSet rs,
int idx) |
char |
getChar(ResultSet rs,
String fieldName) |
double |
getDouble(ResultSet rs,
int idx) |
double |
getDouble(ResultSet rs,
String fieldName) |
float |
getFloat(ResultSet rs,
int idx) |
float |
getFloat(ResultSet rs,
String fieldName) |
int |
getInt(ResultSet rs,
int idx) |
int |
getInt(ResultSet rs,
String fieldName) |
long |
getLong(ResultSet rs,
int idx) |
long |
getLong(ResultSet rs,
String fieldName) |
short |
getShort(ResultSet rs,
int idx) |
short |
getShort(ResultSet rs,
String fieldName) |
JALO |
getValue(ResultSet rs,
int idx) |
JALO |
getValue(ResultSet rs,
String fieldName) |
protected abstract DB |
readValue(ResultSet rs,
int idx) |
protected abstract DB |
readValue(ResultSet rs,
String fieldName) |
void |
setPrimitive(PreparedStatement stmt,
int fieldIndex,
boolean value) |
void |
setPrimitive(PreparedStatement stmt,
int fieldIndex,
byte value) |
void |
setPrimitive(PreparedStatement stmt,
int fieldIndex,
char value) |
void |
setPrimitive(PreparedStatement stmt,
int fieldIndex,
double value) |
void |
setPrimitive(PreparedStatement stmt,
int fieldIndex,
float value) |
void |
setPrimitive(PreparedStatement stmt,
int fieldIndex,
int value) |
void |
setPrimitive(PreparedStatement stmt,
int fieldIndex,
long value) |
void |
setPrimitive(PreparedStatement stmt,
int fieldIndex,
short value) |
void |
setPrimitive(PreparedStatement stmt,
int fieldIndex,
String value) |
void |
setValue(PreparedStatement stmt,
int fieldIndex,
JALO value) |
String |
toString() |
protected abstract void |
writeValue(PreparedStatement stmt,
int fieldIndex,
DB value) |
public JALO convertValueToJava(DB value)
convertValueToJava in interface JDBCValueMappings.ValueReader<JALO,DB>public final JALO getValue(ResultSet rs, String fieldName) throws SQLException
getValue in interface JDBCValueMappings.ValueReader<JALO,DB>SQLExceptionpublic final JALO getValue(ResultSet rs, int idx) throws SQLException
getValue in interface JDBCValueMappings.ValueReader<JALO,DB>SQLExceptionprotected abstract DB readValue(ResultSet rs, String fieldName) throws SQLException
SQLExceptionprotected abstract DB readValue(ResultSet rs, int idx) throws SQLException
SQLExceptionpublic DB convertValueToSQL(JALO value)
convertValueToSQL in interface JDBCValueMappings.ValueWriter<JALO,DB>public final void setValue(PreparedStatement stmt, int fieldIndex, JALO value) throws SQLException
setValue in interface JDBCValueMappings.ValueWriter<JALO,DB>SQLExceptionpublic final void setPrimitive(PreparedStatement stmt, int fieldIndex, String value) throws SQLException
SQLExceptionpublic final void setPrimitive(PreparedStatement stmt, int fieldIndex, long value) throws SQLException
setPrimitive in interface JDBCValueMappings.PrimitiveValueWriterSQLExceptionpublic final void setPrimitive(PreparedStatement stmt, int fieldIndex, byte value) throws SQLException
setPrimitive in interface JDBCValueMappings.PrimitiveValueWriterSQLExceptionpublic final void setPrimitive(PreparedStatement stmt, int fieldIndex, short value) throws SQLException
setPrimitive in interface JDBCValueMappings.PrimitiveValueWriterSQLExceptionpublic final void setPrimitive(PreparedStatement stmt, int fieldIndex, float value) throws SQLException
setPrimitive in interface JDBCValueMappings.PrimitiveValueWriterSQLExceptionpublic final void setPrimitive(PreparedStatement stmt, int fieldIndex, boolean value) throws SQLException
setPrimitive in interface JDBCValueMappings.PrimitiveValueWriterSQLExceptionpublic final void setPrimitive(PreparedStatement stmt, int fieldIndex, double value) throws SQLException
setPrimitive in interface JDBCValueMappings.PrimitiveValueWriterSQLExceptionpublic final void setPrimitive(PreparedStatement stmt, int fieldIndex, int value) throws SQLException
setPrimitive in interface JDBCValueMappings.PrimitiveValueWriterSQLExceptionpublic final void setPrimitive(PreparedStatement stmt, int fieldIndex, char value) throws SQLException
setPrimitive in interface JDBCValueMappings.PrimitiveValueWriterSQLExceptionpublic final short getShort(ResultSet rs, String fieldName) throws SQLException
getShort in interface JDBCValueMappings.PrimitiveValueReader0 if the db-entry was nullSQLExceptionpublic final short getShort(ResultSet rs, int idx) throws SQLException
getShort in interface JDBCValueMappings.PrimitiveValueReader0 if the db-entry was nullSQLExceptionpublic final long getLong(ResultSet rs, String fieldName) throws SQLException
getLong in interface JDBCValueMappings.PrimitiveValueReader0L if the db-entry was nullSQLExceptionpublic final long getLong(ResultSet rs, int idx) throws SQLException
getLong in interface JDBCValueMappings.PrimitiveValueReader0l if the db-entry was nullSQLExceptionpublic final double getDouble(ResultSet rs, String fieldName) throws SQLException
getDouble in interface JDBCValueMappings.PrimitiveValueReader0d if the db-entry was nullSQLExceptionpublic final double getDouble(ResultSet rs, int idx) throws SQLException
getDouble in interface JDBCValueMappings.PrimitiveValueReader0d if the db-entry was nullSQLExceptionpublic final char getChar(ResultSet rs, String fieldName) throws SQLException
getChar in interface JDBCValueMappings.PrimitiveValueReader' ' if the db-entry was nullSQLExceptionpublic final char getChar(ResultSet rs, int idx) throws SQLException
getChar in interface JDBCValueMappings.PrimitiveValueReader'0' if the db-entry was nullSQLExceptionpublic final byte getByte(ResultSet rs, String fieldName) throws SQLException
getByte in interface JDBCValueMappings.PrimitiveValueReader0 if the db-entry was nullSQLExceptionpublic final byte getByte(ResultSet rs, int idx) throws SQLException
getByte in interface JDBCValueMappings.PrimitiveValueReader0 if the db-entry was nullSQLExceptionpublic final float getFloat(ResultSet rs, String fieldName) throws SQLException
getFloat in interface JDBCValueMappings.PrimitiveValueReader0d if the db-entry was nullSQLExceptionpublic final float getFloat(ResultSet rs, int idx) throws SQLException
getFloat in interface JDBCValueMappings.PrimitiveValueReader0d if the db-entry was nullSQLExceptionpublic final int getInt(ResultSet rs, String fieldName) throws SQLException
getInt in interface JDBCValueMappings.PrimitiveValueReader0 if the db-entry was nullSQLExceptionpublic final int getInt(ResultSet rs, int idx) throws SQLException
getInt in interface JDBCValueMappings.PrimitiveValueReader0 if the db-entry was nullSQLExceptionpublic final boolean getBoolean(ResultSet rs, String fieldName) throws SQLException
getBoolean in interface JDBCValueMappings.PrimitiveValueReaderfalse if the db-entry was nullSQLExceptionpublic final boolean getBoolean(ResultSet rs, int idx) throws SQLException
getBoolean in interface JDBCValueMappings.PrimitiveValueReaderfalse if the db-entry was nullSQLExceptionprotected abstract void writeValue(PreparedStatement stmt, int fieldIndex, DB value) throws SQLException
SQLExceptionCopyright © 2017 SAP SE. All Rights Reserved.