public class AddRelationshipToModel extends AbstractToModelToken
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMA_SEPARATOR |
static int |
COMMA_SEPARATOR_LENGTH |
| Constructor and Description |
|---|
AddRelationshipToModel(DbEntity entity,
DbRelationship relationship) |
| Modifier and Type | Method and Description |
|---|---|
MergerToken |
createReverse(MergerTokenFactory factory)
Create a complimentary token with the reverse direction.
|
void |
execute(MergerContext context)
Executes synchronization operation.
|
DbEntity |
getEntity() |
Collection<ObjEntity> |
getMappedObjEntities() |
String |
getTokenValue() |
static String |
getTokenValue(DbRelationship rel) |
getDirection, remove, removecompareTo, getSortingWeight, getTokenName, isEmpty, toStringpublic static final String COMMA_SEPARATOR
public static final int COMMA_SEPARATOR_LENGTH
public AddRelationshipToModel(DbEntity entity, DbRelationship relationship)
public static String getTokenValue(DbRelationship rel)
public MergerToken createReverse(MergerTokenFactory factory)
MergerTokenNot all tokens are reversible.
public void execute(MergerContext context)
MergerTokencontext - merge operation context.public String getTokenValue()
getTokenValue in interface MergerTokenpublic DbEntity getEntity()
public Collection<ObjEntity> getMappedObjEntities()
Copyright © 2001–2019 Apache Cayenne. All rights reserved.