atg.svc.repository.beans
Class _RecommendedAnswerHome_ReposImpl

java.lang.Object
  extended by atg.svc.repository.beans._RecommendedAnswerHome_ReposImpl
All Implemented Interfaces:
atg.svc.repository.beans.pv.RecommendedAnswerHome_PV, RecommendedAnswerHome, java.io.Serializable, javax.ejb.EJBLocalHome

public class _RecommendedAnswerHome_ReposImpl
extends java.lang.Object

See Also:
Serialized Form

Field Summary
static atg.repository.tojava.runtime.RepositoryItemObjectFactory sFactory
           
static atg.repository.RepositoryItemDescriptor sItemDescriptor
           
static atg.repository.Repository sRepository
           
 
Method Summary
 int countBySolution(java.lang.String solutionId)
          counts number of recommended answers associated with the given solution
 int countBySolutionWithLinkState(java.lang.String solutionId, java.lang.String state)
          counts number of recommended answers associated with the given solution-id and link state
 RecommendedAnswer create()
          Returns a new instance.
 RecommendedAnswer create(java.lang.String pId)
          Returns a new instance with the repository id set to the given id.
 java.util.Collection findByDocument(java.lang.String docId)
          Find recommended answers by document Url
 java.util.Collection findByDocumentSince(java.lang.String docId, java.util.Date since, java.lang.String state)
          Find documents used as recommended answers modified since the specified date
 RecommendedAnswer findByPrimaryKey(java.lang.String primaryKey)
          Returns the instance with the given primary key, throws ObjectNotFoundException if the instance is not found.
 java.util.Collection findBySolution(java.lang.String solutionId)
          Find recommended answers by solution repository id ordered by modified date
 java.util.Collection findBySolutionSince(java.lang.String solutionId, java.util.Date since, java.lang.String state)
          Find solutions used as recommended answers modified since the specified date
 java.util.Collection findBySolutionWithPaging(java.lang.String solutionId, int startingIndex, int numItems)
          Find recommended answers by solution repository id with paging, order by modify date
 java.util.Collection findByTicket(java.lang.String ticketId)
          Find recommended answers associated with a ticket
 RecommendedAnswer findByTicketAndDocument(java.lang.String ticketId, java.lang.String docId)
          Find links by ticket, docId
 RecommendedAnswer findByTicketAndSolution(java.lang.String ticketId, java.lang.String solutionId)
          Find links by ticket and solution Id
 void remove(java.lang.Object primaryKey)
           
 RecommendedAnswer wrapRepositoryItem(atg.repository.RepositoryItem pRepositoryItem)
           
 java.util.Collection wrapRepositoryItems(java.util.Collection pRepositoryItems)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sRepository

public static atg.repository.Repository sRepository

sItemDescriptor

public static atg.repository.RepositoryItemDescriptor sItemDescriptor

sFactory

public static atg.repository.tojava.runtime.RepositoryItemObjectFactory sFactory
Method Detail

create

public RecommendedAnswer create()
                         throws javax.ejb.CreateException,
                                javax.ejb.EJBException
Description copied from interface: atg.svc.repository.beans.pv.RecommendedAnswerHome_PV
Returns a new instance. The properties are set to default values, and may be changed by using the appropriate setter methods. The instance may be a repository or bean implementation depending on how this home's factory was obtained. If the instance is backed by a persistent implementation, it may not actually be persisted until RecommendedAnswer.writeInstance() is called on the instance (and the transaction is committed, if the implementation is transaction-aware).

Throws:
javax.ejb.CreateException
javax.ejb.EJBException

create

public RecommendedAnswer create(java.lang.String pId)
                         throws javax.ejb.CreateException,
                                javax.ejb.EJBException
Description copied from interface: atg.svc.repository.beans.pv.RecommendedAnswerHome_PV
Returns a new instance with the repository id set to the given id. The properties are set to default values, and may be changed by using the appropriate setter methods. The instance may be a repository or bean implementation depending on how this home's factory was obtained. If the instance is backed by a persistent implementation, it may not actually be persisted until RecommendedAnswer.writeInstance() is called on the instance (and the transaction is committed, if the implementation is transaction-aware).

