|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RecommendedAnswerHome
Finder Name | Finder Description | Returns |
---|---|---|
findByPrimaryKey | one | |
findByDocument | Find recommended answers by document Url | many |
findByDocumentSince | Find documents used as recommended answers modified since the specified date | many |
findBySolution | Find recommended answers by solution repository id ordered by modified date | many |
countBySolution | counts number of recommended answers associated with the given solution | count |
findBySolutionSince | Find solutions used as recommended answers modified since the specified date | many |
countBySolutionWithLinkState | counts number of recommended answers associated with the given solution-id and link state | count |
findBySolutionWithPaging | Find recommended answers by solution repository id with paging, order by modify date | many |
findByTicket | Find recommended answers associated with a ticket | many |
findByTicketAndDocument | Find links by ticket, docId | one |
findByTicketAndSolution | Find links by ticket and solution Id | one |
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 |
---|
RecommendedAnswer create() throws javax.ejb.CreateException, javax.ejb.EJBException
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).
javax.ejb.CreateException
javax.ejb.EJBException
RecommendedAnswer create(java.lang.String pId) throws javax.ejb.CreateException, javax.ejb.EJBException
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).
javax.ejb.CreateException
javax.ejb.EJBException
RecommendedAnswer findByPrimaryKey(java.lang.String primaryKey) throws javax.ejb.FinderException, javax.ejb.EJBException
ObjectNotFoundException
if the instance is not found.
javax.ejb.FinderException
javax.ejb.EJBException
java.util.Collection findByDocument(java.lang.String docId) throws javax.ejb.FinderException, javax.ejb.EJBException
docId
- The document url
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.
javax.ejb.FinderException
javax.ejb.EJBException
java.util.Collection findByDocumentSince(java.lang.String docId, java.util.Date since, java.lang.String state) throws javax.ejb.FinderException, javax.ejb.EJBException
docId
- Document urlsince
- Sincestate
- Not in this link state
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.
javax.ejb.FinderException
javax.ejb.EJBException
java.util.Collection findBySolution(java.lang.String solutionId) throws javax.ejb.FinderException, javax.ejb.EJBException
solutionId
- solution repository id
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.
javax.ejb.FinderException
javax.ejb.EJBException
int countBySolution(java.lang.String solutionId) throws javax.ejb.FinderException, javax.ejb.EJBException
solutionId
- solution repository id
javax.ejb.FinderException
javax.ejb.EJBException
java.util.Collection findBySolutionSince(java.lang.String solutionId, java.util.Date since, java.lang.String state) throws javax.ejb.FinderException, javax.ejb.EJBException
solutionId
- Solution repository Idsince
- Sincestate
- Not in this link state
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.
javax.ejb.FinderException
javax.ejb.EJBException
int countBySolutionWithLinkState(java.lang.String solutionId, java.lang.String state) throws javax.ejb.FinderException, javax.ejb.EJBException
solutionId
- solution repository idstate
- recommended answer state
javax.ejb.FinderException
javax.ejb.EJBException
java.util.Collection findBySolutionWithPaging(java.lang.String solutionId, int startingIndex, int numItems) throws javax.ejb.FinderException, javax.ejb.EJBException
solutionId
- solution repository idstartingIndex
- Starting Index of items to be retreived.numItems
- # items to be retreived.
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.
javax.ejb.FinderException
javax.ejb.EJBException
java.util.Collection findByTicket(java.lang.String ticketId) throws javax.ejb.FinderException, javax.ejb.EJBException
ticketId
- Ticket Id
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.
javax.ejb.FinderException
javax.ejb.EJBException
RecommendedAnswer findByTicketAndDocument(java.lang.String ticketId, java.lang.String docId) throws javax.ejb.FinderException, javax.ejb.EJBException
ticketId
- Ticket IddocId
- Document url
ObjectNotFoundException
if no such instance is found.
javax.ejb.FinderException
javax.ejb.EJBException
RecommendedAnswer findByTicketAndSolution(java.lang.String ticketId, java.lang.String solutionId) throws javax.ejb.FinderException, javax.ejb.EJBException
ticketId
- Ticket IdsolutionId
- Repository id of the solution
ObjectNotFoundException
if no such instance is found.
javax.ejb.FinderException
javax.ejb.EJBException
java.util.Collection wrapRepositoryItems(java.util.Collection pRepositoryItems)
RecommendedAnswer wrapRepositoryItem(atg.repository.RepositoryItem pRepositoryItem)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |