net.sourceforge.jpalm.mobiledb.field.definition
Class SequenceDefinition

java.lang.Object
  extended by net.sourceforge.jpalm.mobiledb.field.definition.SequenceDefinition
All Implemented Interfaces:
Definition

public class SequenceDefinition
extends java.lang.Object
implements Definition

A sequence field in a MobileDB record.

Use Number with this field.


Constructor Summary
SequenceDefinition()
          Creates a new sequence type with an initial value of 1 and an increment of 1.
SequenceDefinition(java.lang.Byte initialValue, java.lang.Byte increment)
          Creates a new sequence type.
SequenceDefinition(java.lang.Double initialValue, java.lang.Double increment)
          Creates a new sequence type.
SequenceDefinition(java.lang.Float initialValue, java.lang.Float increment)
          Creates a new sequence type.
SequenceDefinition(java.lang.Integer initialValue, java.lang.Integer increment)
          Creates a new sequence type.
SequenceDefinition(java.lang.Long initialValue, java.lang.Long increment)
          Creates a new sequence type.
SequenceDefinition(java.lang.Short initialValue, java.lang.Short increment)
          Creates a new sequence type.
SequenceDefinition(java.lang.String indicator)
          Creates a new sequence type from the string representation for this type.
 
Method Summary
 java.lang.Double getIncrement()
          Gets the increment.
 java.lang.String getIndicator()
          Gets the string representation for this definition.
 java.lang.Double getInitialValue()
          Gets the initial value.
 java.lang.String getRegex()
          Gets the regular expression for this definition.
 void setIncrement(java.lang.Byte increment)
          Sets the increment.
 void setIncrement(java.lang.Double increment)
          Sets the increment.
 void setIncrement(java.lang.Float increment)
          Sets the increment.
 void setIncrement(java.lang.Integer increment)
          Sets the increment.
 void setIncrement(java.lang.Long increment)
          Sets the increment.
 void setIncrement(java.lang.Short increment)
          Sets the increment.
 void setInitialValue(java.lang.Byte initialValue)
          Sets the initial value.
 void setInitialValue(java.lang.Double initialValue)
          Sets the initial value.
 void setInitialValue(java.lang.Float initialValue)
          Sets the initial value.
 void setInitialValue(java.lang.Integer initialValue)
          Sets the initial value.
 void setInitialValue(java.lang.Long initialValue)
          Sets the initial value.
 void setInitialValue(java.lang.Short initialValue)
          Sets the initial value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceDefinition

public SequenceDefinition()
Creates a new sequence type with an initial value of 1 and an increment of 1.


SequenceDefinition

public SequenceDefinition(java.lang.Float initialValue,
                          java.lang.Float increment)
Creates a new sequence type.

Parameters:
initialValue - the initial value
increment - the increment

SequenceDefinition

public SequenceDefinition(java.lang.Double initialValue,
                          java.lang.Double increment)
Creates a new sequence type.

Parameters:
initialValue - the initial value
increment - the increment

SequenceDefinition

public SequenceDefinition(java.lang.Byte initialValue,
                          java.lang.Byte increment)
Creates a new sequence type.

Parameters:
initialValue - the initial value
increment - the increment

SequenceDefinition

public SequenceDefinition(java.lang.Short initialValue,
                          java.lang.Short increment)
Creates a new sequence type.

Parameters:
initialValue - the initial value
increment - the increment

SequenceDefinition

public SequenceDefinition(java.lang.Integer initialValue,
                          java.lang.Integer increment)
Creates a new sequence type.

Parameters:
initialValue - the initial value
increment - the increment

SequenceDefinition

public SequenceDefinition(java.lang.Long initialValue,
                          java.lang.Long increment)
Creates a new sequence type.

Parameters:
initialValue - the initial value
increment - the increment

SequenceDefinition

public SequenceDefinition(java.lang.String indicator)
Creates a new sequence type from the string representation for this type.

Parameters:
indicator - the string representation
Method Detail

getIndicator

public java.lang.String getIndicator()
Description copied from interface: Definition
Gets the string representation for this definition.

Specified by:
getIndicator in interface Definition
Returns:
the string representation

getRegex

public java.lang.String getRegex()
Description copied from interface: Definition
Gets the regular expression for this definition. The regular expression is compared to a field and if the field matches the expression then that field is of this definition.

Specified by:
getRegex in interface Definition
Returns:
the regular expression for this definition

getIncrement

public java.lang.Double getIncrement()
Gets the increment.

Returns:
the increment

setIncrement

public void setIncrement(java.lang.Double increment)
Sets the increment.

Parameters:
increment - the increment

setIncrement

public void setIncrement(java.lang.Float increment)
Sets the increment.

Parameters:
increment - the increment

setIncrement

public void setIncrement(java.lang.Byte increment)
Sets the increment.

Parameters:
increment - the increment

setIncrement

public void setIncrement(java.lang.Short increment)
Sets the increment.

Parameters:
increment - the increment

setIncrement

public void setIncrement(java.lang.Integer increment)
Sets the increment.

Parameters:
increment - the increment

setIncrement

public void setIncrement(java.lang.Long increment)
Sets the increment.

Parameters:
increment - the increment

getInitialValue

public java.lang.Double getInitialValue()
Gets the initial value.

Returns:
the initial value

setInitialValue

public void setInitialValue(java.lang.Double initialValue)
Sets the initial value.

Parameters:
initialValue - the initial value

setInitialValue

public void setInitialValue(java.lang.Float initialValue)
Sets the initial value.

Parameters:
initialValue - the initial value

setInitialValue

public void setInitialValue(java.lang.Byte initialValue)
Sets the initial value.

Parameters:
initialValue - the initial value

setInitialValue

public void setInitialValue(java.lang.Short initialValue)
Sets the initial value.

Parameters:
initialValue - the initial value

setInitialValue

public void setInitialValue(java.lang.Integer initialValue)
Sets the initial value.

Parameters:
initialValue - the initial value

setInitialValue

public void setInitialValue(java.lang.Long initialValue)
Sets the initial value.

Parameters:
initialValue - the initial value