sf logo

sf.qof
Interface BaseQuery


public interface BaseQuery

Defines the basic methods to get and set connections, batch size and fetch size for query objects. BaseQuery is implemented by all query objects.


Method Summary
 int getBatchSize()
          Returns the batch size.
 Connection getConnection()
          Returns the connection used in the query object.
 int getFetchSize()
          Returns the fetch size.
 void setBatchSize(int size)
          Sets the batch size to be used in insert, update, delete and call queries.
 void setConnection(Connection connection)
          Set the connection to be used in the query object.
 void setFetchSize(int size)
          Sets the fetch size to be used in select queries.
 

Method Detail

setConnection

void setConnection(Connection connection)
Set the connection to be used in the query object.

Parameters:
connection - the connection
See Also:
getConnection()

getConnection

Connection getConnection()
Returns the connection used in the query object.

Returns:
the connection
See Also:
setConnection(Connection)

setFetchSize

void setFetchSize(int size)
Sets the fetch size to be used in select queries.

If the query definition class or interface defines the static field DEFAULT_FETCH_SIZE then batch size will QueryObjectGenerator.DEFAULT_FETCH_SIZE

    public static final int DEFAULT_FETCH_SIZE = 100;
 

Parameters:
size - fetch size
See Also:
QueryObjectGenerator.DEFAULT_FETCH_SIZE, getFetchSize()

getFetchSize

int getFetchSize()
Returns the fetch size.

Returns:
fetch size
See Also:
setFetchSize(int)

setBatchSize

void setBatchSize(int size)
Sets the batch size to be used in insert, update, delete and call queries.

A batch size of 0 disables batch processing.

If the query definition class or interface defines the static field DEFAULT_BATCH_SIZE then batch size will QueryObjectGenerator.DEFAULT_BATCH_SIZE

    public static final int DEFAULT_BATCH_SIZE = 100;
 

Parameters:
size - batch size
See Also:
QueryObjectGenerator.DEFAULT_BATCH_SIZE, getBatchSize()

getBatchSize

int getBatchSize()
Returns the batch size.

Returns:
batch size
See Also:
setBatchSize(int)

sf logo

Copyright © 2007 brunella ltd. All Rights Reserved.