public abstract class ProtocolDaoOjbBase<GenericProtocol extends ProtocolBase> extends org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb implements org.kuali.rice.krad.util.OjbCollectionAware, ProtocolDao<GenericProtocol>
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
collectionFieldNames |
| Constructor and Description |
|---|
ProtocolDaoOjbBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Collection<String> |
getActiveProtocolStatusCodesHook() |
protected abstract Collection<String> |
getApprovedSubmissionStatusCodesHook() |
protected org.apache.ojb.broker.query.ReportQueryByCriteria |
getCollectionReportQuery(String key,
CriteriaFieldHelper critField) |
protected abstract List<CriteriaFieldHelper> |
getCriteriaFields() |
List<GenericProtocol> |
getExpiringProtocols(String committeeId,
Date startDate,
Date endDate)
This method returns all Protocols that were approved by the specified committee and
expires in the specified date range.
|
List<ProtocolBase> |
getNotifiedProtocols(String committeeId,
Date startDate,
Date endDate)
This method returns all Protocols that were given a decision status of "Specify Minor Revision" (SMR)
or "Substantive Revision Required" (SRR) by the specified committee in the specified date range.
|
protected abstract Collection<String> |
getPendingAmendmentRenewalsProtocolStatusCodesHook() |
protected abstract Class<? extends ProtocolActionBase> |
getProtocolActionBOClassHoook() |
protected abstract Class<? extends ProtocolBase> |
getProtocolBOClassHook() |
protected abstract Class<? extends ProtocolPersonBase> |
getProtocolPersonBOClassHook() |
List<GenericProtocol> |
getProtocols(Map<String,String> fieldValues)
This method get protocols lookup search results.
|
protected abstract Class<? extends ProtocolSubmissionBase> |
getProtocolSubmissionBOClassHook() |
boolean |
getProtocolSubmissionCountFromProtocol(String protocolNumber)
select count(b.protocol_number)
into li_SubmissionCount
from osp$protocol b
where b.protocol_number like as_protocol_number || '%' and
b.sequence_number = (select max(a.sequence_number) from osp$protocol a
where a.protocol_number = b.protocol_number) and
b.protocol_status_code in (100, 101, 102, 103, 104, 105, 106);
Replaced above query with following query by removing sub-query and added java code to to get sub-query behaviour.
|
protected abstract Class<? extends ProtocolUnitBase> |
getProtocolUnitBOClassHook() |
protected abstract Collection<String> |
getRevisionRequestedProtocolActionTypeCodesHook() |
protected abstract Collection<String> |
getRevisionRequestedProtocolStatusCodesHook() |
protected void |
initCollectionFields() |
protected abstract void |
initRoleListsHook(List<String> investigatorRoles,
List<String> personRoles) |
<T extends ProtocolAttachmentBase & TypedAttachment> |
retrieveAttachmentVersions(T attachment,
Class<T> type)
Gets all the attachment versions based on the passed in attachment.
|
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService) |
void |
setLookupDao(org.kuali.rice.krad.dao.LookupDao lookupDao) |
getDbPlatform, setDbPlatformcheckDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplatepublic List<GenericProtocol> getProtocols(Map<String,String> fieldValues)
ProtocolDaogetProtocols in interface ProtocolDao<GenericProtocol extends ProtocolBase>ProtocolDao.getProtocols(java.util.Map)public <T extends ProtocolAttachmentBase & TypedAttachment> List<T> retrieveAttachmentVersions(T attachment, Class<T> type)
retrieveAttachmentVersions in interface ProtocolDao<GenericProtocol extends ProtocolBase>attachment - the attachment to base the query off oftype - a class token used for retrieving the attachmentspublic List<GenericProtocol> getExpiringProtocols(String committeeId, Date startDate, Date endDate)
getExpiringProtocols in interface ProtocolDao<GenericProtocol extends ProtocolBase>committeeId - of the most recent protocol submission that approved the protocol.startDate - of the date range for the expiration date of the protocol. The start date is
optional. If no start date is specified, the beginning of time will be used.endDate - of the date range for the expiration date of the protocol. The end date is
optional. If no end date is specified, the end of time will be used.protected abstract Collection<String> getApprovedSubmissionStatusCodesHook()
protected abstract Collection<String> getActiveProtocolStatusCodesHook()
public List<ProtocolBase> getNotifiedProtocols(String committeeId, Date startDate, Date endDate)
ProtocolDaogetNotifiedProtocols in interface ProtocolDao<GenericProtocol extends ProtocolBase>committeeId - of theendDate - of the date range for theprotected abstract Collection<String> getRevisionRequestedProtocolActionTypeCodesHook()
protected abstract Collection<String> getRevisionRequestedProtocolStatusCodesHook()
protected abstract Class<? extends ProtocolActionBase> getProtocolActionBOClassHoook()
protected void initCollectionFields()
protected abstract void initRoleListsHook(List<String> investigatorRoles, List<String> personRoles)
protected org.apache.ojb.broker.query.ReportQueryByCriteria getCollectionReportQuery(String key, CriteriaFieldHelper critField)
public void setLookupDao(org.kuali.rice.krad.dao.LookupDao lookupDao)
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
public boolean getProtocolSubmissionCountFromProtocol(String protocolNumber)
getProtocolSubmissionCountFromProtocol in interface ProtocolDao<GenericProtocol extends ProtocolBase>org.kuali.kra.protocol.ProtocolDao#getProtocolSubmissionCount(java.lang.String)protected abstract Collection<String> getPendingAmendmentRenewalsProtocolStatusCodesHook()
protected abstract Class<? extends ProtocolBase> getProtocolBOClassHook()
protected abstract Class<? extends ProtocolPersonBase> getProtocolPersonBOClassHook()
protected abstract Class<? extends ProtocolUnitBase> getProtocolUnitBOClassHook()
protected abstract Class<? extends ProtocolSubmissionBase> getProtocolSubmissionBOClassHook()
protected abstract List<CriteriaFieldHelper> getCriteriaFields()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.