|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.patterns.listdata.persist.db.ListDatabaseUtils
org.opensubsystems.patterns.listdata.persist.db.MySQLListDatabaseUtils
public class MySQLListDatabaseUtils
This class is used for common list retrieval and manipulation routines specific for MySQL.
| Field Summary |
|---|
| Fields inherited from class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseUtils |
|---|
LIST_INDEX_PREFIX |
| Constructor Summary | |
|---|---|
MySQLListDatabaseUtils()
Constructor |
|
| Method Summary | |
|---|---|
java.util.List |
getObjectList(ListOptions options,
java.lang.String query,
ListDatabaseFactory factory,
ListDatabaseSchema schema)
Get list of data objects for specified parameters |
java.lang.String |
getWhereClause(java.lang.String strTableName,
int[] arrIds,
SimpleRule securityFilter,
ListDatabaseSchema schema)
Get where clause to select specified ids while taking into account specified security filter therefore retrieving only those data objects for which the access is granted. |
protected java.lang.String |
preprocessSelectQuery(java.lang.String inputQuery,
ListOptions options,
ListDatabaseSchema schema)
Method that preprocess query (by adding specific SQL clauses for example LIMIT, ...) to improve performance of selecting items from the list at specific position. |
protected java.lang.String |
preprocessSelectQueryForCreationDate(java.lang.String inputQuery,
ListOptions options,
ListDatabaseSchema schema)
Method that preprocess query (by adding specific SQL clauses after CREATION_DATE sort column) to fix ordering if DBS supports short timestamp value. |
| Methods inherited from class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseUtils |
|---|
allocateObjectList, convertValueToSQL, getConstructListIndexName, getInstance, getObjectListKeepSelected, getSelectCount, getSelectList, getSQLOperation, getSQLValue, getTotalRecords, getWhereClause, parseCondition, setOptionPositioning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MySQLListDatabaseUtils()
| Method Detail |
|---|
public java.lang.String getWhereClause(java.lang.String strTableName,
int[] arrIds,
SimpleRule securityFilter,
ListDatabaseSchema schema)
throws org.opensubsystems.core.error.OSSException
getWhereClause in class ListDatabaseUtilsstrTableName - - name of the table in databasearrIds - - array of Ids which should be selected, may be null when no
special IDs should be selectedsecurityFilter - - rule describing what data can user accessschema - - list database schema implementation capable of providing
more info about attributes included in the query
org.opensubsystems.core.error.OSSException - - error during parse
public java.util.List getObjectList(ListOptions options,
java.lang.String query,
ListDatabaseFactory factory,
ListDatabaseSchema schema)
throws org.opensubsystems.core.error.OSSException
getObjectList in class ListDatabaseUtilsoptions - - list option describing the list to retrievequery - - select SQL queryfactory - - list factory for specific data objectschema - - list database schema
org.opensubsystems.core.error.OSSException - - an error getting object list
protected java.lang.String preprocessSelectQuery(java.lang.String inputQuery,
ListOptions options,
ListDatabaseSchema schema)
throws org.opensubsystems.core.error.OSSException
preprocessSelectQuery in class ListDatabaseUtilsinputQuery - - query that will be preprocessedoptions - - initialized list options that will be used for retrieving
begin position, page size, ...schema - - list database schema
org.opensubsystems.core.error.OSSException - - error during preprocessing select query
protected java.lang.String preprocessSelectQueryForCreationDate(java.lang.String inputQuery,
ListOptions options,
ListDatabaseSchema schema)
throws org.opensubsystems.core.error.OSSException
preprocessSelectQueryForCreationDate in class ListDatabaseUtilsinputQuery - - query that will be preprocessedoptions - - initialized list options that will be used for retrieving
begin position, page size, ...schema - - list database schema
org.opensubsystems.core.error.OSSException - - error during preprocessing select query
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||