Throws:
javax.ejb.CreateException
javax.ejb.EJBException

findByPrimaryKey

public RecommendedAnswer findByPrimaryKey(java.lang.String primaryKey)
                                   throws javax.ejb.FinderException,
                                          javax.ejb.EJBException
Description copied from interface: atg.svc.repository.beans.pv.RecommendedAnswerHome_PV
Returns the instance with the given primary key, throws ObjectNotFoundException if the instance is not found.

Throws:
javax.ejb.FinderException
javax.ejb.EJBException

findByDocument

public java.util.Collection findByDocument(java.lang.String docId)
                                    throws javax.ejb.FinderException,
                                           javax.ejb.EJBException
Description copied from interface: atg.svc.repository.beans.pv.RecommendedAnswerHome_PV
Find recommended answers by document Url

Parameters:
docId - The document url
Returns:
a Collection of RecommendedAnswer instances matching the criteria. The Collection.iterator() method can be used to retrieve the instances in order. If no instances match the criteria, then an empty Collection is returned. A null value is never returned.
Throws:
javax.ejb.FinderException
javax.ejb.EJBException

findByDocumentSince

public java.util.Collection findByDocumentSince(java.lang.String docId,
                                                java.util.Date since,
                                                java.lang.String state)
                                         throws javax.ejb.FinderException,
                                                javax.ejb.EJBException
Description copied from interface: atg.svc.repository.beans.pv.RecommendedAnswerHome_PV
Find documents used as recommended answers modified since the specified date

Parameters:
docId - Document url
since - Since
state - Not in this link state
Returns:
a Collection of RecommendedAnswer instances matching the criteria. The Collection.iterator() method can be used to retrieve the instances in order. If no instances match the criteria, then an empty Collection is returned. A null value is never returned.
Throws:
javax.ejb.FinderException
javax.ejb.EJBException

findBySolution

public java.util.Collection findBySolution(java.lang.String solutionId)
                                    throws javax.ejb.FinderException,
                                           javax.ejb.EJBException
Description copied from interface: atg.svc.repository.beans.pv.RecommendedAnswerHome_PV
Find recommended answers by solution repository id ordered by modified date

Parameters:
solutionId - solution repository id
Returns:
a Collection of RecommendedAnswer instances matching the criteria. The Collection.iterator() method can be used to retrieve the instances in order. If no instances match the criteria, then an empty Collection is returned. A null value is never returned.
Throws:
javax.ejb.FinderException
javax.ejb.EJBException

countBySolution

public int countBySolution(java.lang.String solutionId)
                    throws javax.ejb.FinderException,
                           javax.ejb.EJBException
Description copied from interface: atg.svc.repository.beans.pv.RecommendedAnswerHome_PV
counts number of recommended answers associated with the given solution

Parameters:
solutionId - solution repository id
Returns:
the number of instances matching the query criteria.
Throws:
javax.ejb.FinderException
javax.ejb.EJBException

findBySolutionSince

public java.util.Collection findBySolutionSince(java.lang.String solutionId,
                                                java.util.Date since,
                                                java.lang.String state)
                                         throws javax.ejb.FinderException,
                                                javax.ejb.EJBException
Description copied from interface: atg.svc.repository.beans.pv.RecommendedAnswerHome_PV
Find solutions used as recommended answers modified since the specified date

Parameters:
solutionId - Solution repository Id
since - Since
state - Not in this link state
Returns:
a Collection of RecommendedAnswer instances matching the criteria. The Collection.iterator() method can be used to retrieve the instances in order. If no instances match the criteria, then an empty Collection is returned. A null value is never returned.
Throws:
javax.ejb.FinderException
javax.ejb.EJBException

countBySolutionWithLinkState

