org.kuali.kfs.module.bc.batch.dataaccess.impl
Class BudgetConstructionBatchHelperDaoOjb

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
          extended by org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
              extended by org.kuali.kfs.module.bc.batch.dataaccess.impl.BudgetConstructionBatchHelperDaoOjb
All Implemented Interfaces:
org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
GeneralLedgerBudgetLoadDaoOjb, GenesisDaoOjb

public class BudgetConstructionBatchHelperDaoOjb
extends org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
BudgetConstructionBatchHelperDaoOjb()
           
 
Method Summary
protected  String[] buildCountDistinct(org.apache.ojb.broker.query.ReportQueryByCriteria originalQuery)
           
protected  String[] buildCountDistinct(String ojbAttributeName, Class ojbClass)
           
protected  HashMap<String,String> getDBFieldNamesForClass(Class ojbClass)
          fetch the DB column names for the fields in the class for the query
 String getOjbPlatform()
           
protected  Integer hashCapacity(Integer hashSize)
           
protected  Integer hashCapacity(org.apache.ojb.broker.query.QueryByCriteria queryID)
           
protected  Integer hashCapacity(org.apache.ojb.broker.query.ReportQueryByCriteria queryID)
           
protected  Integer hashObjectSize(Class classID, org.apache.ojb.broker.query.Criteria criteriaID)
           
protected  Integer hashObjectSize(Class classID, org.apache.ojb.broker.query.Criteria criteriaID, String propertyName)
           
protected  Integer hashObjectSize(Class classID, org.apache.ojb.broker.query.Criteria criteriaID, String[] selectList)
           
protected  Integer queryCountDistinct(org.apache.ojb.broker.query.ReportQueryByCriteria originalQuery)
          build a correct, DB-specific COUNT DISTINCT query to indicate how many rows a distinct or GROUP BY query will return.
 void setOjbMySqlPlatform(String ojbMySqlPlatform)
          build the MYSQL-specific COUNT(DISTINCT syntax
 void setOjbOraclePlatform(String ojbOraclePlatform)
          build the Oracle-specific COUNT (DISTINCT syntax--which is ANSI standard
 void setOjbPlatform(String ojbPlatform)
          initialize the ojbPlatform from the configuration properties
 
Methods inherited from class org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
getDbPlatform, setDbPlatform
 
Methods inherited from class org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BudgetConstructionBatchHelperDaoOjb

public BudgetConstructionBatchHelperDaoOjb()
Method Detail

hashCapacity

protected Integer hashCapacity(org.apache.ojb.broker.query.QueryByCriteria queryID)

hashCapacity

protected Integer hashCapacity(org.apache.ojb.broker.query.ReportQueryByCriteria queryID)

hashCapacity

protected Integer hashCapacity(Integer hashSize)

hashObjectSize

protected Integer hashObjectSize(Class classID,
                                 org.apache.ojb.broker.query.Criteria criteriaID)

hashObjectSize

protected Integer hashObjectSize(Class classID,
                                 org.apache.ojb.broker.query.Criteria criteriaID,
                                 String propertyName)

hashObjectSize

protected Integer hashObjectSize(Class classID,
                                 org.apache.ojb.broker.query.Criteria criteriaID,
                                 String[] selectList)

buildCountDistinct

protected String[] buildCountDistinct(org.apache.ojb.broker.query.ReportQueryByCriteria originalQuery)

buildCountDistinct

protected String[] buildCountDistinct(String ojbAttributeName,
                                      Class ojbClass)

getDBFieldNamesForClass

protected HashMap<String,String> getDBFieldNamesForClass(Class ojbClass)
fetch the DB column names for the fields in the class for the query

Parameters:
ojbClass - = class of the query
Returns:
hash set of DB column names keyed by OJB attribute name,

queryCountDistinct

protected Integer queryCountDistinct(org.apache.ojb.broker.query.ReportQueryByCriteria originalQuery)
build a correct, DB-specific COUNT DISTINCT query to indicate how many rows a distinct or GROUP BY query will return. the default count is returned if this is not possible

Parameters:
originalQuery - = OJB report query for which to find a value for the row count returned

getOjbPlatform

public String getOjbPlatform()

setOjbPlatform

public void setOjbPlatform(String ojbPlatform)
initialize the ojbPlatform from the configuration properties

Parameters:
ojbPlatform - = configuration property indicating the DB platform in use

setOjbOraclePlatform

public void setOjbOraclePlatform(String ojbOraclePlatform)
build the Oracle-specific COUNT (DISTINCT syntax--which is ANSI standard

Parameters:
ojbOraclePlatform - is the Kuali constant matching the configuration property for Oracle

setOjbMySqlPlatform

public void setOjbMySqlPlatform(String ojbMySqlPlatform)
build the MYSQL-specific COUNT(DISTINCT syntax

Parameters:
ojbMySqlPlatform - is the Kuali constant matching the configuration property for MySQL


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.