org.datanucleus.store.mapped.mapping
Interface MappingConsumer


public interface MappingConsumer

Consumer of mappings.


Field Summary
static int MAPPING_TYPE_DATASTORE_ID
          mapping a field representing the id of a PC
static int MAPPING_TYPE_DISCRIMINATOR
          mapping a field representing the discriminator of a PC
static int MAPPING_TYPE_EXTERNAL_FK
          mapping a datastore column that is a FK for an external collection.
static int MAPPING_TYPE_EXTERNAL_FK_DISCRIM
          mapping a datastore column that is the discriminator for a FK for an external collection.
static int MAPPING_TYPE_EXTERNAL_INDEX
          mapping a datastore column that is an index for an external list.
static int MAPPING_TYPE_VERSION
          mapping a field representing the version of a PC
 
Method Summary
 void consumeMapping(JavaTypeMapping m, AbstractMemberMetaData fmd)
          Consumes a mapping associated to a field
 void consumeMapping(JavaTypeMapping m, int mappingType)
          Consumes a mapping not associated to a field
 void consumeUnmappedDatastoreField(DatastoreField fld)
          Consumer a datastore field without mapping.
 void preConsumeMapping(int highestFieldNumber)
          This method is called before consuming the mappings
 

Field Detail

MAPPING_TYPE_VERSION

static final int MAPPING_TYPE_VERSION
mapping a field representing the version of a PC

See Also:
Constant Field Values

MAPPING_TYPE_DATASTORE_ID

static final int MAPPING_TYPE_DATASTORE_ID
mapping a field representing the id of a PC

See Also:
Constant Field Values

MAPPING_TYPE_DISCRIMINATOR

static final int MAPPING_TYPE_DISCRIMINATOR
mapping a field representing the discriminator of a PC

See Also:
Constant Field Values

MAPPING_TYPE_EXTERNAL_INDEX

static final int MAPPING_TYPE_EXTERNAL_INDEX
mapping a datastore column that is an index for an external list.

See Also:
Constant Field Values

MAPPING_TYPE_EXTERNAL_FK

static final int MAPPING_TYPE_EXTERNAL_FK
mapping a datastore column that is a FK for an external collection.

See Also:
Constant Field Values

MAPPING_TYPE_EXTERNAL_FK_DISCRIM

static final int MAPPING_TYPE_EXTERNAL_FK_DISCRIM
mapping a datastore column that is the discriminator for a FK for an external collection.

See Also:
Constant Field Values
Method Detail

preConsumeMapping

void preConsumeMapping(int highestFieldNumber)
This method is called before consuming the mappings

Parameters:
highestFieldNumber - the highest number for the fields that are going to be provided in the consumer

consumeMapping

void consumeMapping(JavaTypeMapping m,
                    AbstractMemberMetaData fmd)
Consumes a mapping associated to a field

Parameters:
m - The Java type mapping
fmd - Field MetaData for the field

consumeMapping

void consumeMapping(JavaTypeMapping m,
                    int mappingType)
Consumes a mapping not associated to a field

Parameters:
m - Java type mapping
mappingType - the Mapping type

consumeUnmappedDatastoreField

void consumeUnmappedDatastoreField(DatastoreField fld)
Consumer a datastore field without mapping.

Parameters:
fld - The datastore field


Copyright © 2011. All Rights Reserved.