public int countBySolutionWithLinkState(java.lang.String solutionId,
                                        java.lang.String state)
                                 throws javax.ejb.FinderException,
                                        javax.ejb.EJBException
Description copied from interface: atg.svc.repository.beans.pv.RecommendedAnswerHome_PV
counts number of recommended answers associated with the given solution-id and link state

Parameters:
solutionId - solution repository id
state - recommended answer state
Returns:
the number of instances matching the query criteria.
Throws:
javax.ejb.FinderException
javax.ejb.EJBException

findBySolutionWithPaging

public java.util.Collection findBySolutionWithPaging(java.lang.String solutionId,
                                                     int startingIndex,
                                                     int numItems)
                                              throws javax.ejb.FinderException,
                                                     javax.ejb.EJBException
Description copied from interface: atg.svc.repository.beans.pv.RecommendedAnswerHome_PV
Find recommended answers by solution repository id with paging, order by modify date

Parameters:
solutionId - solution repository id
startingIndex - Starting Index of items to be retreived.
numItems - # items to be retreived.
Returns:
a Collection of RecommendedAnswer instances matching the criteria. The Collection.iterator() method can be used to retrieve the instances in order. If no instances match the criteria, then an empty Collection is returned. A null value is never returned.
Throws:
javax.ejb.FinderException
javax.ejb.EJBException

findByTicket

public java.util.Collection findByTicket(java.lang.String ticketId)
                                  throws javax.ejb.FinderException,
                                         javax.ejb.EJBException
Description copied from interface: atg.svc.repository.beans.pv.RecommendedAnswerHome_PV
Find recommended answers associated with a ticket

Parameters:
ticketId - Ticket Id
Returns:
a Collection of RecommendedAnswer instances matching the criteria. The Collection.iterator() method can be used to retrieve the instances in order. If no instances match the criteria, then an empty Collection is returned. A null value is never returned.
Throws:
javax.ejb.FinderException
javax.ejb.EJBException

findByTicketAndDocument

public RecommendedAnswer findByTicketAndDocument(java.lang.String ticketId,
                                                 java.lang.String docId)
                                          throws javax.ejb.FinderException,
                                                 javax.ejb.EJBException
Description copied from interface: atg.svc.repository.beans.pv.RecommendedAnswerHome_PV
Find links by ticket, docId

Parameters:
ticketId - Ticket Id
docId - Document url
Returns:
an instance matching the query criteria, or throws ObjectNotFoundException if no such instance is found.
Throws:
javax.ejb.FinderException
javax.ejb.EJBException

findByTicketAndSolution

public RecommendedAnswer findByTicketAndSolution(java.lang.String ticketId,
                                                 java.lang.String solutionId)
                                          throws javax.ejb.FinderException,
                                                 javax.ejb.EJBException
Description copied from interface: atg.svc.repository.beans.pv.RecommendedAnswerHome_PV
Find links by ticket and solution Id

Parameters:
ticketId - Ticket Id
solutionId - Repository id of the solution
Returns:
an instance matching the query criteria, or throws ObjectNotFoundException if no such instance is found.
Throws:
javax.ejb.FinderException
javax.ejb.EJBException

wrapRepositoryItems

public java.util.Collection wrapRepositoryItems(java.util.Collection pRepositoryItems)
Specified by:
wrapRepositoryItems in interface atg.svc.repository.beans.pv.RecommendedAnswerHome_PV
Specified by:
wrapRepositoryItems in interface RecommendedAnswerHome

wrapRepositoryItem

public RecommendedAnswer wrapRepositoryItem(atg.repository.RepositoryItem pRepositoryItem)
Specified by:
wrapRepositoryItem in interface atg.svc.repository.beans.pv.RecommendedAnswerHome_PV
Specified by:
wrapRepositoryItem in interface RecommendedAnswerHome

remove

public void remove(java.lang.Object primaryKey)
            throws javax.ejb.RemoveException,
                   javax.ejb.EJBException
Throws:
javax.ejb.RemoveException
javax.ejb.EJBException