public abstract static class JDBCValueMappings.AbstractValueReaderWriter<JALO,DB> extends java.lang.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(java.sql.ResultSet rs,
int idx) |
boolean |
getBoolean(java.sql.ResultSet rs,
java.lang.String fieldName) |
byte |
getByte(java.sql.ResultSet rs,
int idx) |
byte |
getByte(java.sql.ResultSet rs,
java.lang.String fieldName) |
char |
getChar(java.sql.ResultSet rs,
int idx) |
char |
getChar(java.sql.ResultSet rs,
java.lang.String fieldName) |
double |
getDouble(java.sql.ResultSet rs,
int idx) |
double |
getDouble(java.sql.ResultSet rs,
java.lang.String fieldName) |
float |
getFloat(java.sql.ResultSet rs,
int idx) |
float |
getFloat(java.sql.ResultSet rs,
java.lang.String fieldName) |
int |
getInt(java.sql.ResultSet rs,
int idx) |
int |
getInt(java.sql.ResultSet rs,
java.lang.String fieldName) |
long |
getLong(java.sql.ResultSet rs,
int idx) |
long |
getLong(java.sql.ResultSet rs,
java.lang.String fieldName) |
short |
getShort(java.sql.ResultSet rs,
int idx) |
short |
getShort(java.sql.ResultSet rs,
java.lang.String fieldName) |
JALO |
getValue(java.sql.ResultSet rs,
int idx) |
JALO |
getValue(java.sql.ResultSet rs,
java.lang.String fieldName) |
protected abstract DB |
readValue(java.sql.ResultSet rs,
int idx) |
protected abstract DB |
readValue(java.sql.ResultSet rs,
java.lang.String fieldName) |
void |
setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
boolean value) |
void |
setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
byte value) |
void |
setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
char value) |
void |
setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
double value) |
void |
setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
float value) |
void |
setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
int value) |
void |
setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
long value) |
void |
setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
short value) |
void |
setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
java.lang.String value) |
void |
setValue(java.sql.PreparedStatement stmt,
int fieldIndex,
JALO value) |
java.lang.String |
toString() |
protected abstract void |
writeValue(java.sql.PreparedStatement stmt,
int fieldIndex,
DB value) |
public JALO convertValueToJava(DB value)
convertValueToJava in interface JDBCValueMappings.ValueReader<JALO,DB>public final JALO getValue(java.sql.ResultSet rs, java.lang.String fieldName) throws java.sql.SQLException
getValue in interface JDBCValueMappings.ValueReader<JALO,DB>java.sql.SQLExceptionpublic final JALO getValue(java.sql.ResultSet rs, int idx) throws java.sql.SQLException
getValue in interface JDBCValueMappings.ValueReader<JALO,DB>java.sql.SQLExceptionprotected abstract DB readValue(java.sql.ResultSet rs, java.lang.String fieldName) throws java.sql.SQLException
java.sql.SQLExceptionprotected abstract DB readValue(java.sql.ResultSet rs, int idx) throws java.sql.SQLException
java.sql.SQLExceptionpublic DB convertValueToSQL(JALO value)
convertValueToSQL in interface JDBCValueMappings.ValueWriter<JALO,DB>public final void setValue(java.sql.PreparedStatement stmt,
int fieldIndex,
JALO value)
throws java.sql.SQLException
setValue in interface JDBCValueMappings.ValueWriter<JALO,DB>java.sql.SQLExceptionpublic final void setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
java.lang.String value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic final void setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
long value)
throws java.sql.SQLException
setPrimitive in interface JDBCValueMappings.PrimitiveValueWriterjava.sql.SQLExceptionpublic final void setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
byte value)
throws java.sql.SQLException
setPrimitive in interface JDBCValueMappings.PrimitiveValueWriterjava.sql.SQLExceptionpublic final void setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
short value)
throws java.sql.SQLException
setPrimitive in interface JDBCValueMappings.PrimitiveValueWriterjava.sql.SQLExceptionpublic final void setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
float value)
throws java.sql.SQLException
setPrimitive in interface JDBCValueMappings.PrimitiveValueWriterjava.sql.SQLExceptionpublic final void setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
boolean value)
throws java.sql.SQLException
setPrimitive in interface JDBCValueMappings.PrimitiveValueWriterjava.sql.SQLExceptionpublic final void setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
double value)
throws java.sql.SQLException
setPrimitive in interface JDBCValueMappings.PrimitiveValueWriterjava.sql.SQLExceptionpublic final void setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
int value)
throws java.sql.SQLException
setPrimitive in interface JDBCValueMappings.PrimitiveValueWriterjava.sql.SQLExceptionpublic final void setPrimitive(java.sql.PreparedStatement stmt,
int fieldIndex,
char value)
throws java.sql.SQLException
setPrimitive in interface JDBCValueMappings.PrimitiveValueWriterjava.sql.SQLExceptionpublic final short getShort(java.sql.ResultSet rs,
java.lang.String fieldName)
throws java.sql.SQLException
getShort in interface JDBCValueMappings.PrimitiveValueReader0 if the db-entry was nulljava.sql.SQLExceptionpublic final short getShort(java.sql.ResultSet rs,
int idx)
throws java.sql.SQLException
getShort in interface JDBCValueMappings.PrimitiveValueReader0 if the db-entry was nulljava.sql.SQLExceptionpublic final long getLong(java.sql.ResultSet rs,
java.lang.String fieldName)
throws java.sql.SQLException
getLong in interface JDBCValueMappings.PrimitiveValueReader0L if the db-entry was nulljava.sql.SQLExceptionpublic final long getLong(java.sql.ResultSet rs,
int idx)
throws java.sql.SQLException
getLong in interface JDBCValueMappings.PrimitiveValueReader0l if the db-entry was nulljava.sql.SQLExceptionpublic final double getDouble(java.sql.ResultSet rs,
java.lang.String fieldName)
throws java.sql.SQLException
getDouble in interface JDBCValueMappings.PrimitiveValueReader0d if the db-entry was nulljava.sql.SQLExceptionpublic final double getDouble(java.sql.ResultSet rs,
int idx)
throws java.sql.SQLException
getDouble in interface JDBCValueMappings.PrimitiveValueReader0d if the db-entry was nulljava.sql.SQLExceptionpublic final char getChar(java.sql.ResultSet rs,
java.lang.String fieldName)
throws java.sql.SQLException
getChar in interface JDBCValueMappings.PrimitiveValueReader' ' if the db-entry was nulljava.sql.SQLExceptionpublic final char getChar(java.sql.ResultSet rs,
int idx)
throws java.sql.SQLException
getChar in interface JDBCValueMappings.PrimitiveValueReader'0' if the db-entry was nulljava.sql.SQLExceptionpublic final byte getByte(java.sql.ResultSet rs,
java.lang.String fieldName)
throws java.sql.SQLException
getByte in interface JDBCValueMappings.PrimitiveValueReader0 if the db-entry was nulljava.sql.SQLExceptionpublic final byte getByte(java.sql.ResultSet rs,
int idx)
throws java.sql.SQLException
getByte in interface JDBCValueMappings.PrimitiveValueReader0 if the db-entry was nulljava.sql.SQLExceptionpublic final float getFloat(java.sql.ResultSet rs,
java.lang.String fieldName)
throws java.sql.SQLException
getFloat in interface JDBCValueMappings.PrimitiveValueReader0d if the db-entry was nulljava.sql.SQLExceptionpublic final float getFloat(java.sql.ResultSet rs,
int idx)
throws java.sql.SQLException
getFloat in interface JDBCValueMappings.PrimitiveValueReader0d if the db-entry was nulljava.sql.SQLExceptionpublic final int getInt(java.sql.ResultSet rs,
java.lang.String fieldName)
throws java.sql.SQLException
getInt in interface JDBCValueMappings.PrimitiveValueReader0 if the db-entry was nulljava.sql.SQLExceptionpublic final int getInt(java.sql.ResultSet rs,
int idx)
throws java.sql.SQLException
getInt in interface JDBCValueMappings.PrimitiveValueReader0 if the db-entry was nulljava.sql.SQLExceptionpublic final boolean getBoolean(java.sql.ResultSet rs,
java.lang.String fieldName)
throws java.sql.SQLException
getBoolean in interface JDBCValueMappings.PrimitiveValueReaderfalse if the db-entry was nulljava.sql.SQLExceptionpublic final boolean getBoolean(java.sql.ResultSet rs,
int idx)
throws java.sql.SQLException
getBoolean in interface JDBCValueMappings.PrimitiveValueReaderfalse if the db-entry was nulljava.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Objectprotected abstract void writeValue(java.sql.PreparedStatement stmt,
int fieldIndex,
DB value)
throws java.sql.SQLException
java.sql.SQLExceptionCopyright © 2018 SAP SE. All Rights Reserved.