net.shrine.sheriff.model
Class SheriffDAO
java.lang.Object
net.shrine.sheriff.model.SheriffDAO
public class SheriffDAO
- extends Object
- Author:
- Andrew McMurry
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SheriffDAO
public SheriffDAO()
createNewPendingEntry
public net.shrine.sheriff.model.SheriffEntry createNewPendingEntry(net.shrine.sheriff.model.SheriffEntry source)
throws SheriffDAOException,
SheriffAuthException
- Throws:
SheriffDAOException
SheriffAuthException
createNewPendingEntry
public net.shrine.sheriff.model.SheriffEntry createNewPendingEntry(String ecommonsID,
String email,
String queryName,
String queryIntent,
String queryReason,
String queryReasonOther,
boolean hasNonShrineCollaborator,
String nonShrineCollaboratorInfo)
throws SheriffDAOException,
SheriffAuthException
- Throws:
SheriffDAOException
SheriffAuthException
create
public void create(net.shrine.sheriff.model.SheriffEntry entry)
throws net.shrine.sheriff.model.SheriffException
- Throws:
net.shrine.sheriff.model.SheriffException
readAll
public List<net.shrine.sheriff.model.SheriffEntry> readAll()
throws net.shrine.sheriff.model.SheriffException
- Throws:
net.shrine.sheriff.model.SheriffException
readPendingEntries
public List<net.shrine.sheriff.model.SheriffEntry> readPendingEntries()
throws SheriffDAOException
- Throws:
SheriffDAOException
readByRequestorID
public List<net.shrine.sheriff.model.SheriffEntry> readByRequestorID(String eCommonsID)
throws net.shrine.sheriff.model.SheriffException
- Throws:
net.shrine.sheriff.model.SheriffException
readApprovedEntries
public List<net.shrine.sheriff.model.SheriffEntry> readApprovedEntries(String eCommonsID)
throws SheriffDAOException
- Throws:
SheriffDAOException
readPendingEntries
public List<net.shrine.sheriff.model.SheriffEntry> readPendingEntries(String eCommonsID)
throws SheriffDAOException
- Throws:
SheriffDAOException
readById
public net.shrine.sheriff.model.SheriffEntry readById(Long queryTopicID)
throws SheriffDAOException
- Throws:
SheriffDAOException
read
public List<net.shrine.sheriff.model.SheriffEntry> read(List<org.hibernate.criterion.Criterion> clauses)
throws SheriffDAOException
- Throws:
SheriffDAOException
read
public List<net.shrine.sheriff.model.SheriffEntry> read(List<org.hibernate.criterion.Criterion> clauses,
org.hibernate.criterion.Order... sortCriteria)
throws SheriffDAOException
- Throws:
SheriffDAOException
update
public void update(Long queryTopicID,
net.shrine.sheriff.model.ApprovalStatus approval)
throws net.shrine.sheriff.model.SheriffException
- Throws:
net.shrine.sheriff.model.SheriffException
delete
public void delete(net.shrine.sheriff.model.SheriffEntry entry)
throws net.shrine.sheriff.model.SheriffException
- Throws:
net.shrine.sheriff.model.SheriffException
retract
public void retract(net.shrine.sheriff.model.SheriffEntry entry)
throws net.shrine.sheriff.model.SheriffException
- Throws:
net.shrine.sheriff.model.SheriffException
resubmit
public void resubmit(net.shrine.sheriff.model.SheriffEntry entry)
throws net.shrine.sheriff.model.SheriffException
- Throws:
net.shrine.sheriff.model.SheriffException
update
public void update(net.shrine.sheriff.model.SheriffEntry entry)
throws net.shrine.sheriff.model.SheriffException
- Throws:
net.shrine.sheriff.model.SheriffException
readUser
public SheriffUser readUser(String ecommonsID)
throws SheriffDAOException
- Throws:
SheriffDAOException
truncateSheriffEntries
public void truncateSheriffEntries()
throws Exception
- Throws:
Exception
getSessionFactory
public static org.hibernate.SessionFactory getSessionFactory()
Copyright © 2011. All Rights Reserved.