net.ontopia.topicmaps.db2tm
Class Relation

java.lang.Object
  extended by 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.


Field Summary
protected  java.lang.String[] columns
           
protected  java.lang.String commit
           
protected  java.lang.String condition
           
protected  java.util.List entities
           
protected  RelationMapping mapping
           
protected  java.lang.String name
           
protected  java.lang.String[] pkey
           
static int SYNCHRONIZATION_CHANGELOG
           
static int SYNCHRONIZATION_NONE
           
static int SYNCHRONIZATION_RESCAN
           
static int SYNCHRONIZATION_UNKNOWN
           
protected  java.util.List syncs
           
protected  int synctype
           
protected  java.util.Map virtualColumns
           
 
Method Summary
 void addEntity(Entity entity)
           
 void addSync(Changelog sync)
           
 void addVirtualColumn(java.lang.String name, ValueIF vcol)
           
 int getColumnIndex(java.lang.String column)
           
 java.lang.String[] getColumns()
           
 java.lang.String getCommitMode()
           
 java.lang.String getCondition()
           
 java.util.List getEntities()
           
 RelationMapping getMapping()
          INTERNAL: Returns the relation mapping to which the relation belongs.
 java.lang.String getName()
          INTERNAL: Returns the name of the relation.
 Entity getPrimaryEntity()
           
 java.lang.String[] getPrimaryKey()
           
 int getSynchronizationType()
           
static java.lang.String getSynchronizationTypeName(int synctype)
           
 java.util.List getSyncs()
           
 ValueIF getVirtualColumn(java.lang.String name)
           
 boolean isVirtualColumn(java.lang.String name)
           
 void removeEntity(Entity entity)
           
 void removeSync(Changelog sync)
           
 void setColumns(java.lang.String[] columns)
           
 void setCommitMode(java.lang.String commit)
           
 void setCondition(java.lang.String condition)
           
 void setName(java.lang.String name)
           
 void setPrimaryKey(java.lang.String[] pkey)
           
 void setSynchronizationType(int synctype)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Method Detail

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.