Package org.bedework.eventreg.db
Class FormDef
- All Implemented Interfaces:
Serializable,Comparable<FormDef>
A registration to an event for a single person (or entity)
- Author:
- douglm
- See Also:
-
Field Summary
Fields inherited from class org.bedework.eventreg.db.SerializableProperties
vals -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintbooleanbooleangetOwner()inthashCode()voidremoveField(FieldDef val) voidsetComment(String val) voidsetCommitted(boolean val) voidsetCreated(String val) voidsetDisabled(boolean val) voidvoidsetFormName(String val) voidSet the lastmod to now.voidsetLastmod(String val) voidvoidSet the various timestamps to now for a new registration.voidsetWaitListLimit(String val) toString()protected voidtoStringSegment(org.bedework.util.misc.ToString ts) Add our stuff to the ToStringMethods inherited from class org.bedework.eventreg.db.DbItem
clone, equals, getId, getSeq, setId, setSeq, unsavedMethods inherited from class org.bedework.eventreg.db.SerializableProperties
asMap, asString, getMap, getProperties, getVals, init, may, mayBool, mayInt, mayList, mayList, must, mustList, setBoolean, setInt, setObject, setProperties, setString
-
Constructor Details
-
FormDef
public FormDef()
-
-
Method Details
-
setFormName
- Parameters:
val- name
-
getFormName
- Returns:
- name
-
setOwner
- Parameters:
val- the owner
-
getOwner
- Returns:
- owner
-
setCommitted
public void setCommitted(boolean val) -
getCommitted
public boolean getCommitted() -
setDisabled
public void setDisabled(boolean val) -
getDisabled
public boolean getDisabled() -
setCreated
- Parameters:
val- date
-
getCreated
- Returns:
- created
-
setLastmod
- Parameters:
val- date
-
getLastmod
- Returns:
- lastmod
-
setComment
- Parameters:
val- a comment
-
getComment
- Returns:
- comment
-
setFields
- Parameters:
val- set of FieldDefs
-
getFields
- Returns:
- FieldDefs
-
setWaitListLimit
- Parameters:
val- a wait list limit - as an integer or an integer followed by "%"- Throws:
EventregException
-
getWaitListLimit
- Returns:
- a wait list limit - as an integer or an integer followed by "%"
- Throws:
EventregException
-
addField
- Parameters:
val- a FieldDef
-
removeField
- Parameters:
val-
-
setTimestamps
public void setTimestamps()Set the various timestamps to now for a new registration. -
setLastmod
public void setLastmod()Set the lastmod to now. -
toStringSegment
protected void toStringSegment(org.bedework.util.misc.ToString ts) Add our stuff to the ToString- Overrides:
toStringSegmentin classDbItem<FormDef>- Parameters:
ts- for result
-
compareTo
-
hashCode
public int hashCode() -
toString
-