public class SetAllowNullToModel extends AbstractToModelToken
MergerToken
to set the mandatory field of a DbAttribute
to falseConstructor and Description |
---|
SetAllowNullToModel(DbEntity entity,
DbAttribute column) |
Modifier and Type | Method and Description |
---|---|
MergerToken |
createReverse(MergerFactory factory)
Create a token with the reverse direction.
|
void |
execute(MergerContext mergerContext) |
DbAttribute |
getColumn() |
DbEntity |
getEntity() |
String |
getTokenValue() |
getDirection, getTokenName, remove, remove, synchronizeWithObjEntity, toString
public SetAllowNullToModel(DbEntity entity, DbAttribute column)
public MergerToken createReverse(MergerFactory factory)
MergerToken
Not all tokens are reversible.
public void execute(MergerContext mergerContext)
public DbAttribute getColumn()
public String getTokenValue()
getTokenValue
in interface MergerToken
public DbEntity getEntity()
Copyright © 2001–2015 Apache Cayenne. All rights reserved.