net.ontopia.topicmaps.db2tm
Class Field

java.lang.Object
  extended by net.ontopia.topicmaps.db2tm.Field

public class Field
extends java.lang.Object

INTERNAL: Relation mapping concept that refers to a field definition belonging to an entity. There are two categories of fields: identity fields and characteristic fields.


Field Summary
protected  java.lang.String atype
           
protected  java.lang.String column
           
protected  ValueIF cvalue
           
protected  java.lang.String datatype
           
protected  Entity entity
           
protected  int ftype
           
protected  int optional
           
static int OPTIONAL_DEFAULT
           
static int OPTIONAL_FALSE
           
static int OPTIONAL_TRUE
           
protected  java.util.List oroles
           
protected  java.lang.String pattern
           
protected  java.lang.String player
           
protected  java.lang.String rtype
           
protected  java.lang.String[] scope
           
protected  java.lang.String type
           
static int TYPE_ASSOCIATION_ROLE
           
static int TYPE_ITEM_IDENTIFIER
           
static int TYPE_OCCURRENCE
           
static int TYPE_PLAYER
           
static int TYPE_SUBJECT_IDENTIFIER
           
static int TYPE_SUBJECT_LOCATOR
           
static int TYPE_TOPIC_NAME
           
 
Method Summary
 void addOtherRoleField(Field orole)
           
 void compile()
           
protected  void compileValue()
           
 java.lang.String getAssociationType()
           
 java.lang.String getColumn()
           
 java.lang.String getDatatype()
           
 Entity getEntity()
           
 int getFieldType()
           
 int getOptional()
           
 java.util.List getOtherRoleFields()
           
 java.lang.String getPattern()
           
 java.lang.String getPlayer()
           
 java.lang.String getRoleType()
           
 java.lang.String[] getScope()
           
 java.lang.String getType()
           
 java.lang.String getValue(java.lang.String[] tuple)
           
 void setAssociationType(java.lang.String atype)
           
 void setColumn(java.lang.String column)
           
 void setDatatype(java.lang.String datatype)
           
 void setOptional(boolean optional)
           
 void setPattern(java.lang.String pattern)
           
 void setPlayer(java.lang.String player)
           
 void setRoleType(java.lang.String rtype)
           
 void setScope(java.lang.String[] scope)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_SUBJECT_LOCATOR

public static final int TYPE_SUBJECT_LOCATOR
See Also:
Constant Field Values

TYPE_SUBJECT_IDENTIFIER

public static final int TYPE_SUBJECT_IDENTIFIER
See Also:
Constant Field Values

TYPE_ITEM_IDENTIFIER

public static final int TYPE_ITEM_IDENTIFIER
See Also:
Constant Field Values

TYPE_TOPIC_NAME

public static final int TYPE_TOPIC_NAME
See Also:
Constant Field Values

TYPE_OCCURRENCE

public static final int TYPE_OCCURRENCE
See Also:
Constant Field Values

TYPE_PLAYER

public static final int TYPE_PLAYER
See Also:
Constant Field Values

TYPE_ASSOCIATION_ROLE

public static final int TYPE_ASSOCIATION_ROLE
See Also:
Constant Field Values

ftype

protected int ftype

entity

protected Entity entity

column

protected java.lang.String column

pattern

protected java.lang.String pattern

type

protected java.lang.String type

scope

protected java.lang.String[] scope

datatype

protected java.lang.String datatype

atype

protected java.lang.String atype

rtype

protected java.lang.String rtype

player

protected java.lang.String player

oroles

protected java.util.List oroles

OPTIONAL_DEFAULT

public static final int OPTIONAL_DEFAULT
See Also:
Constant Field Values

OPTIONAL_TRUE

public static final int OPTIONAL_TRUE
See Also:
Constant Field Values

OPTIONAL_FALSE

public static final int OPTIONAL_FALSE
See Also:
Constant Field Values

optional

protected int optional

cvalue

protected ValueIF cvalue
Method Detail

compile

public void compile()

getEntity

public Entity getEntity()

getFieldType

public int getFieldType()

getColumn

public java.lang.String getColumn()

setColumn

public void setColumn(java.lang.String column)

getPattern

public java.lang.String getPattern()

setPattern

public void setPattern(java.lang.String pattern)

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)

getDatatype

public java.lang.String getDatatype()

setDatatype

public void setDatatype(java.lang.String datatype)

getScope

public java.lang.String[] getScope()

setScope

public void setScope(java.lang.String[] scope)

getOptional

public int getOptional()

setOptional

public void setOptional(boolean optional)

getAssociationType

public java.lang.String getAssociationType()

setAssociationType

public void setAssociationType(java.lang.String atype)

getRoleType

public java.lang.String getRoleType()

setRoleType

public void setRoleType(java.lang.String rtype)

getPlayer

public java.lang.String getPlayer()

setPlayer

public void setPlayer(java.lang.String player)

addOtherRoleField

public void addOtherRoleField(Field orole)

getOtherRoleFields

public java.util.List getOtherRoleFields()

getValue

public java.lang.String getValue(java.lang.String[] tuple)

compileValue

protected void compileValue()


Copyright © 2000-2012 Ontopia.