@MappedSuperclass public abstract class SimpleEntity extends java.lang.Object implements java.lang.Cloneable, IEntity, HasEntityImportance, ProcessableForDataTranslation
SimpleEntity contains
just a generated identifier,
which is used as base for the equals(Object), hashCode() and toString() methods| Constructor and Description |
|---|
SimpleEntity() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object object) |
EntityImportance |
getEntityImportance() |
java.lang.Long |
getId() |
static java.lang.Long |
getId(SimpleEntity entity)
Returns the identifier of the given entity, handling nulls
|
static java.util.List<java.lang.Long> |
getIds(java.util.Collection<? extends SimpleEntity> entities)
Returns a list with entity identifiers, handling nulls
|
static java.util.Set<java.lang.Long> |
getUniqueIds(java.util.Collection<? extends SimpleEntity> entities)
Returns a set with entity identifiers, handling nulls
|
static java.util.Set<java.lang.Long> |
getUniqueIds(SimpleEntity... entities)
Returns a set with entity identifiers, handling nulls
|
int |
hashCode() |
boolean |
isPersistent() |
boolean |
isTransient() |
java.lang.String |
toString() |
public static java.lang.Long getId(SimpleEntity entity)
public static java.util.List<java.lang.Long> getIds(java.util.Collection<? extends SimpleEntity> entities)
public static java.util.Set<java.lang.Long> getUniqueIds(java.util.Collection<? extends SimpleEntity> entities)
public static java.util.Set<java.lang.Long> getUniqueIds(SimpleEntity... entities)
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic EntityImportance getEntityImportance()
getEntityImportance in interface HasEntityImportancepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isPersistent()
public boolean isTransient()
public java.lang.String toString()
toString in class java.lang.Object