|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.slice.jdbc.UniqueResultObjectProvider
public class UniqueResultObjectProvider
Aggregates individual single query results from different databases.
Constructor Summary | |
---|---|
UniqueResultObjectProvider(ResultObjectProvider[] rops,
StoreQuery q,
QueryExpressions[] exps)
|
Method Summary | |
---|---|
boolean |
absolute(int pos)
Move to the given 0-based position. |
void |
close()
Free the resources associated with this provider. |
(package private) Object |
count(Object current,
Object other)
|
Object |
getResultObject()
Instantiate the current result object. |
void |
handleCheckedException(Exception e)
Any checked exceptions that are thrown will be passed to this method. |
(package private) Object |
max(Object current,
Object other)
|
(package private) Object |
min(Object current,
Object other)
|
boolean |
next()
Advance the input to the next position. |
void |
open()
Open the result. |
void |
reset()
Reset this provider. |
int |
size()
Return the number of items in the input, or Integer.MAX_VALUE
if the size in unknown. |
(package private) Object |
sum(Object current,
Object other)
|
boolean |
supportsRandomAccess()
Return true if this provider supports random access. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UniqueResultObjectProvider(ResultObjectProvider[] rops, StoreQuery q, QueryExpressions[] exps)
Method Detail |
---|
public boolean absolute(int pos) throws Exception
ResultObjectProvider
true
if there is data at this position;
otherwise false
. This may be invoked in place of
ResultObjectProvider.next()
.
absolute
in interface ResultObjectProvider
Exception
public void close() throws Exception
ResultObjectProvider
close
in interface ResultObjectProvider
close
in interface Closeable
Exception
public Object getResultObject() throws Exception
ResultObjectProvider
ResultObjectProvider.next()
or ResultObjectProvider.absolute(int)
.
getResultObject
in interface ResultObjectProvider
Exception
public void handleCheckedException(Exception e)
ResultObjectProvider
handleCheckedException
in interface ResultObjectProvider
public boolean next() throws Exception
ResultObjectProvider
true
if
there is more data; otherwise false
.
next
in interface ResultObjectProvider
Exception
Object count(Object current, Object other)
Object max(Object current, Object other)
Object min(Object current, Object other)
Object sum(Object current, Object other)
public void open() throws Exception
ResultObjectProvider
ResultObjectProvider.next()
, ResultObjectProvider.absolute(int)
, or ResultObjectProvider.size()
.
open
in interface ResultObjectProvider
Exception
public void reset() throws Exception
ResultObjectProvider
reset
in interface ResultObjectProvider
Exception
public int size() throws Exception
ResultObjectProvider
Integer.MAX_VALUE
if the size in unknown.
size
in interface ResultObjectProvider
Exception
public boolean supportsRandomAccess()
ResultObjectProvider
supportsRandomAccess
in interface ResultObjectProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |