Class JDBCValueMappings.AbstractValueReaderWriter<JALO,DB>
java.lang.Object
de.hybris.platform.persistence.property.JDBCValueMappings.AbstractValueReaderWriter<JALO,DB>
- All Implemented Interfaces:
JDBCValueMappings.PrimitiveValueReader,JDBCValueMappings.PrimitiveValueWriter,JDBCValueMappings.ValueReader<JALO,,DB> JDBCValueMappings.ValueWriter<JALO,DB>
- Direct Known Subclasses:
JDBCValueMappings.BlobValueWriter,JDBCValueMappings.DefaultDateTimestampValueReaderWriter,JDBCValueMappings.DefaultIntegerValueReaderWriter,JDBCValueMappings.DefaultLongReaderWriter,JDBCValueMappings.DefaultStringValueReaderWriter,JDBCValueMappings.ItemPropertyValueReaderWriter,JDBCValueMappings.ItemReaderWriter,JDBCValueMappings.PKReaderWriter
- Enclosing class:
- JDBCValueMappings
public abstract static class JDBCValueMappings.AbstractValueReaderWriter<JALO,DB>
extends Object
implements JDBCValueMappings.ValueReader<JALO,DB>, JDBCValueMappings.ValueWriter<JALO,DB>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertValueToJava(DB value) convertValueToSQL(JALO value) final booleangetBoolean(ResultSet rs, int idx) final booleangetBoolean(ResultSet rs, String fieldName) final bytefinal bytefinal charfinal charfinal doublefinal doublefinal floatfinal floatfinal intfinal intfinal longfinal longfinal shortfinal shortfinal JALOfinal JALOprotected abstract DBprotected abstract DBfinal voidsetPrimitive(PreparedStatement stmt, int fieldIndex, boolean value) final voidsetPrimitive(PreparedStatement stmt, int fieldIndex, byte value) final voidsetPrimitive(PreparedStatement stmt, int fieldIndex, char value) final voidsetPrimitive(PreparedStatement stmt, int fieldIndex, double value) final voidsetPrimitive(PreparedStatement stmt, int fieldIndex, float value) final voidsetPrimitive(PreparedStatement stmt, int fieldIndex, int value) final voidsetPrimitive(PreparedStatement stmt, int fieldIndex, long value) final voidsetPrimitive(PreparedStatement stmt, int fieldIndex, short value) final voidsetPrimitive(PreparedStatement stmt, int fieldIndex, String value) final voidsetValue(PreparedStatement stmt, int fieldIndex, JALO value) toString()protected abstract voidwriteValue(PreparedStatement stmt, int fieldIndex, DB value)
-
Constructor Details
-
AbstractValueReaderWriter
public AbstractValueReaderWriter()
-
-
Method Details
-
convertValueToJava
- Specified by:
convertValueToJavain interfaceJDBCValueMappings.ValueReader<JALO,DB>
-
getValue
- Specified by:
getValuein interfaceJDBCValueMappings.ValueReader<JALO,DB> - Throws:
SQLException
-
getValue
- Specified by:
getValuein interfaceJDBCValueMappings.ValueReader<JALO,DB> - Throws:
SQLException
-
readValue
- Throws:
SQLException
-
readValue
- Throws:
SQLException
-
convertValueToSQL
- Specified by:
convertValueToSQLin interfaceJDBCValueMappings.ValueWriter<JALO,DB>
-
setValue
- Specified by:
setValuein interfaceJDBCValueMappings.ValueWriter<JALO,DB> - Throws:
SQLException
-
setPrimitive
public final void setPrimitive(PreparedStatement stmt, int fieldIndex, String value) throws SQLException - Throws:
SQLException
-
setPrimitive
public final void setPrimitive(PreparedStatement stmt, int fieldIndex, long value) throws SQLException - Specified by:
setPrimitivein interfaceJDBCValueMappings.PrimitiveValueWriter- Throws:
SQLException
-
setPrimitive
public final void setPrimitive(PreparedStatement stmt, int fieldIndex, byte value) throws SQLException - Specified by:
setPrimitivein interfaceJDBCValueMappings.PrimitiveValueWriter- Throws:
SQLException
-
setPrimitive
public final void setPrimitive(PreparedStatement stmt, int fieldIndex, short value) throws SQLException - Specified by:
setPrimitivein interfaceJDBCValueMappings.PrimitiveValueWriter- Throws:
SQLException
-
setPrimitive
public final void setPrimitive(PreparedStatement stmt, int fieldIndex, float value) throws SQLException - Specified by:
setPrimitivein interfaceJDBCValueMappings.PrimitiveValueWriter- Throws:
SQLException
-
setPrimitive
public final void setPrimitive(PreparedStatement stmt, int fieldIndex, boolean value) throws SQLException - Specified by:
setPrimitivein interfaceJDBCValueMappings.PrimitiveValueWriter- Throws:
SQLException
-
setPrimitive
public final void setPrimitive(PreparedStatement stmt, int fieldIndex, double value) throws SQLException - Specified by:
setPrimitivein interfaceJDBCValueMappings.PrimitiveValueWriter- Throws:
SQLException
-
setPrimitive
public final void setPrimitive(PreparedStatement stmt, int fieldIndex, int value) throws SQLException - Specified by:
setPrimitivein interfaceJDBCValueMappings.PrimitiveValueWriter- Throws:
SQLException
-
setPrimitive
public final void setPrimitive(PreparedStatement stmt, int fieldIndex, char value) throws SQLException - Specified by:
setPrimitivein interfaceJDBCValueMappings.PrimitiveValueWriter- Throws:
SQLException
-
getShort
- Specified by:
getShortin interfaceJDBCValueMappings.PrimitiveValueReader- Returns:
0if the db-entry was null- Throws:
SQLException
-
getShort
- Specified by:
getShortin interfaceJDBCValueMappings.PrimitiveValueReader- Returns:
0if the db-entry was null- Throws:
SQLException
-
getLong
- Specified by:
getLongin interfaceJDBCValueMappings.PrimitiveValueReader- Returns:
0Lif the db-entry was null- Throws:
SQLException
-
getLong
- Specified by:
getLongin interfaceJDBCValueMappings.PrimitiveValueReader- Returns:
0lif the db-entry was null- Throws:
SQLException
-
getDouble
- Specified by:
getDoublein interfaceJDBCValueMappings.PrimitiveValueReader- Returns:
0dif the db-entry was null- Throws:
SQLException
-
getDouble
- Specified by:
getDoublein interfaceJDBCValueMappings.PrimitiveValueReader- Returns:
0dif the db-entry was null- Throws:
SQLException
-
getChar
- Specified by:
getCharin interfaceJDBCValueMappings.PrimitiveValueReader- Returns:
' 'if the db-entry was null- Throws:
SQLException
-
getChar
- Specified by:
getCharin interfaceJDBCValueMappings.PrimitiveValueReader- Returns:
'0'if the db-entry was null- Throws:
SQLException
-
getByte
- Specified by:
getBytein interfaceJDBCValueMappings.PrimitiveValueReader- Returns:
0if the db-entry was null- Throws:
SQLException
-
getByte
- Specified by:
getBytein interfaceJDBCValueMappings.PrimitiveValueReader- Returns:
0if the db-entry was null- Throws:
SQLException
-
getFloat
- Specified by:
getFloatin interfaceJDBCValueMappings.PrimitiveValueReader- Returns:
0dif the db-entry was null- Throws:
SQLException
-
getFloat
- Specified by:
getFloatin interfaceJDBCValueMappings.PrimitiveValueReader- Returns:
0dif the db-entry was null- Throws:
SQLException
-
getInt
- Specified by:
getIntin interfaceJDBCValueMappings.PrimitiveValueReader- Returns:
0if the db-entry was null- Throws:
SQLException
-
getInt
- Specified by:
getIntin interfaceJDBCValueMappings.PrimitiveValueReader- Returns:
0if the db-entry was null- Throws:
SQLException
-
getBoolean
- Specified by:
getBooleanin interfaceJDBCValueMappings.PrimitiveValueReader- Returns:
falseif the db-entry was null- Throws:
SQLException
-
getBoolean
- Specified by:
getBooleanin interfaceJDBCValueMappings.PrimitiveValueReader- Returns:
falseif the db-entry was null- Throws:
SQLException
-
toString
-
writeValue
protected abstract void writeValue(PreparedStatement stmt, int fieldIndex, DB value) throws SQLException - Throws:
SQLException
-