Package org.bedework.eventreg.db
Class DbItem<T>
java.lang.Object
org.bedework.eventreg.db.SerializableProperties
org.bedework.eventreg.db.DbItem<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Serializable,Comparable<T>
- Direct Known Subclasses:
BwProperty,Change,FieldDef,FormDef,RegId,Registration,Ticket
Simple base class for database entities
- Author:
- Mike Douglass
- See Also:
-
Field Summary
Fields inherited from class org.bedework.eventreg.db.SerializableProperties
vals -
Constructor Summary
Constructors -
Method Summary
Methods 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
-
DbItem
public DbItem()null constructor for hibernate
-
-
Method Details
-
setId
- Parameters:
val- the id
-
getId
- Returns:
- Long id
-
unsaved
public boolean unsaved()- Returns:
- true if this entity is not saved.
-
setSeq
Set the seq for this entity- Parameters:
val- int seq
-
getSeq
Get the entity seq- Returns:
- int the entity seq
-
toStringSegment
protected void toStringSegment(org.bedework.util.misc.ToString ts) Add our stuff to the StringBuilder- Parameters:
ts- StringBuilder for result
-
clone
Make visible -
compareTo
- Specified by:
compareToin interfaceComparable<T>
-
hashCode
public int hashCode() -
equals
-