Package net.sf.jasperreports.engine.type
Enum DatasetResetTypeEnum
- java.lang.Object
-
- java.lang.Enum<DatasetResetTypeEnum>
-
- net.sf.jasperreports.engine.type.DatasetResetTypeEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<DatasetResetTypeEnum>
,NamedEnum
public enum DatasetResetTypeEnum extends Enum<DatasetResetTypeEnum> implements NamedEnum
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLUMN
The dataset is reinitialized at the beginning of each new column.GROUP
The dataset is reinitialized every time the group specified by theJRElementDataset.getResetGroup()
method breaks.NONE
The dataset will never be initialized.PAGE
The dataset is reinitialized at the beginning of each new page.REPORT
The dataset is initialized only once, at the beginning of the report filling process.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DatasetResetTypeEnum
getByName(String name)
String
getName()
static DatasetResetTypeEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static DatasetResetTypeEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface net.sf.jasperreports.engine.type.NamedEnum
getDefault
-
-
-
-
Enum Constant Detail
-
REPORT
public static final DatasetResetTypeEnum REPORT
The dataset is initialized only once, at the beginning of the report filling process.
-
PAGE
public static final DatasetResetTypeEnum PAGE
The dataset is reinitialized at the beginning of each new page.
-
COLUMN
public static final DatasetResetTypeEnum COLUMN
The dataset is reinitialized at the beginning of each new column.
-
GROUP
public static final DatasetResetTypeEnum GROUP
The dataset is reinitialized every time the group specified by theJRElementDataset.getResetGroup()
method breaks.
-
NONE
public static final DatasetResetTypeEnum NONE
The dataset will never be initialized.
-
-
Method Detail
-
values
public static DatasetResetTypeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DatasetResetTypeEnum c : DatasetResetTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DatasetResetTypeEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getByName
public static DatasetResetTypeEnum getByName(String name)
-
-