gov.nih.nci.common.persistence.enhanced
Class BaseQueryImpl

java.lang.Object
  extended by gov.nih.nci.common.persistence.enhanced.BaseQueryImpl
Direct Known Subclasses:
AllBioAssayQuery, AllExperimentQuery, ArrayDesignReporterSummaryQuery, BioAssayByExperimentIdQuery, BioAssayByExperimentNameQuery, CommonQueryHelper, DerivedBioAssayByBioSourceIdentifierQuery, DerivedBioAssayByBioSourceNameQuery, ExperimentByChipPlatformTypeQuery, ExperimentByDesignElementQuery, ExperimentByExperimentNameQuery, ExperimentByInvestigatorNameQuery, ExperimentByOrganismNameQuery, ExperimentByPubMedIdQuery, ExperimentByTissueTypeQuery, MeasuredBioAssayByBioSourceIdentifierQuery, MeasuredBioAssayByBioSourceNameQuery

public class BaseQueryImpl
extends java.lang.Object


Field Summary
protected static java.util.Collection<java.lang.Long> EMPTY_LONG_COLLECTION
           
 
Constructor Summary
BaseQueryImpl()
           
 
Method Summary
protected  org.apache.ojb.broker.query.Criteria buildLikeCriteria(java.lang.String[] valuesToMatch, java.lang.Object likeObject0)
           
protected  org.apache.ojb.broker.query.Criteria buildLikeCriteria(java.lang.String[] valuesToMatch, java.lang.Object likeObject0, boolean isCaseSensitive)
           
protected  org.apache.ojb.broker.PersistenceBroker getBroker()
           
protected  org.apache.ojb.broker.ManageableCollection getCollectionByQuery(java.lang.Class collectionClass, org.apache.ojb.broker.query.Query ojbQuery)
           
protected  java.util.Collection getCollectionByQuery(org.apache.ojb.broker.query.Query ojbQuery)
           
protected  java.sql.Connection getConnection(org.apache.ojb.broker.PersistenceBroker broker)
           
protected  java.lang.Long[] getIds(java.util.Collection<MAGEOMObject> mageOMObjects)
           
protected  java.util.Collection<java.lang.Long> getIdsAsCollection(java.util.Collection<MAGEOMObject> mageOMObjects)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_LONG_COLLECTION

protected static final java.util.Collection<java.lang.Long> EMPTY_LONG_COLLECTION
Constructor Detail

BaseQueryImpl

public BaseQueryImpl()
Method Detail

getBroker

protected org.apache.ojb.broker.PersistenceBroker getBroker()

getCollectionByQuery

protected java.util.Collection getCollectionByQuery(org.apache.ojb.broker.query.Query ojbQuery)

getCollectionByQuery

protected org.apache.ojb.broker.ManageableCollection getCollectionByQuery(java.lang.Class collectionClass,
                                                                          org.apache.ojb.broker.query.Query ojbQuery)

getConnection

protected java.sql.Connection getConnection(org.apache.ojb.broker.PersistenceBroker broker)
                                     throws org.apache.ojb.broker.accesslayer.LookupException
Throws:
org.apache.ojb.broker.accesslayer.LookupException

getIds

protected java.lang.Long[] getIds(java.util.Collection<MAGEOMObject> mageOMObjects)

getIdsAsCollection

protected java.util.Collection<java.lang.Long> getIdsAsCollection(java.util.Collection<MAGEOMObject> mageOMObjects)

buildLikeCriteria

protected org.apache.ojb.broker.query.Criteria buildLikeCriteria(java.lang.String[] valuesToMatch,
                                                                 java.lang.Object likeObject0)
Parameters:
valuesToMatch -
likeObject0 - the name of the field name to match
Returns:
a criteria object that is case-sensitive searches

buildLikeCriteria

protected org.apache.ojb.broker.query.Criteria buildLikeCriteria(java.lang.String[] valuesToMatch,
                                                                 java.lang.Object likeObject0,
                                                                 boolean isCaseSensitive)
Parameters:
valuesToMatch -
likeObject0 - the name of the field name to match
isCaseSensitive - flag to determine whether the case sensitivity, false will perform a case-insensitive match
Returns:
a criteria object that is case-sensitive searches