|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.RealTable
public class RealTable
This class defines constants that are used to specify a table in the regular (non-dynamic) database while doing analysis with dynamic queries. This makes it possible to join data from the regular tables into a dynamic query.
DynamicSpotQuery.joinReporters(net.sf.basedb.core.query.JoinType)
,
RealJoin
,
RawDataType.getRealTable()
Field Summary | |
---|---|
private String |
alias
The alias to use in queries for this table. |
static RealTable |
REPORTER_LIST_SCORES
|
static RealTable |
REPORTERS
|
private String |
tableName
The unquoted table name. |
Constructor Summary | |
---|---|
RealTable(String tableName,
String alias)
Creates a new table. |
Method Summary | |
---|---|
String |
getAlias()
Get the alias of this table. |
String |
getAlias(BasicItem item)
Get the alias of this table, using the ID of the item to make it unique. |
String |
getAlias(int id)
Get the alias of this table, using the ID of the item to make it unique. |
String |
getQualifiedTableName()
Get the quoted table name of this table in the database. |
String |
getTableName()
Get the unquoted table name of this table in the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final RealTable REPORTERS
public static final RealTable REPORTER_LIST_SCORES
private final String tableName
private final String alias
Constructor Detail |
---|
RealTable(String tableName, String alias)
tableName
- The name of the tablealias
- The alias of the table used in queriesMethod Detail |
---|
public String getTableName()
public String getQualifiedTableName()
public String getAlias()
SELECT ... FROM table AS alias ...
public String getAlias(BasicItem item)
SELECT ... FROM table AS alias ...
public String getAlias(int id)
SELECT ... FROM table AS alias ...
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |