public interface MappingConsumer
| Modifier and Type | Field and Description |
|---|---|
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_MULTITENANCY
mapping a datastore column representing a multitenancy discriminator.
|
static int |
MAPPING_TYPE_VERSION
mapping a field representing the version of a PC
|
| Modifier and Type | Method and Description |
|---|---|
void |
consumeMapping(JavaTypeMapping m,
org.datanucleus.metadata.AbstractMemberMetaData fmd)
Consumes a mapping associated to a field
|
void |
consumeMapping(JavaTypeMapping m,
int mappingType)
Consumes a mapping not associated to a field
|
void |
consumeUnmappedColumn(Column col)
Consume a column without mapping.
|
void |
preConsumeMapping(int highestFieldNumber)
This method is called before consuming the mappings
|
static final int MAPPING_TYPE_VERSION
static final int MAPPING_TYPE_DATASTORE_ID
static final int MAPPING_TYPE_DISCRIMINATOR
static final int MAPPING_TYPE_EXTERNAL_INDEX
static final int MAPPING_TYPE_EXTERNAL_FK
static final int MAPPING_TYPE_EXTERNAL_FK_DISCRIM
static final int MAPPING_TYPE_MULTITENANCY
void preConsumeMapping(int highestFieldNumber)
highestFieldNumber - the highest number for the fields that are going to be provided in the consumervoid consumeMapping(JavaTypeMapping m, org.datanucleus.metadata.AbstractMemberMetaData fmd)
m - The Java type mappingfmd - Field MetaData for the fieldvoid consumeMapping(JavaTypeMapping m, int mappingType)
m - Java type mappingmappingType - the Mapping typevoid consumeUnmappedColumn(Column col)
col - The columnCopyright © 2015. All rights reserved.