thinkmap.datasource.relational
Class EdgeEntityModel

java.lang.Object
  extended by thinkmap.datasource.relational.EntityModel
      extended by thinkmap.datasource.relational.EdgeEntityModel
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DatabaseDataSource.DBEdgeEntityModel, FFEdgeEntityModel

public class EdgeEntityModel
extends EntityModel

Adds edge-specific attributes to EntityModel.

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

Field Summary
 
Fields inherited from class thinkmap.datasource.relational.EntityModel
cacheFlag, models
 
Constructor Summary
EdgeEntityModel()
           
 
Method Summary
<T> ColumnModel<T>
createColumn()
           
 String getFrom()
          Get the NodeEntityModel representing this edge's source.
 String getTo()
          Get the NodeEntityModel representing this edge's sink.
 boolean isBidirectional()
          Determine if this edge is bidirectional
 void setBidirectional(boolean bidirectional)
          Set whether or not this edge is bidirectional
 void setFrom(String model)
          Set the NodeEntityModel representing this edge's source.
 void setTo(String model)
          Set the NodeEntityModel representing this edge's sink.
 
Methods inherited from class thinkmap.datasource.relational.EntityModel
addColumn, getColumnModel, getColumnModels, getColumns, getMaxResults, getName, getParent, getTable, indexOf, outputMetadata, parseEntityId, setMaxResults, setName, setParent, setTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeEntityModel

public EdgeEntityModel()
Method Detail

getFrom

public String getFrom()
Get the NodeEntityModel representing this edge's source.

Returns:
NodeEntityModel for source

getTo

public String getTo()
Get the NodeEntityModel representing this edge's sink.

Returns:
NodeEntityModel for sink

setFrom

public void setFrom(String model)
Set the NodeEntityModel representing this edge's source.

Parameters:
model - NodeEntityModel for source

setTo

public void setTo(String model)
Set the NodeEntityModel representing this edge's sink.

Parameters:
model - NodeEntityModel for sink

setBidirectional

public void setBidirectional(boolean bidirectional)
Set whether or not this edge is bidirectional

Parameters:
bidirectional - true if the edge should be bidirectional

isBidirectional

public boolean isBidirectional()
Determine if this edge is bidirectional

Returns:
true if the edge is bidirectional

createColumn

public <T> ColumnModel<T> createColumn()
Specified by:
createColumn in class EntityModel


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.