Package myorg.relex.collection
Class Ship
- java.lang.Object
-
- myorg.relex.collection.Ship
-
- Direct Known Subclasses:
ShipByBusinessId,ShipByDefault,ShipByPK,ShipBySwitch
@MappedSuperclass public abstract class Ship extends Object
This class is used as a common base implementation by several implementations of hashCode/equals.
-
-
Field Summary
Fields Modifier and Type Field Description protected Datecreatedprotected intidprivate static AtomicIntegerinstanceIdprotected org.slf4j.Loggerlogprotected Stringnameprivate intoid
-
Constructor Summary
Constructors Constructor Description Ship()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DategetCreated()intgetId()StringgetName()inthashCode()booleanlogEquals(Object obj, boolean equals)intlogHashCode(int hashCode)protected intobjectHashCode()abstract intpeekHashCode()ShipsetCreated(Date created)ShipsetId(int id)ShipsetName(String name)StringtoString()
-
-
-
Field Detail
-
log
protected final org.slf4j.Logger log
-
instanceId
private static AtomicInteger instanceId
-
oid
private int oid
-
id
protected int id
-
name
protected String name
-
created
protected Date created
-
-
Method Detail
-
getId
public int getId()
-
setId
public Ship setId(int id)
-
getName
public String getName()
-
getCreated
public Date getCreated()
-
peekHashCode
public abstract int peekHashCode()
-
objectHashCode
protected int objectHashCode()
-
logHashCode
public int logHashCode(int hashCode)
-
logEquals
public boolean logEquals(Object obj, boolean equals)
-
-