Package de.xima.fc.entities
Class AbstractEntity
- java.lang.Object
-
- de.xima.cmn.dao.model.AEntity<Long>
-
- de.xima.fc.entities.AbstractEntity
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,ITransferable
,ITransferableEntity
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
- Direct Known Subclasses:
AbstractLockableEntity
,FormRecordLock
,ProjectTag
,ProjektZaehler
,ProjektZaehlerDaten
,SystemChange
@MappedSuperclass public abstract class AbstractEntity extends de.xima.cmn.dao.model.AEntity<Long> implements ITransferableEntity
Diese Klasse ist die Elternklasse aller Entitäten und beinhaltet die Attribute, die in jeder Entität vorhanden sein müssen.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
COL_ID
protected Long
id
-
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
-
-
Constructor Summary
Constructors Constructor Description AbstractEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Long
asIntValue(Long value)
boolean
isPersisted()
void
setId(Integer id)
void
setId(Long id)
!!!-
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
COL_ID
public static final String COL_ID
- See Also:
- Constant Field Values
-
id
protected Long id
-
-
Method Detail
-
setId
public void setId(Long id)
!!!WARNING: Currently values biggerInteger.MAX_VALUE
or lower thenInteger.MIN_VALUE
will be altered to null!!!
-
isPersisted
public boolean isPersisted()
- Specified by:
isPersisted
in interfacede.xima.cmn.dao.interfaces.IEntity<Long>
-
-