ca.sqlpower.architect
Class SQLRelationship.ColumnMapping

java.lang.Object
  extended by ca.sqlpower.architect.SQLObject
      extended by ca.sqlpower.architect.SQLRelationship.ColumnMapping
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
SQLRelationship

public static class SQLRelationship.ColumnMapping
extends SQLObject

See Also:
Serialized Form

Field Summary
protected  SQLColumn fkColumn
           
protected  SQLRelationship parent
           
protected  SQLColumn pkColumn
           
 
Fields inherited from class ca.sqlpower.architect.SQLObject
children, magicDisableCount, populated, undoEventListeners
 
Constructor Summary
SQLRelationship.ColumnMapping()
           
 
Method Summary
 boolean allowsChildren()
          Mappings do not contain other SQLObjects.
 java.lang.Class<? extends SQLObject> getChildType()
           
 SQLColumn getFkColumn()
          Gets the value of fkColumn
 java.lang.String getName()
          This is the name of the object.
 SQLObject getParent()
          Returns the table that holds the primary keys (the imported table).
 SQLColumn getPkColumn()
          Gets the value of pkColumn
 java.lang.String getShortDisplayName()
          Returns the table and column name of the pkColumn.
 boolean isPopulated()
          Returns true.
 void populate()
          This class is not a lazy-loading class.
 void setFkColumn(SQLColumn argFkColumn)
          Sets the value of fkColumn
protected  void setParent(SQLObject newParent)
          Parents call this on their children to update parent pointers during addChild and removeChild requests.
 void setPkColumn(SQLColumn argPkColumn)
          Sets the value of pkColumn
 java.lang.String toString()
           
 
Methods inherited from class ca.sqlpower.architect.SQLObject
addChild, addChild, addChildImpl, addSQLObjectListener, addSQLObjectPreEventListener, addUndoEventListener, endCompoundEdit, fireDbChildInserted, fireDbChildPreRemove, fireDbChildRemoved, fireDbChildrenInserted, fireDbChildrenPreRemove, fireDbChildrenRemoved, fireDbObjectChanged, fireDbStructureChanged, getChild, getChildByName, getChildByNameIgnoreCase, getChildCount, getChildren, getIndexOfChildByName, getPhysicalName, getSQLObjectListeners, getSQLObjectPreEventListeners, getUndoEventListeners, isMagicEnabled, removeChild, removeChild, removeImpl, removeSQLObjectListener, removeSQLObjectPreEventListener, removeUndoEventListener, setMagicEnabled, setName, setPhysicalName, setPopulated, startCompoundEdit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

protected SQLRelationship parent

pkColumn

protected SQLColumn pkColumn

fkColumn

protected SQLColumn fkColumn
Constructor Detail

SQLRelationship.ColumnMapping

public SQLRelationship.ColumnMapping()
Method Detail

getPkColumn

public SQLColumn getPkColumn()
Gets the value of pkColumn

Returns:
the value of pkColumn

setPkColumn

public void setPkColumn(SQLColumn argPkColumn)
Sets the value of pkColumn

Parameters:
argPkColumn - Value to assign to this.pkColumn

getFkColumn

public SQLColumn getFkColumn()
Gets the value of fkColumn

Returns:
the value of fkColumn

setFkColumn

public void setFkColumn(SQLColumn argFkColumn)
Sets the value of fkColumn

Parameters:
argFkColumn - Value to assign to this.fkColumn

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getParent

public SQLObject getParent()
Returns the table that holds the primary keys (the imported table).

Specified by:
getParent in class SQLObject

setParent

protected void setParent(SQLObject newParent)
Description copied from class: SQLObject
Parents call this on their children to update parent pointers during addChild and removeChild requests.

Specified by:
setParent in class SQLObject

getName

public java.lang.String getName()
Description copied from class: SQLObject
This is the name of the object. For tables, it returns the table name; for catalogs, the catalog name, and so on.

Overrides:
getName in class SQLObject

getShortDisplayName

public java.lang.String getShortDisplayName()
Returns the table and column name of the pkColumn.

Specified by:
getShortDisplayName in class SQLObject

allowsChildren

public boolean allowsChildren()
Mappings do not contain other SQLObjects.

Specified by:
allowsChildren in class SQLObject
Returns:
false

populate

public void populate()
              throws ArchitectException
This class is not a lazy-loading class. This call does nothing.

Specified by:
populate in class SQLObject
Throws:
ArchitectException

isPopulated

public boolean isPopulated()
Returns true.

Overrides:
isPopulated in class SQLObject

getChildType

public java.lang.Class<? extends SQLObject> getChildType()
Specified by:
getChildType in class SQLObject


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca