@Inherited @Repeatable(value=Wheres.class) @Target(value={TYPE,ANNOTATION_TYPE}) @Retention(value=RUNTIME) public @interface Where
Table
subclass, or SqlOperation
.Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
name
Name of where condition.
|
Modifier and Type | Optional Element and Description |
---|---|
int |
fetchSize
JDBC fetch size to use for prepared statement.
|
java.lang.String[] |
fieldNames
Define condition where all fields in the condition use "=" comparison operator and
are joined logically by "AND" boolean operator.
|
int |
maximumRows
Limits the number of rows to read by invoking
ScalarSelectOperation.setMaximumRowsRead(int) . |
int |
selectInitialCapacity
Initial capacity of collection/map that will contain the results from
SelectOperation
that uses this where condition. |
WhereField[] |
whereFields
Define condition where one or more fields use comparison operator or boolean operator other
than the defaults.
|
public abstract java.lang.String name
SqlOperation.setWhere(String)
public abstract java.lang.String[] fieldNames
whereFields()
.public abstract WhereField[] whereFields
fieldNames()
.public abstract int selectInitialCapacity
SelectOperation
that uses this where condition. Sets this value with
SelectOperation.setDefaultReadAllSize(int)
.
For queries that return large result sets, setting the initial capacity close to the number of rows in result set may improve performance since collection/map that holds results will not need to be resized as much.
public abstract int fetchSize
Statement.setFetchSize(int)
public abstract int maximumRows
ScalarSelectOperation.setMaximumRowsRead(int)
.Integer.MAX_VALUE
means no limit