atg.svc.repository.beans
Interface RecommendedAnswerHome

All Superinterfaces:
javax.ejb.EJBLocalHome
All Known Implementing Classes:
_RecommendedAnswerHome_BeanImpl, _RecommendedAnswerHome_ReposImpl

public interface RecommendedAnswerHome
extends javax.ejb.EJBLocalHome

Finder Summaries

Finder Name Finder Description Returns
findByPrimaryKey one
findByDocumentFind recommended answers by document Urlmany
findByDocumentSinceFind documents used as recommended answers modified since the specified datemany
findBySolutionFind recommended answers by solution repository id ordered by modified datemany
countBySolutioncounts number of recommended answers associated with the given solutioncount
findBySolutionSinceFind solutions used as recommended answers modified since the specified datemany
countBySolutionWithLinkStatecounts number of recommended answers associated with the given solution-id and link statecount
findBySolutionWithPagingFind recommended answers by solution repository id with paging, order by modify datemany
findByTicketFind recommended answers associated with a ticketmany
findByTicketAndDocumentFind links by ticket, docIdone
findByTicketAndSolutionFind links by ticket and solution Idone


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
 RecommendedAnswer wrapRepositoryItem(atg.repository.RepositoryItem pRepositoryItem)
           
 java.util.Collection wrapRepositoryItems(java.util.Collection pRepositoryItems)
           
 
Methods inherited from interface javax.ejb.EJBLocalHome
remove
 

Method Detail

create

RecommendedAnswer create()
                         throws javax.ejb.CreateException,
                                javax.ejb.EJBException
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

RecommendedAnswer create(java.lang.String pId)
                         throws javax.ejb.CreateException,
                                javax.ejb.EJBException
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

RecommendedAnswer findByPrimaryKey(java.lang.String primaryKey)
                                   throws javax.ejb.FinderException,
                                          javax.ejb.EJBException
Returns the instance with the given primary key, throws ObjectNotFoundException if the instance is not found.

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

findByDocument

java.util.Collection findByDocument(java.lang.String docId)
                                    throws javax.ejb.FinderException,
                                           javax.ejb.EJBException
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

java.util.Collection findByDocumentSince(java.lang.String docId,
                                         java.util.Date since,
                                         java.lang.String state)
                                         throws javax.ejb.FinderException,
                                                javax.ejb.EJBException
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

java.util.Collection findBySolution(java.lang.String solutionId)
                                    throws javax.ejb.FinderException,
                                           javax.ejb.EJBException
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

int countBySolution(java.lang.String solutionId)
                    throws javax.ejb.FinderException,
                           javax.ejb.EJBException
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

java.util.Collection findBySolutionSince(java.lang.String solutionId,
                                         java.util.Date since,
                                         java.lang.String state)
                                         throws javax.ejb.FinderException,
                                                javax.ejb.EJBException
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

int countBySolutionWithLinkState(java.lang.String solutionId,
                                 java.lang.String state)
                                 throws javax.ejb.FinderException,
                                        javax.ejb.EJBException
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

java.util.Collection findBySolutionWithPaging(java.lang.String solutionId,
                                              int startingIndex,
                                              int numItems)
                                              throws javax.ejb.FinderException,
                                                     javax.ejb.EJBException
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

java.util.Collection findByTicket(java.lang.String ticketId)
                                  throws javax.ejb.FinderException,
                                         javax.ejb.EJBException
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

RecommendedAnswer findByTicketAndDocument(java.lang.String ticketId,
                                          java.lang.String docId)
                                          throws javax.ejb.FinderException,
                                                 javax.ejb.EJBException
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

RecommendedAnswer findByTicketAndSolution(java.lang.String ticketId,
                                          java.lang.String solutionId)
                                          throws javax.ejb.FinderException,
                                                 javax.ejb.EJBException
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

java.util.Collection wrapRepositoryItems(java.util.Collection pRepositoryItems)

wrapRepositoryItem

RecommendedAnswer wrapRepositoryItem(atg.repository.RepositoryItem pRepositoryItem)