Class UnversionedDbentity<T>
- java.lang.Object
-
- org.bedework.carddav.server.dirHandlers.db.DumpEntity<T>
-
- org.bedework.carddav.server.dirHandlers.db.UnversionedDbentity<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
Serializable,Comparable<T>,org.bedework.util.logging.Logged
- Direct Known Subclasses:
DbCardParam,DbCardProperty,DbEntity
public class UnversionedDbentity<T> extends DumpEntity<T> implements Comparable<T>, Serializable
Base type for a database entity. We require an id and the subclasses must implement hashcode and compareTo.- Version:
- 1.0
- Author:
- Mike Douglass
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bedework.carddav.server.dirHandlers.db.DumpEntity
DumpEntity.DumpType
-
-
Constructor Summary
Constructors Constructor Description UnversionedDbentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Make visibleintcompareTo(T o)booleanequals(Object obj)LonggetId()inthashCode()voidsetId(Long val)protected voidtoStringSegment(StringBuilder sb)Add our stuff to the StringBuilderbooleanunsaved()-
Methods inherited from class org.bedework.carddav.server.dirHandlers.db.DumpEntity
dump, dump, getLogger, hasDumpValue
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, setLogLevel, trace, trace, warn
-
-
-
-
Method Detail
-
setId
public void setId(Long val)
- Parameters:
val-
-
getId
public Long getId()
- Returns:
- Long id
-
unsaved
public boolean unsaved()
- Returns:
- true if this entity is not saved.
-
toStringSegment
protected void toStringSegment(StringBuilder sb)
Add our stuff to the StringBuilder- Parameters:
sb- StringBuilder for result
-
clone
public Object clone()
Make visible
-
compareTo
public int compareTo(T o)
- Specified by:
compareToin interfaceComparable<T>
-
-