|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.mappings.DatabaseMapping oracle.toplink.mappings.foundation.AbstractDirectMapping oracle.toplink.mappings.DirectToFieldMapping oracle.toplink.mappings.ObjectTypeMapping
ObjectTypeConverter
public class ObjectTypeMapping
Purpose: Object type mappings are used to match a fixed number of database primitives to Java objects. They are used when the values on the databae and in the java differ. To create an object type mapping, simply specify the instance variable and field names involved, together with a conversion value. Note this functionality has been somewhat replaced by ObjectTypeConverter which can be used to obtain the same functionality on DirectToField and DirectCollection mappings.
ObjectTypeConverter
,
Serialized FormConstructor Summary | |
---|---|
ObjectTypeMapping()
Deprecated. Default constructor. |
Method Summary | |
---|---|
void |
addConversionValue(java.lang.Object fieldValue,
java.lang.Object attributeValue)
Deprecated. A type conversion value is a two-way mapping from the database to the object. |
void |
addToAttributeOnlyConversionValue(java.lang.Object fieldValue,
java.lang.Object attributeValue)
Deprecated. An attribute only conversion value is a one-way mapping from the database to the object. |
java.lang.Object |
getDefaultAttributeValue()
Deprecated. The default value can be used if the database can possibly store additional values then those that have been mapped. |
ObjectTypeConverter |
getObjectTypeConverter()
Deprecated. Return the converter cast to ObjectTypeConverter. |
void |
mapBooleans()
Deprecated. This is a very specific protocol which maps fieldValues "T" and "F" to true and false respectively. |
void |
mapGenders()
Deprecated. This is a very specific protocol which maps fieldValues "F" and "M" to "Female" and "Male" respectively. |
void |
mapResponses()
Deprecated. This is a very specific protocol which maps fieldValues "Y" and "N" to "Yes" and "No" respectively. |
void |
setDefaultAttributeValue(java.lang.Object defaultAttributeValue)
Deprecated. The default value can be used if the database can possibly store additional values then those that have been mapped. |
Methods inherited from class oracle.toplink.mappings.DirectToFieldMapping |
---|
setFieldName |
Methods inherited from class oracle.toplink.mappings.foundation.AbstractDirectMapping |
---|
getAttributeClassification, getConverter, getFieldClassification, getFieldName, getNullValue, hasConverter, isMutable, setAttributeClassification, setConverter, setConverterClassName, setField, setFieldClassification, setFieldType, setIsMutable, setNullValue |
Methods inherited from class oracle.toplink.mappings.DatabaseMapping |
---|
getAttributeAccessor, getAttributeName, getGetMethodName, getProperty, getReferenceDescriptor, getSetMethodName, isLazy, isOptional, isUsingMethodAccess, readOnly, readWrite, setAttributeAccessor, setAttributeName, setGetMethodName, setIsLazy, setIsOptional, setIsReadOnly, setProperty, setSetMethodName, setWeight, simpleAddToCollectionChangeRecord, simpleRemoveFromCollectionChangeRecord |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObjectTypeMapping()
Method Detail |
---|
public ObjectTypeConverter getObjectTypeConverter()
public void addConversionValue(java.lang.Object fieldValue, java.lang.Object attributeValue)
public void addToAttributeOnlyConversionValue(java.lang.Object fieldValue, java.lang.Object attributeValue)
public java.lang.Object getDefaultAttributeValue()
public void mapBooleans()
public void mapGenders()
public void mapResponses()
public void setDefaultAttributeValue(java.lang.Object defaultAttributeValue)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |