Package net.ontopia.topicmaps.db2tm
Class Relation
- java.lang.Object
-
- net.ontopia.topicmaps.db2tm.Relation
-
public class Relation extends Object
INTERNAL: Relation mapping concept that represents a relation definition. A relation definition will hold one or more entity defintions.
-
-
Field Summary
Fields Modifier and Type Field 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
-
Method Summary
-
-
-
Field Detail
-
name
protected String name
-
columns
protected String[] columns
-
pkey
protected String[] pkey
-
condition
protected String condition
-
commit
protected String commit
-
mapping
protected final RelationMapping mapping
-
SYNCHRONIZATION_UNKNOWN
public static final int SYNCHRONIZATION_UNKNOWN
- See Also:
- Constant Field Values
-
SYNCHRONIZATION_NONE
public static final int SYNCHRONIZATION_NONE
- See Also:
- Constant Field Values
-
SYNCHRONIZATION_RESCAN
public static final int SYNCHRONIZATION_RESCAN
- See Also:
- Constant Field Values
-
SYNCHRONIZATION_CHANGELOG
public static final int SYNCHRONIZATION_CHANGELOG
- See Also:
- Constant Field Values
-
synctype
protected int synctype
-
-
Method Detail
-
getMapping
public RelationMapping getMapping()
INTERNAL: Returns the relation mapping to which the relation belongs.
-
getName
public String getName()
INTERNAL: Returns the name of the relation.
-
setName
public void setName(String name)
-
getPrimaryKey
public String[] getPrimaryKey()
-
setPrimaryKey
public void setPrimaryKey(String[] pkey)
-
getCondition
public String getCondition()
-
setCondition
public void setCondition(String condition)
-
setCommitMode
public void setCommitMode(String commit)
-
getCommitMode
public String getCommitMode()
-
addEntity
public void addEntity(Entity entity)
-
removeEntity
public void removeEntity(Entity entity)
-
getPrimaryEntity
public Entity getPrimaryEntity()
-
getColumns
public String[] getColumns()
-
setColumns
public void setColumns(String[] columns)
-
getColumnIndex
public int getColumnIndex(String column)
-
isVirtualColumn
public boolean isVirtualColumn(String name)
-
getSynchronizationType
public int getSynchronizationType()
-
setSynchronizationType
public void setSynchronizationType(int synctype)
-
getSynchronizationTypeName
public static String getSynchronizationTypeName(int synctype)
-
addSync
public void addSync(Changelog sync)
-
removeSync
public void removeSync(Changelog sync)
-
compile
protected void compile()
-
-