|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
OJB implements the mapping conventions for JDBC as specified by the JDBC 3.0 specification and this class representing the jdbc java types of the sql types mappings - e.g. VARCHAR --> String, NUMERIC --> BigDecimal (see JDBC 3.0 specification Appendix B, Data Type Conversion Tables).
We differ two types of fields, immutable (like Integer, Long, String, ...) and mutable (like Date, byte[], most SQL3 datatypes, ...).
| Method Summary | |
java.lang.Object |
copy(java.lang.Object fieldValue)
Returns a copy of the specified persistent class field (e.g. |
boolean |
equals(java.lang.Object firstValue,
java.lang.Object secondValue)
Returns true if the field value hasn't changed. |
int |
getSqlType()
Returns the sql Types of this field. |
boolean |
isMutable()
Returns true if the field type is mutable, e.g. |
void |
setSqlType(JdbcType jdbcType)
Dets the associated sql field type of this field. |
| Method Detail |
public java.lang.Object copy(java.lang.Object fieldValue)
fieldValue - The field to copy.
public boolean equals(java.lang.Object firstValue,
java.lang.Object secondValue)
firstValue - A field value object.secondValue - A field value object.
public int getSqlType()
Types of this field.
public void setSqlType(JdbcType jdbcType)
jdbcType - The associated JdbcType.public boolean isMutable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||