Package net.ontopia.topicmaps.db2tm
Class Relation
java.lang.Object
net.ontopia.topicmaps.db2tm.Relation
INTERNAL: Relation mapping concept that represents a relation
definition. A relation definition will hold one or more entity
defintions.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddVirtualColumn(String name, ValueIF vcol) protected voidcompile()intgetColumnIndex(String column) String[]INTERNAL: Returns the relation mapping to which the relation belongs.getName()INTERNAL: Returns the name of the relation.String[]intstatic StringgetSynchronizationTypeName(int synctype) getSyncs()getVirtualColumn(String name) booleanisVirtualColumn(String name) voidremoveEntity(Entity entity) voidremoveSync(Changelog sync) voidsetColumns(String[] columns) voidsetCommitMode(String commit) voidsetCondition(String condition) voidvoidsetPrimaryKey(String[] pkey) voidsetSynchronizationType(int synctype) toString()
-
Field Details
-
name
-
columns
-
pkey
-
condition
-
commit
-
mapping
-
entities
-
virtualColumns
-
SYNCHRONIZATION_UNKNOWN
public static final int SYNCHRONIZATION_UNKNOWN- See Also:
-
SYNCHRONIZATION_NONE
public static final int SYNCHRONIZATION_NONE- See Also:
-
SYNCHRONIZATION_RESCAN
public static final int SYNCHRONIZATION_RESCAN- See Also:
-
SYNCHRONIZATION_CHANGELOG
public static final int SYNCHRONIZATION_CHANGELOG- See Also:
-
synctype
protected int synctype -
syncs
-
-
Method Details
-
getMapping
INTERNAL: Returns the relation mapping to which the relation belongs. -
getName
INTERNAL: Returns the name of the relation. -
setName
-
getPrimaryKey
-
setPrimaryKey
-
getCondition
-
setCondition
-
setCommitMode
-
getCommitMode
-
getEntities
-
addEntity
-
removeEntity
-
getPrimaryEntity
-
getColumns
-
setColumns
-
getColumnIndex
-
isVirtualColumn
-
getVirtualColumn
-
addVirtualColumn
-
getSynchronizationType
public int getSynchronizationType() -
setSynchronizationType
public void setSynchronizationType(int synctype) -
getSynchronizationTypeName
-
getSyncs
-
addSync
-
removeSync
-
toString
-
compile
protected void compile()
-