Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.3.0)

E17060-01

oracle.odi.domain.runtime.session.finder
Interface IOdiSessionFinder

All Superinterfaces:
IFinder

public interface IOdiSessionFinder
extends IFinder

Finder interface for OdiSession entity root.


Method Summary
 int countAll()
          Gets the number of ODI sessions stored inside runtime repository.
 int countByAgentNameAndStatus(java.lang.String pAgentName, Status pStatus)
          Gets the number of ODI sessions related to given ODI Agent and having given status in runtime repository.
 int countByStatus(Status pStatus)
          Gets the number of ODI sessions with given status in runtime repository.
 java.util.Collection<OdiSession> findByCriteria(OdiSessionCriteria criteria, int maxResults)
          Returns collection of OdiSession instances matching given criteria.
 OdiSession findBySessionId(java.lang.Number pSessionId)
          Returns the OdiSession instance for the specified session id value.
 java.util.Collection<OdiSession> findChildSessions(OdiSession pParentSession)
          Returns collection of OdiSession instances which are children for the session.
 
Methods inherited from interface oracle.odi.domain.finder.IFinder
findAll, findById, findByIds
 

Method Detail

countAll

int countAll()
Gets the number of ODI sessions stored inside runtime repository.

Returns:
number of ODI sessions stored inside runtime repository

countByAgentNameAndStatus

int countByAgentNameAndStatus(java.lang.String pAgentName,
                              Status pStatus)
Gets the number of ODI sessions related to given ODI Agent and having given status in runtime repository.

Throw IllegalArgumentException if pAgentName is null or empty, or if pStatus is null.

Parameters:
pAgentName - agent's name
pStatus - status
Returns:
number of ODI sessions related to given ODI Agent and having given status in runtime repository

countByStatus

int countByStatus(Status pStatus)
Gets the number of ODI sessions with given status in runtime repository.

Throws IllegalArgumentException if status is null

Parameters:
pStatus - status
Returns:
number of ODI sessions with given status in runtime repository

findByCriteria

java.util.Collection<OdiSession> findByCriteria(OdiSessionCriteria criteria,
                                                int maxResults)
Returns collection of OdiSession instances matching given criteria.

Search will be performed using "AND" logical operation for all not-null criteria's fields.

For all fields which support wild cards, the match will be case insensitive.

Parameters:
criteria - search criteria
maxResults - maximum number of results. If equal to 0 - all records will be returned
Returns:
unmodifiable collection of OdiSession instances matching given criteria

findBySessionId

OdiSession findBySessionId(java.lang.Number pSessionId)
Returns the OdiSession instance for the specified session id value.

Parameters:
pSessionId - session's id to search for
Returns:
OdiSession instance

findChildSessions

java.util.Collection<OdiSession> findChildSessions(OdiSession pParentSession)
Returns collection of OdiSession instances which are children for the session.

Parameters:
pParentSession - parent session
Returns:
collection of child sessions.

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.3.0)

E17060-01

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.