public class Relation extends Object
Modifier and Type | Field and Description |
---|---|
protected String[] |
columns |
protected String |
commit |
protected String |
condition |
protected List<Entity> |
entities |
protected RelationMapping |
mapping |
protected String |
name |
protected String[] |
pkey |
static int |
SYNCHRONIZATION_CHANGELOG |
static int |
SYNCHRONIZATION_NONE |
static int |
SYNCHRONIZATION_RESCAN |
static int |
SYNCHRONIZATION_UNKNOWN |
protected List<Changelog> |
syncs |
protected int |
synctype |
protected Map<String,ValueIF> |
virtualColumns |
protected String name
protected String[] columns
protected String[] pkey
protected String condition
protected String commit
protected final RelationMapping mapping
public static final int SYNCHRONIZATION_UNKNOWN
public static final int SYNCHRONIZATION_NONE
public static final int SYNCHRONIZATION_RESCAN
public static final int SYNCHRONIZATION_CHANGELOG
protected int synctype
public RelationMapping getMapping()
public String getName()
public void setName(String name)
public String[] getPrimaryKey()
public void setPrimaryKey(String[] pkey)
public String getCondition()
public void setCondition(String condition)
public void setCommitMode(String commit)
public String getCommitMode()
public void addEntity(Entity entity)
public void removeEntity(Entity entity)
public Entity getPrimaryEntity()
public String[] getColumns()
public void setColumns(String[] columns)
public int getColumnIndex(String column)
public boolean isVirtualColumn(String name)
public int getSynchronizationType()
public void setSynchronizationType(int synctype)
public static String getSynchronizationTypeName(int synctype)
public void addSync(Changelog sync)
public void removeSync(Changelog sync)
protected void compile()