|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ListDatabaseSchema
Base class for schemas allowing retrieving list of data objects.
| Method Summary | |
|---|---|
java.lang.StringBuffer |
getColumns(boolean specific,
int[] columns,
java.lang.Object[] prefixes,
java.lang.Object[] postfixes,
java.lang.StringBuffer buffer)
Convert any attribute regardless if it is in the main table or in join table into database column name. |
java.lang.String[] |
getJoinFromWhere(java.util.List conditions,
int[] columns)
Get from and where clause parts of the query in situation that the specified conditions refer to attributes, which are located in multiple tables. |
java.util.Map |
getMandatoryRetrieveColumns()
Get collection of all columns that has to be retrieved for each data object supported by this schema. |
java.lang.String |
getSelectList(ListOptions options,
int iDataType)
Get query to select list of data objects. |
java.util.Map |
getSortableColumns()
Get collection of all columns that can be used to sort data objects supported by this schema. |
boolean |
isExistingIndex(java.lang.String strIndexName)
Check if the the data object will use specified index for constructing query to retrieve records into the list. |
| Methods inherited from interface org.opensubsystems.core.persist.db.DatabaseSchema |
|---|
create, getDependentSchemas, getName, getVersion, handleSQLException, isInDomain, upgrade |
| Method Detail |
|---|
java.lang.String getSelectList(ListOptions options,
int iDataType)
throws org.opensubsystems.core.error.OSSException
options - - options describing what data objects to retrieveiDataType - - data type for which to retrieve the list
org.opensubsystems.core.error.OSSException - - an error has occured
java.lang.String[] getJoinFromWhere(java.util.List conditions,
int[] columns)
conditions - - list of DataConditions specifying what attributes will
be included in the querycolumns - - array of all columns to retrieve
java.lang.StringBuffer getColumns(boolean specific,
int[] columns,
java.lang.Object[] prefixes,
java.lang.Object[] postfixes,
java.lang.StringBuffer buffer)
throws org.opensubsystems.core.error.OSSException
specific - - if true - table_name.table_column, if false only table_columncolumns - - specific array of columns codesprefixes - - specific array of prefixes to prepend before each column,
each prefix will be mapped with column and the same index
they will be directly prepended or appended to the column
name and therefore they need to contain any extra space if
necessary,
specify null, if no prefixes should be prependedpostfixes - - specific array of postfixes to prepend before each column,
each prefix will be mapped with column and the same index
they will be directly prepended or appended to the column
name and therefore they need to contain any extra space if
necessary,
specify null, if no prefixes should be prependedbuffer - - buffer to use for column codes construction, it may
already contain some value, if null, new one will be allocated
org.opensubsystems.core.error.OSSException - - error in columns findjava.util.Map getMandatoryRetrieveColumns()
java.util.Map getSortableColumns()
boolean isExistingIndex(java.lang.String strIndexName)
strIndexName - - name of the index that will be checked for existency
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||