| |
|
| java.lang.Object org.ofbiz.entity.util.EntityFindOptions
EntityFindOptions | public class EntityFindOptions implements java.io.Serializable(Code) | | Contains a number of variables used to select certain advanced finding options.
author: David E. Jones version: $Revision: 1.2 $ since: 2.0 |
Constructor Summary | |
public | EntityFindOptions() Default constructor. | public | EntityFindOptions(boolean specifyTypeAndConcur, int resultSetType, int resultSetConcurrency, boolean distinct) |
CONCUR_READ_ONLY | final public static int CONCUR_READ_ONLY(Code) | | Concurrency constant from the java.sql.ResultSet object for convenience
|
CONCUR_UPDATABLE | final public static int CONCUR_UPDATABLE(Code) | | Concurrency constant from the java.sql.ResultSet object for convenience
|
TYPE_FORWARD_ONLY | final public static int TYPE_FORWARD_ONLY(Code) | | Type constant from the java.sql.ResultSet object for convenience
|
TYPE_SCROLL_INSENSITIVE | final public static int TYPE_SCROLL_INSENSITIVE(Code) | | Type constant from the java.sql.ResultSet object for convenience
|
TYPE_SCROLL_SENSITIVE | final public static int TYPE_SCROLL_SENSITIVE(Code) | | Type constant from the java.sql.ResultSet object for convenience
|
distinct | protected boolean distinct(Code) | | |
resultSetConcurrency | protected int resultSetConcurrency(Code) | | |
resultSetType | protected int resultSetType(Code) | | |
specifyTypeAndConcur | protected boolean specifyTypeAndConcur(Code) | | |
EntityFindOptions | public EntityFindOptions()(Code) | | Default constructor. Defaults are as follows:
specifyTypeAndConcur = true
resultSetType = TYPE_FORWARD_ONLY
resultSetConcurrency = CONCUR_READ_ONLY
distinct = false
|
EntityFindOptions | public EntityFindOptions(boolean specifyTypeAndConcur, int resultSetType, int resultSetConcurrency, boolean distinct)(Code) | | |
getDistinct | public boolean getDistinct()(Code) | | Specifies whether the values returned should be filtered to remove duplicate values.
|
getResultSetConcurrency | public int getResultSetConcurrency()(Code) | | Specifies whether or not the ResultSet can be updated. Available values:
ResultSet.CONCUR_READ_ONLY or ResultSet.CONCUR_UPDATABLE. Should pretty much always be
ResultSet.CONCUR_READ_ONLY with the Entity Engine.
|
getResultSetType | public int getResultSetType()(Code) | | Specifies how the ResultSet will be traversed. Available values: ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE or ResultSet.TYPE_SCROLL_SENSITIVE. See the java.sql.ResultSet JavaDoc for
more information. If you want it to be fast, use the common default: ResultSet.TYPE_FORWARD_ONLY.
|
getSpecifyTypeAndConcur | public boolean getSpecifyTypeAndConcur()(Code) | | If true the following two parameters (resultSetType and resultSetConcurrency) will be used to specify
how the results will be used; if false the default values for the JDBC driver will be used
|
setDistinct | public void setDistinct(boolean distinct)(Code) | | Specifies whether the values returned should be filtered to remove duplicate values.
|
setResultSetConcurrency | public void setResultSetConcurrency(int resultSetConcurrency)(Code) | | Specifies whether or not the ResultSet can be updated. Available values:
ResultSet.CONCUR_READ_ONLY or ResultSet.CONCUR_UPDATABLE. Should pretty much always be
ResultSet.CONCUR_READ_ONLY with the Entity Engine.
|
setResultSetType | public void setResultSetType(int resultSetType)(Code) | | Specifies how the ResultSet will be traversed. Available values: ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE or ResultSet.TYPE_SCROLL_SENSITIVE. See the java.sql.ResultSet JavaDoc for
more information. If you want it to be fast, use the common default: ResultSet.TYPE_FORWARD_ONLY.
|
setSpecifyTypeAndConcur | public void setSpecifyTypeAndConcur(boolean specifyTypeAndConcur)(Code) | | If true the following two parameters (resultSetType and resultSetConcurrency) will be used to specify
how the results will be used; if false the default values for the JDBC driver will be used
|
|
|
|