| com.completex.objective.components.persistency.CallFactory
All known Subclasses: com.completex.objective.components.persistency.core.impl.query.CallFactoryImpl,
newCall | Call newCall(String sql)(Code) | | Creates preset query object
Parameters: sql - SQL statement new Call instance |
newCall | Call newCall(Call call)(Code) | | Creates preset call object from another one used a template
Parameters: call - Call used as a template new Call instance |
newCall | Call newCall()(Code) | | Creates new call object
new Call instance |
newCall | Call newCall(PersistentObjectFactory singularResultFactory)(Code) | | Creates preset call object
Parameters: singularResultFactory - singular result factory new Call instance |
newConnectedForwardPageCall | Call newConnectedForwardPageCall(AbstractPersistentObject singularResultFactory, long pageSize)(Code) | | Creates preset call object which when executed brings only one page of results
and does not disconnect from the database. It keeps cursor/result set open and only closes it either
when there is nothing to retrieve or on transaction commit.
The following snippet shows how to use it:
Call call = persistency.getCallFactory().newConnectedForwardPageCall(new Person(), 1000);
List persons;
while ((persons = persistency.selectSinglePartResultCall(call).size() > 0 ) {
// Do your processing here
}
Parameters: singularResultFactory - singular result factory Parameters: pageSize - page size new Call instance |
newConnectedForwardPageCall | Call newConnectedForwardPageCall(Call call, long pageSize)(Code) | | Creates preset call object which when executed brings only one page of results
and does not disconnect from the database. It keeps cursor/result set open and only closes it either
when there is nothing to retrieve or on transaction commit.
The following snippet shows how to use it:
Call call = persistency.getCallFactory().newConnectedForwardPageCall(new Person(), 1000);
List persons;
while ((persons = persistency.selectSinglePartResultCall(call).size() > 0 ) {
// Do your processing here
}
Parameters: call - non-paginated Call object Parameters: pageSize - page size new Call instance |
newConnectedForwardPageCall | Call newConnectedForwardPageCall(long pageSize)(Code) | | Creates preset call object which when executed brings only one page of results
and does not disconnect from the database. It keeps cursor/result set open and only closes it either
when there is nothing to retrieve or on transaction commit.
The following snippet shows how to use it:
Call call = persistency.getCallFactory().newConnectedForwardPageCall(new Person(), 1000);
List persons;
while ((persons = persistency.selectSinglePartResultCall(call).size() > 0 ) {
// Do your processing here
}
Parameters: pageSize - page size new Call instance |
newDisconnectedPageCall | Call newDisconnectedPageCall(Call call, long offset, long pageSize)(Code) | | Creates preset query object which when executed brings only one page of results
Parameters: call - query object Parameters: offset - 0-based offset Parameters: pageSize - page size new Call instance |
newDisconnectedPageCall | Call newDisconnectedPageCall(long offset, long pageSize)(Code) | | Creates preset call object which when executed brings only one page of results
Parameters: offset - 0-based offset Parameters: pageSize - page size new Call instance |
newDisconnectedPageCall | Call newDisconnectedPageCall(AbstractPersistentObject singularResultFactory, long offset, long pageSize)(Code) | | Creates preset call object which when executed brings only one page of results
Parameters: singularResultFactory - singular result factory Parameters: offset - 0-based offset Parameters: pageSize - page size new Call instance |
|
|