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 rel) |
| Modifier and Type | Method and Description |
|---|---|
MergerToken |
createReverse(MergerFactory factory)
Create a token with the reverse direction.
|
void |
execute(MergerContext mergerContext) |
DbEntity |
getEntity() |
DbRelationship |
getRelationship() |
String |
getTokenValue() |
static String |
getTokenValue(DbRelationship rel) |
getDirection, getTokenName, remove, remove, synchronizeWithObjEntity, toStringpublic static final String COMMA_SEPARATOR
public static final int COMMA_SEPARATOR_LENGTH
public AddRelationshipToModel(DbEntity entity, DbRelationship rel)
public MergerToken createReverse(MergerFactory factory)
MergerTokenNot all tokens are reversible.
public void execute(MergerContext mergerContext)
public String getTokenValue()
getTokenValue in interface MergerTokenpublic static String getTokenValue(DbRelationship rel)
public DbRelationship getRelationship()
public DbEntity getEntity()
Copyright © 2001–2015 Apache Cayenne. All rights reserved.