org.javagen.agile.db.model
Class ColumnReference

java.lang.Object
  extended by org.javagen.agile.core.model.AbstractModel
      extended by org.javagen.agile.db.model.ColumnReference
All Implemented Interfaces:
Serializable, ContextHolder, Model

public class ColumnReference
extends AbstractModel

See Also:
Serialized Form

Field Summary
static String DEFAULT_MODEL_TYPE
           
protected  Column foreignColumn
           
protected  Column localColumn
           
protected  Short sequenceNumber
           
 
Fields inherited from class org.javagen.agile.core.model.AbstractModel
childModels, context, id, modelType, name, parentModel
 
Constructor Summary
ColumnReference()
           
ColumnReference(FkConstraint parentFkColumn)
           
 
Method Summary
 void copyTo(Model targetModel)
          Copy non-null properties into target model instance.
 Column getForeignColumn()
           
 Column getLocalColumn()
           
 String getName()
          A name that describes what is being modeled and forms the basis of the generated artifact names.
 Short getSequenceNumber()
           
 boolean isSelfReferential()
          Recursive relationship within single table
 void setForeignColumn(Column foreign)
           
 void setLocalColumn(Column local)
           
 void setSequenceNumber(Short sequenceNumber)
           
 
Methods inherited from class org.javagen.agile.core.model.AbstractModel
addChildModel, allOwnedModels, equals, get, getChildModels, getContext, getId, getModelType, getParentModel, lookupChildByName, put, setChildModels, setContext, setId, setModelType, setName, setParentModel, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_MODEL_TYPE

public static final String DEFAULT_MODEL_TYPE
See Also:
Constant Field Values

foreignColumn

protected Column foreignColumn

localColumn

protected Column localColumn

sequenceNumber

protected Short sequenceNumber
Constructor Detail

ColumnReference

public ColumnReference()

ColumnReference

public ColumnReference(FkConstraint parentFkColumn)
Method Detail

getName

public String getName()
Description copied from interface: Model
A name that describes what is being modeled and forms the basis of the generated artifact names. A name should be unique among its siblings to allow lookupChildByName to work effectively.

Specified by:
getName in interface Model
Overrides:
getName in class AbstractModel

getForeignColumn

public Column getForeignColumn()

setForeignColumn

public void setForeignColumn(Column foreign)

getLocalColumn

public Column getLocalColumn()

setLocalColumn

public void setLocalColumn(Column local)

getSequenceNumber

public Short getSequenceNumber()

setSequenceNumber

public void setSequenceNumber(Short sequenceNumber)

isSelfReferential

public boolean isSelfReferential()
Recursive relationship within single table


copyTo

public void copyTo(Model targetModel)
Description copied from interface: Model
Copy non-null properties into target model instance. Child values are generally not copied. Used in conjunction with XML serialization to allow individual model instances to be custimized.

Specified by:
copyTo in interface Model
Overrides:
copyTo in class AbstractModel
Parameters:
targetModel - model to set properties on


Copyright 2006-2006-2007 Outsource Cafe Inc.. All Rights Reserved.