net.shrine.sheriff.model
Class SheriffDAO

java.lang.Object
  extended by net.shrine.sheriff.model.SheriffDAO

public class SheriffDAO
extends Object

Author:
Andrew McMurry

Nested Class Summary
static class SheriffDAO.QueryParam
           
 
Constructor Summary
SheriffDAO()
           
 
Method Summary
 void create(net.shrine.sheriff.model.SheriffEntry entry)
           
 net.shrine.sheriff.model.SheriffEntry createNewPendingEntry(net.shrine.sheriff.model.SheriffEntry source)
           
 net.shrine.sheriff.model.SheriffEntry createNewPendingEntry(String ecommonsID, String email, String queryName, String queryIntent, String queryReason, String queryReasonOther, boolean hasNonShrineCollaborator, String nonShrineCollaboratorInfo)
           
 void delete(net.shrine.sheriff.model.SheriffEntry entry)
           
static org.hibernate.SessionFactory getSessionFactory()
           
 List<net.shrine.sheriff.model.SheriffEntry> read(List<org.hibernate.criterion.Criterion> clauses)
           
 List<net.shrine.sheriff.model.SheriffEntry> read(List<org.hibernate.criterion.Criterion> clauses, org.hibernate.criterion.Order... sortCriteria)
           
 List<net.shrine.sheriff.model.SheriffEntry> readAll()
           
 List<net.shrine.sheriff.model.SheriffEntry> readApprovedEntries(String eCommonsID)
           
 net.shrine.sheriff.model.SheriffEntry readById(Long queryTopicID)
           
 List<net.shrine.sheriff.model.SheriffEntry> readByRequestorID(String eCommonsID)
           
 List<net.shrine.sheriff.model.SheriffEntry> readPendingEntries()
           
 List<net.shrine.sheriff.model.SheriffEntry> readPendingEntries(String eCommonsID)
           
 SheriffUser readUser(String ecommonsID)
           
 void resubmit(net.shrine.sheriff.model.SheriffEntry entry)
           
 void retract(net.shrine.sheriff.model.SheriffEntry entry)
           
 void truncateSheriffEntries()
           
 void update(Long queryTopicID, net.shrine.sheriff.model.ApprovalStatus approval)
           
 void update(net.shrine.sheriff.model.SheriffEntry entry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SheriffDAO

public SheriffDAO()
Method Detail

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.