|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FieldType
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 |
---|
java.lang.Object copy(java.lang.Object fieldValue)
fieldValue
- The field to copy.
boolean equals(java.lang.Object firstValue, java.lang.Object secondValue)
firstValue
- A field value object.secondValue
- A field value object.
int getSqlType()
Types
of this field.
void setSqlType(JdbcType jdbcType)
jdbcType
- The associated JdbcType
.boolean isMutable()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |