thinkmap.datasource.database
Class DatabaseDataSource.DBEdgeEntityModel
java.lang.Object
thinkmap.datasource.relational.EntityModel
thinkmap.datasource.relational.EdgeEntityModel
thinkmap.datasource.database.DatabaseDataSource.DBEdgeEntityModel
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- DatabaseDataSource
public class DatabaseDataSource.DBEdgeEntityModel
- extends EdgeEntityModel
Define an edge entity.
- See Also:
- Serialized Form
|
Method Summary |
void |
setGenerateRelatedQuery(boolean b)
Set to false if this edge should not generate a related query. |
void |
setOrderBy(String orderBy)
Set the ORDER BY expression, for example 'index asc'. |
| 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 |
generateRelated
protected boolean generateRelated
orderBy
protected String orderBy
DatabaseDataSource.DBEdgeEntityModel
public DatabaseDataSource.DBEdgeEntityModel()
setGenerateRelatedQuery
public void setGenerateRelatedQuery(boolean b)
- Set to false if this edge should not generate a related query.
- Parameters:
b - false if this edge should not generate a related query
setOrderBy
public void setOrderBy(String orderBy)
Set the ORDER BY expression, for example 'index asc'. This is useful when
the number of results is limited with
maxResults
.
Be aware that thinkmap joins more than one table in the SQL it generates; it
may thus be nececessary to include the fully-qualified table name in the
order by expression.
- Parameters:
orderBy - order by expression
Copyright © 2013 Thinkmap, Inc. All Rights Reserved.