net.ontopia.topicmaps.db2tm
Class Relation
java.lang.Object
net.ontopia.topicmaps.db2tm.Relation
public class Relation
- extends java.lang.Object
INTERNAL: Relation mapping concept that represents a relation
definition. A relation definition will hold one or more entity
defintions.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
protected java.lang.String name
columns
protected java.lang.String[] columns
pkey
protected java.lang.String[] pkey
condition
protected java.lang.String condition
commit
protected java.lang.String commit
mapping
protected RelationMapping mapping
entities
protected java.util.List entities
virtualColumns
protected java.util.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 java.util.List syncs
getMapping
public RelationMapping getMapping()
- INTERNAL: Returns the relation mapping to which the relation
belongs.
getName
public java.lang.String getName()
- INTERNAL: Returns the name of the relation.
setName
public void setName(java.lang.String name)
getPrimaryKey
public java.lang.String[] getPrimaryKey()
setPrimaryKey
public void setPrimaryKey(java.lang.String[] pkey)
getCondition
public java.lang.String getCondition()
setCondition
public void setCondition(java.lang.String condition)
setCommitMode
public void setCommitMode(java.lang.String commit)
getCommitMode
public java.lang.String getCommitMode()
getEntities
public java.util.List getEntities()
addEntity
public void addEntity(Entity entity)
removeEntity
public void removeEntity(Entity entity)
getPrimaryEntity
public Entity getPrimaryEntity()
getColumns
public java.lang.String[] getColumns()
setColumns
public void setColumns(java.lang.String[] columns)
getColumnIndex
public int getColumnIndex(java.lang.String column)
isVirtualColumn
public boolean isVirtualColumn(java.lang.String name)
getVirtualColumn
public ValueIF getVirtualColumn(java.lang.String name)
addVirtualColumn
public void addVirtualColumn(java.lang.String name,
ValueIF vcol)
getSynchronizationType
public int getSynchronizationType()
setSynchronizationType
public void setSynchronizationType(int synctype)
getSynchronizationTypeName
public static java.lang.String getSynchronizationTypeName(int synctype)
getSyncs
public java.util.List getSyncs()
addSync
public void addSync(Changelog sync)
removeSync
public void removeSync(Changelog sync)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2000-2012 Ontopia.