|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDatabase
Provides an interface which defines methods required by database objects.
Field Summary | |
---|---|
static String |
ID_FIELD_NAME
The name of the special identity field. |
Method Summary | |
---|---|
List |
executeQuery(String expression)
Returns a list of GenericData s which are derived from the
result of the given query. |
Iterator |
getJoinData()
Return an iterator over the join data. |
Iterator |
getJoinsFor(ITableData tableData)
Return all joins which involve the given table. |
Iterator |
getJoinsFor(ITableData tableData0,
ITableData tableData1)
Return all joins which involve the given tables. |
Iterator |
getJunctionsFor(ITableData tableData)
Return all junctions which involve the given table. |
Iterator |
getJunctionsFor(ITableData tableData0,
ITableData tableData1)
Return all junctions which involve the given tables. |
Iterator |
getTableData()
Return an iterator over the table data. |
ITableData |
getTableData(String tableName)
Return the table data with the given name. |
boolean |
isStringType(ITableData tableData,
String columnName)
Return true if the given column has string type. |
boolean |
isStringType(String tableName,
String columnName)
Return true if the given column has string type. |
List |
select(ITableData tableData)
Returns a list of IRecord s which are derived from the
result of the given query. |
List |
select(ITableData tableData,
IRecord record)
Return a list of IRecord objects which belong to the named
table and are joined to the given record. |
List |
select(ITableData tableData,
String whereClause)
Returns a list of IRecord s which are derived from the
result of the given query. |
List |
select(String tableName)
Returns a list of IRecord s which are derived from the
result of the given query. |
List |
select(String tableName,
String whereClause)
Returns a list of IRecord s which are derived from the
result of the given query. |
void |
shutdown()
Shutdown the database connection. |
void |
update(String expression)
Update the database by executing the given expression. |
Field Detail |
---|
static final String ID_FIELD_NAME
Method Detail |
---|
boolean isStringType(String tableName, String columnName)
boolean isStringType(ITableData tableData, String columnName)
List executeQuery(String expression) throws SQLException
GenericData
s which are derived from the
result of the given query.
expression
- An SQL expression, typically a select.
SQLException
Iterator getJoinData()
Iterator getJoinsFor(ITableData tableData)
IAssociation
s.Iterator getJoinsFor(ITableData tableData0, ITableData tableData1)
IAssociation
s.Iterator getJunctionsFor(ITableData tableData)
IAssociation
s.Iterator getJunctionsFor(ITableData tableData0, ITableData tableData1)
IAssociation
s.Iterator getTableData()
ITableData getTableData(String tableName)
List select(String tableName) throws SQLException
IRecord
s which are derived from the
result of the given query.
tableName
- The table name from which to select.
SQLException
List select(ITableData tableData) throws SQLException
IRecord
s which are derived from the
result of the given query.
tableData
- The table data from which to select.
SQLException
List select(String tableName, String whereClause) throws SQLException
IRecord
s which are derived from the
result of the given query.
tableName
- The table name from which to select.whereClause
- An optional where clause (without the where).
SQLException
List select(ITableData tableData, String whereClause) throws SQLException
IRecord
s which are derived from the
result of the given query.
tableData
- The table data from which to select.whereClause
- An optional where clause (without the where).
SQLException
List select(ITableData tableData, IRecord record) throws SQLException
IRecord
objects which belong to the named
table and are joined to the given record.
tableData
- The table data from which to select.record
- The object to which the answers are related.
SQLException
void shutdown() throws SQLException
SQLException
void update(String expression) throws SQLException
expression
- The expression to execute.
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |