|
Oracle TopLink Java API Reference 10g Release 3 (10.1.3.1) B28219-01 |
|||||||||
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
Purpose: Maps an attribute to the corresponding database field type. The list of field types that are supported by TopLink's direct to field mapping is dependent on the relational database being used. A converter can be used to convert between the object and data type if they do not match.
Converter
, ObjectTypeConverter
, TypeConversionConverter
, SerializedObjectConverter
, Serialized FormConstructor Summary | |
AbstractDirectMapping() Default constructor. |
Method Summary | |
java.lang.Class |
getAttributeClassification() PUBLIC: Some databases do not properly support all of the base data types. |
java.lang.String |
getAttributeClassificationName() |
Converter |
getConverter() PUBLIC: Return the converter on the mapping. |
java.lang.Class |
getFieldClassification() ADVANCED: Return the class type of the field value. |
java.lang.String |
getFieldName() PUBLIC: Name of the field this mapping represents. |
java.lang.Object |
getNullValue() PUBLIC: Allow for the value used for null to be specified. |
boolean |
isMutable() PUBLIC: Return true if the attribute for this mapping is a simple atomic value that cannot be modified, only replaced. |
void |
setAttributeClassification(java.lang.Class attributeClassification) PUBLIC: Some databases do not properly support all of the base data types. |
void |
setConverter(Converter converter) PUBLIC: Set the converter on the mapping. |
void |
setField(DatabaseField theField) ADVANCED: Set the field in the mapping. |
void |
setFieldClassification(java.lang.Class fieldType) ADVANCED: Set the class type of the field value. |
void |
setFieldType(int jdbcType) ADVANCED: Set the JDBC type of the field value. |
void |
setIsMutable(boolean isMutable) PUBLIC: Return true if the attribute for this mapping is a simple atomic value that cannot be modified, only replaced. |
void |
setNullValue(java.lang.Object nullValue) PUBLIC: Allow for the value used for null to be specified. |
Methods inherited from class oracle.toplink.mappings.DatabaseMapping |
getAttributeAccessor, getAttributeName, getGetMethodName, getProperty, getReferenceClassDescriptor, getSetMethodName, isUsingMethodAccess, readOnly, readWrite, setAttributeAccessor, setAttributeName, setGetMethodName, setIsReadOnly, setProperty, setSetMethodName, setWeight, simpleAddToCollectionChangeRecord, simpleRemoveFromCollectionChangeRecord |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AbstractDirectMapping()
Method Detail |
public Converter getConverter()
public void setConverter(Converter converter)
public boolean isMutable()
public void setIsMutable(boolean isMutable)
public java.lang.Class getAttributeClassification()
getAttributeClassification
in class DatabaseMapping
public java.lang.String getAttributeClassificationName()
public java.lang.Class getFieldClassification()
public void setFieldClassification(java.lang.Class fieldType)
public void setFieldType(int jdbcType)
public java.lang.String getFieldName()
public java.lang.Object getNullValue()
public void setAttributeClassification(java.lang.Class attributeClassification)
public void setField(DatabaseField theField)
public void setNullValue(java.lang.Object nullValue)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |