|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datacrow.enhancers.AutoIncrementer
public class AutoIncrementer
Auto numbering functionality. Applies a new number to the indicated number field.
IValueEnhancer
Constructor Summary | |
---|---|
AutoIncrementer(int field)
Creates a new instance. |
|
AutoIncrementer(int field,
boolean enabled,
boolean fillGaps,
int step)
Creates a new instance. |
Method Summary | |
---|---|
java.lang.Object |
apply(DcField field,
java.lang.Object value)
Apply the enhancement. |
int |
getField()
|
int |
getIndex()
Unique ID for this enhancer. |
int |
getStep()
|
boolean |
isEnabled()
Indicates if this enhancer is enabled. |
boolean |
isFillGaps()
|
boolean |
isRunOnInsert()
Indicates if the enhancement should be performed after inserting an item. |
boolean |
isRunOnUpdating()
Indicates if the enhancement should be performed after updating an item. |
void |
parse(java.lang.String s)
Parses a string representation. |
java.lang.String |
toSaveString()
Creates a string representation which can be stored to disk. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AutoIncrementer(int field)
field
- The field to which enhancements will be made.public AutoIncrementer(int field, boolean enabled, boolean fillGaps, int step)
field
- The field to which enhancements will be made.enabled
- Indicates if this enhancer is enabled.fillGaps
- Indicates if gaps in the numbering should be filled.step
- The step size (amount to increase per number).Method Detail |
---|
public java.lang.String toSaveString()
IValueEnhancer
toSaveString
in interface IValueEnhancer
public boolean isEnabled()
IValueEnhancer
isEnabled
in interface IValueEnhancer
public boolean isFillGaps()
public int getStep()
public boolean isRunOnUpdating()
IValueEnhancer
isRunOnUpdating
in interface IValueEnhancer
public boolean isRunOnInsert()
IValueEnhancer
isRunOnInsert
in interface IValueEnhancer
public java.lang.Object apply(DcField field, java.lang.Object value)
IValueEnhancer
apply
in interface IValueEnhancer
field
- The field to enhance.value
- The value.
public int getField()
public void parse(java.lang.String s)
IValueEnhancer
parse
in interface IValueEnhancer
public int getIndex()
IValueEnhancer
getIndex
in interface IValueEnhancer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |