com.solarmetric.kodo.runtime.objectprovider
Class CustomResultObjectProvider.ResultObjectProviderAdapter
java.lang.Object
|
+--com.solarmetric.kodo.runtime.objectprovider.CustomResultObjectProvider.ResultObjectProviderAdapter
- All Implemented Interfaces:
- ResultObjectProvider
- Enclosing class:
- CustomResultObjectProvider
- public static class CustomResultObjectProvider.ResultObjectProviderAdapter
- extends Object
- implements ResultObjectProvider
Adapter class that allows a CustomResultObjectProvider
to be used in situations that require a ResultObjectProvider
.
Method Summary |
boolean |
advance(Object input)
Advance the input source input to the next
position. |
void |
free(Object input)
Optionally free the resources associated with this provider. |
Object |
getResultObject(Object input)
Instantiate the desired object from the current data in
input . |
boolean |
open(Object input)
Open the input source input . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomResultObjectProvider.ResultObjectProviderAdapter
public CustomResultObjectProvider.ResultObjectProviderAdapter(CustomResultObjectProvider rop)
getResultObject
public Object getResultObject(Object input)
throws Exception
- Description copied from interface:
ResultObjectProvider
- Instantiate the desired object from the current data in
input
.
- Specified by:
getResultObject
in interface ResultObjectProvider
open
public boolean open(Object input)
throws Exception
- Description copied from interface:
ResultObjectProvider
- Open the input source
input
. This is invoked
before any data is loaded from the input. Return
true
if there is data in the input; otherwise
false
.
- Specified by:
open
in interface ResultObjectProvider
advance
public boolean advance(Object input)
throws Exception
- Description copied from interface:
ResultObjectProvider
- Advance the input source
input
to the next
position. Return true
if there is more data;
otherwise false
. This is invoked between each
invocation of ResultObjectProvider.getResultObject(java.lang.Object)
.
- Specified by:
advance
in interface ResultObjectProvider
free
public void free(Object input)
throws Exception
- Description copied from interface:
ResultObjectProvider
- Optionally free the resources associated with this provider.
For example, the source Connection might be released once the
statement has been completed, or an InputStream might be
closed.
- Specified by:
free
in interface ResultObjectProvider
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.