Class DirectToFieldMapping

java.lang.Object
org.eclipse.persistence.core.mappings.CoreMapping<AttributeAccessor,org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.queries.ContainerPolicy,ClassDescriptor,org.eclipse.persistence.internal.helper.DatabaseField>
All Implemented Interfaces:
Serializable, Cloneable, MapComponentMapping, MapKeyMapping, RelationalMapping
Direct Known Subclasses:
DirectToXMLTypeMapping

public class DirectToFieldMapping extends AbstractDirectMapping implements RelationalMapping
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.
See Also:
Author:
Sati
  • Constructor Details

    • DirectToFieldMapping

      public DirectToFieldMapping()
      Default constructor.
  • Method Details

    • isRelationalMapping

      public boolean isRelationalMapping()
      INTERNAL:
      Overrides:
      isRelationalMapping in class DatabaseMapping
    • setFieldName

      public void setFieldName(String FieldName)
      PUBLIC: Set the field name in the mapping.
    • writeValueIntoRow

      protected void writeValueIntoRow(org.eclipse.persistence.internal.sessions.AbstractRecord row, org.eclipse.persistence.internal.helper.DatabaseField field, Object fieldValue)
      Description copied from class: AbstractColumnMapping
      INTERNAL:
      Specified by:
      writeValueIntoRow in class AbstractDirectMapping