org.jpox.store.mapping
Interface MappingConsumer


public interface MappingConsumer

Consumer of mappings.

Version:
$Revision: 1.7 $

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_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, AbstractPropertyMetaData fmd)
          Consumes a mapping associated to a field
 void consumeMapping(JavaTypeMapping m, int mappingType)
          Consumes a mapping not associated to a field
 void preConsumeMapping(int highestFieldNumber)
          This method is called before consuming the mappings
 

Field Detail

MAPPING_TYPE_VERSION

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

See Also:
Constant Field Values

MAPPING_TYPE_DATASTORE_ID

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

See Also:
Constant Field Values

MAPPING_TYPE_DISCRIMINATOR

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

See Also:
Constant Field Values

MAPPING_TYPE_EXTERNAL_INDEX

public 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

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

See Also:
Constant Field Values
Method Detail

preConsumeMapping

public 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

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

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

consumeMapping

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

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


Copyright © -2007 . All Rights Reserved.