FileDocCategorySizeDatePackage
DirectToFieldMapping.javaAPI DocGlassfish v2 API3483Tue May 22 16:54:46 BST 2007oracle.toplink.essentials.mappings

DirectToFieldMapping

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
oracle.toplink.essentials.mappings.converters.Converter
see
oracle.toplink.essentials.mappings.converters.ObjectTypeConverter
see
oracle.toplink.essentials.mappings.converters.TypeConversionConverter
see
oracle.toplink.essentials.mappings.converters.SerializedObjectConverter
author
Sati
since
TopLink/Java 1.0

Fields Summary
Constructors Summary
public DirectToFieldMapping()
Default constructor.

        super();
    
Methods Summary
public booleanisRelationalMapping()
INTERNAL:

        return true;
    
public voidsetFieldName(java.lang.String FieldName)
PUBLIC: Set the field name in the mapping.

        setField(new DatabaseField(FieldName));
    
protected voidwriteValueIntoRow(oracle.toplink.essentials.internal.sessions.AbstractRecord row, oracle.toplink.essentials.internal.helper.DatabaseField field, java.lang.Object fieldValue)

        row.add(getField(), fieldValue);