org.kuali.kfs.gl.batch.dataaccess.impl
Class ReconciliationDaoOjb

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.gl.batch.dataaccess.impl.ReconciliationDaoOjb
All Implemented Interfaces:
ReconciliationDao, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class ReconciliationDaoOjb
extends org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
implements ReconciliationDao

Uses OJB to determine the column name -> java attribute name mapping


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
ReconciliationDaoOjb()
          Constructs a ReconciliationDaoOjb.java.
 
Method Summary
 List<String> convertDBColumnNamesToJavaName(Class<? extends OriginEntryFull> clazz, String[] columnNames, boolean caseInsensitive)
          Converts a list of DB column names to a list of java attribute names.
protected  String convertDBColumnNameToJavaName(org.apache.ojb.broker.metadata.ClassDescriptor classDescriptor, String columnName, boolean caseInsensitive)
          Returns the java attribute name corresponding to the column name
protected
<E extends OriginEntryFull>
org.apache.ojb.broker.metadata.ClassDescriptor
getClassDescriptor(Class<E> persistableClass)
          Returns the OJB class descriptor
protected  org.apache.ojb.broker.metadata.DescriptorRepository getDescriptorRepository()
          Gets the descriptorRepository attribute.
 void setDescriptorRepository(org.apache.ojb.broker.metadata.DescriptorRepository descriptorRepository)
          Sets the descriptorRepository attribute value.
 
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

ReconciliationDaoOjb

public ReconciliationDaoOjb()
Constructs a ReconciliationDaoOjb.java.

Method Detail

convertDBColumnNamesToJavaName

public List<String> convertDBColumnNamesToJavaName(Class<? extends OriginEntryFull> clazz,
                                                   String[] columnNames,
                                                   boolean caseInsensitive)
Converts a list of DB column names to a list of java attribute names. The returned list is the same size as arrap parameter

Specified by:
convertDBColumnNamesToJavaName in interface ReconciliationDao
Parameters:
clazz - a class for the OriginEntryFull class
columnNames - an array of database columns
caseInsensitive - whether to do matching
Returns:
for every valid index in the return value and the array, the value in the array is the db column name, and the value in the list is the java attribute name
See Also:
org.kuali.kfs.gl.batch.dataaccess.ReconciliationDao#convertDBColumnNamesToJavaName(java.lang.String[])

convertDBColumnNameToJavaName

protected String convertDBColumnNameToJavaName(org.apache.ojb.broker.metadata.ClassDescriptor classDescriptor,
                                               String columnName,
                                               boolean caseInsensitive)
Returns the java attribute name corresponding to the column name

Parameters:
classDescriptor - the origin entry class
columnName - the DB column name
caseInsensitive - whether to do case insensitive matching
Returns:
the java attribute name

getClassDescriptor

protected <E extends OriginEntryFull> org.apache.ojb.broker.metadata.ClassDescriptor getClassDescriptor(Class<E> persistableClass)
Returns the OJB class descriptor

Type Parameters:
E - an origin entry class
Parameters:
persistableClass - the class
Returns:
the class descriptor

getDescriptorRepository

protected org.apache.ojb.broker.metadata.DescriptorRepository getDescriptorRepository()
Gets the descriptorRepository attribute.

Returns:
Returns the descriptorRepository.

setDescriptorRepository

public void setDescriptorRepository(org.apache.ojb.broker.metadata.DescriptorRepository descriptorRepository)
Sets the descriptorRepository attribute value.

Parameters:
descriptorRepository - The descriptorRepository to set.


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