|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jpalm.mobiledb.field.definition.DateDefinition
public class DateDefinition
A date field in a MobileDB record.
Use Date
with this field.
Constructor Summary | |
---|---|
DateDefinition()
Creates a new date that does not default to the current date. |
|
DateDefinition(boolean defaultToCurrentDate)
Creates a new date. |
|
DateDefinition(java.lang.String indicator)
Creates a new date from the string representation for this type. |
Method Summary | |
---|---|
java.lang.String |
getIndicator()
Gets the string representation for this definition. |
java.lang.String |
getRegex()
Gets the regular expression for this definition. |
boolean |
isDefaultToCurrentDate()
Gets the defaultToCurrentDate property. |
void |
setDefaultToCurrentDate(boolean defaultToCurrentDate)
Sets the defaultToCurrentDate property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateDefinition()
public DateDefinition(boolean defaultToCurrentDate)
defaultToCurrentDate
- true
if the field should default to the current date;
false
otherwisepublic DateDefinition(java.lang.String indicator)
indicator
- the string representationMethod Detail |
---|
public java.lang.String getIndicator()
Definition
getIndicator
in interface Definition
public java.lang.String getRegex()
Definition
getRegex
in interface Definition
public boolean isDefaultToCurrentDate()
defaultToCurrentDate
property.
true
if the date should default to the current date;
false
if it should default to nullpublic void setDefaultToCurrentDate(boolean defaultToCurrentDate)
defaultToCurrentDate
property.
defaultToCurrentDate
- true
if the date should default to the current date;
false
if it should default to null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |