org.opensubsystems.patterns.listdata.persist.db
Class DB2ListDatabaseUtils

java.lang.Object
  extended by org.opensubsystems.patterns.listdata.persist.db.ListDatabaseUtils
      extended by org.opensubsystems.patterns.listdata.persist.db.DB2ListDatabaseUtils

public class DB2ListDatabaseUtils
extends ListDatabaseUtils

This class is used for common list retrieval and manipulation routines specific for IBM DB2.

Version:
$Id: DB2ListDatabaseUtils.java,v 1.8 2007/01/07 06:14:23 bastafidli Exp $
Author:
Julo Legeny
Code reviewer:
Miro Halas
Code reviewed:
1.5 2004/12/20 20:37:34 jlegeny

Field Summary
 
Fields inherited from class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseUtils
LIST_INDEX_PREFIX
 
Constructor Summary
DB2ListDatabaseUtils()
          Constructor
 
Method Summary
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.
 
Methods inherited from class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseUtils
allocateObjectList, convertValueToSQL, getConstructListIndexName, getInstance, getObjectList, getObjectListKeepSelected, getSelectCount, getSelectList, getSQLOperation, getSQLValue, getTotalRecords, getWhereClause, getWhereClause, parseCondition, preprocessSelectQueryForCreationDate, setOptionPositioning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DB2ListDatabaseUtils

public DB2ListDatabaseUtils()
Constructor

Method Detail

preprocessSelectQuery

protected java.lang.String preprocessSelectQuery(java.lang.String inputQuery,
                                                 ListOptions options,
                                                 ListDatabaseSchema schema)
                                          throws org.opensubsystems.core.error.OSSException
Method that preprocess query (by adding specific SQL clauses for example LIMIT, ...) to improve performance of selecting items from the list at specific position. This method can be overwritten by DB specific method.

Overrides:
preprocessSelectQuery in class ListDatabaseUtils
Parameters:
inputQuery - - query that will be preprocessed
options - - initialized list options that will be used for retrieving begin position, page size, ...
schema - - list database schema
Returns:
String - preprocessed query
Throws:
org.opensubsystems.core.error.OSSException - - error during preprocessing select query


Copyright © 2003 - 2006 OpenSubsystems s.r.o.