|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectthinkmap.datasource.relational.EntityModel
public abstract class EntityModel
Abstract superclass for an object that represents an Entity in relational terms. RelationalDataSources use concrete instances of this representing nodes and edges.
NodeEntityModel,
EdgeEntityModel,
Serialized Form| Field Summary | |
|---|---|
protected Byte |
cacheFlag
|
protected List<ColumnModel<?>> |
models
|
| Constructor Summary | |
|---|---|
protected |
EntityModel()
|
| Method Summary | ||
|---|---|---|
void |
addColumn(ColumnModel<?> cm)
|
|
abstract
|
createColumn()
|
|
ColumnModel<?> |
getColumnModel(String name)
|
|
ColumnModel<?>[] |
getColumnModels()
Get the array of ColumnModels that describe this EntityModel's fields. |
|
List<ColumnModel<?>> |
getColumns()
|
|
int |
getMaxResults()
Get the maximum number of entities that should be returned. |
|
String |
getName()
Get the name of this EntityModel. |
|
String |
getParent()
Get the parent entity type of this entity. |
|
String |
getTable()
Get the name of the table represented by this EntityModel. |
|
int |
indexOf(ColumnModel<?> columnModel)
Find the index of a particular ColumnModel in this EntityModel's ColumnModel array. |
|
void |
outputMetadata(IEntityHandler callback)
|
|
boolean |
parseEntityId(String searchString,
IEntityHandler callback)
|
|
void |
setMaxResults(int maxResults)
Set the maximum number of entities that should be returned. |
|
void |
setName(String s)
Set the name of this EntityModel. |
|
void |
setParent(String parent)
Set the parent entity type of this entity. |
|
void |
setTable(String s)
Set the name of the table represented by this EntityModel. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Byte cacheFlag
protected List<ColumnModel<?>> models
| Constructor Detail |
|---|
protected EntityModel()
| Method Detail |
|---|
public String getName()
public void setName(String s)
s - namepublic String getTable()
public void setTable(String s)
s - table namepublic ColumnModel<?>[] getColumnModels()
public abstract <T> ColumnModel<T> createColumn()
public void addColumn(ColumnModel<?> cm)
public List<ColumnModel<?>> getColumns()
public ColumnModel<?> getColumnModel(String name)
public int indexOf(ColumnModel<?> columnModel)
columnModel - ColumnModel to look for
public void setParent(String parent)
parent - parent entity typepublic String getParent()
public void setMaxResults(int maxResults)
maxResults - max resultspublic int getMaxResults()
public void outputMetadata(IEntityHandler callback)
public boolean parseEntityId(String searchString,
IEntityHandler callback)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||