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.
name
protected String name
columns
protected String[] columns
pkey
protected String[] pkey
condition
protected String condition
commit
protected String commit
mapping
protected RelationMapping mapping
entities
protected List entities
virtualColumns
protected Map virtualColumns
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
syncs
protected List syncs
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()
getEntities
public List getEntities()
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)
getVirtualColumn
public ValueIF getVirtualColumn(String name)
addVirtualColumn
public void addVirtualColumn(String name,
ValueIF vcol)
getSynchronizationType
public int getSynchronizationType()
setSynchronizationType
public void setSynchronizationType(int synctype)
getSynchronizationTypeName
public static String getSynchronizationTypeName(int synctype)
getSyncs
public List getSyncs()
addSync
public void addSync(Changelog sync)
removeSync
public void removeSync(Changelog sync)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2000-2012 Ontopia.