|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
void setConnection(Connection connection)
connection
- the connectiongetConnection()
Connection getConnection()
setConnection(Connection)
void setFetchSize(int size)
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;
size
- fetch sizeQueryObjectGenerator.DEFAULT_FETCH_SIZE
,
getFetchSize()
int getFetchSize()
setFetchSize(int)
void setBatchSize(int size)
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;
size
- batch sizeQueryObjectGenerator.DEFAULT_BATCH_SIZE
,
getBatchSize()
int getBatchSize()
setBatchSize(int)
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |