thinkmap.datasource.relational
Class EdgeColumnModel<T>

java.lang.Object
  extended by thinkmap.datasource.relational.ColumnModel<T>
      extended by thinkmap.datasource.relational.EdgeColumnModel<T>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FFEdgeColumnModel

public class EdgeColumnModel<T>
extends ColumnModel<T>

EdgeColumnModel adds edge-specific information to ColumnModel.

Version:
$Revision: 1.8 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class thinkmap.datasource.relational.ColumnModel
entityModel
 
Constructor Summary
EdgeColumnModel(EntityModel model)
           
 
Method Summary
 String getBindColumn()
          Get the node column that the value in this edge column must bind to.
 String getBindTo()
          Get the foreign key table mapping for this column.
 String getBoundModelName()
           
 String getColumn()
          Deprecated. Replaced by getBindColumn
 boolean getIsFrom()
          Determine if this EdgeColumnModel represents a "from" link.
 void setBindColumn(String bindColumn)
          Set the node column that the value in this edge column must bind to.
 void setBindTo(String s)
          Set the foreign key table mapping for this column.
 void setColumn(String s)
          Deprecated. Replaced by setBindColumn
 
Methods inherited from class thinkmap.datasource.relational.ColumnModel
convert, getAlias, getEntityModel, getName, getType, isKey, isProperty, setAlias, setKey, setName, setProperty, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeColumnModel

public EdgeColumnModel(EntityModel model)
Method Detail

getBindTo

public String getBindTo()
Get the foreign key table mapping for this column.

Returns:
foreign key table mapping (foreign key)

setBindTo

public void setBindTo(String s)
Set the foreign key table mapping for this column.

Parameters:
s - foreign key table mapping (foreign key)

getColumn

public String getColumn()
Deprecated. Replaced by getBindColumn

Get the foreign key column mapping for this column.

Returns:
foreign key column mapping (foreign key)

setColumn

public void setColumn(String s)
Deprecated. Replaced by setBindColumn

Set the foreign key table mapping for this column.

Parameters:
s - foreign key column mapping (foreign key)

getBindColumn

public String getBindColumn()
Get the node column that the value in this edge column must bind to. This is used to determine which node will connect to the edge. In a database, this is a foreign key column mapping.

Returns:
the node column that the value in this edge column must bind to

setBindColumn

public void setBindColumn(String bindColumn)
Set the node column that the value in this edge column must bind to. This is used to determine which node will connect to the edge. In a database, this is a foreign key column mapping.

Parameters:
s - the node column that the value in this edge column must bind to

getIsFrom

public boolean getIsFrom()
Determine if this EdgeColumnModel represents a "from" link. If it does not, then it represents a "to" link.

Returns:
true if this is a "from" link, false if it is "to".

getBoundModelName

public String getBoundModelName()


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.