Package net.anotheria.asg.service
Class InMemoryObjectWrapper<T extends DataObject>
- java.lang.Object
-
- net.anotheria.asg.service.InMemoryObjectWrapper<T>
-
public class InMemoryObjectWrapper<T extends DataObject> extends java.lang.ObjectInMemoryObjectWrapper class.
- Version:
- $Id: $Id
- Author:
- another
-
-
Constructor Summary
Constructors Constructor Description InMemoryObjectWrapper(T aT)Constructor for InMemoryObjectWrapper.InMemoryObjectWrapper(T aT, boolean created)Constructor for InMemoryObjectWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()delete.Tget()get.longgetCreatedTimestamp()Getter for the fieldcreatedTimestamp.longgetDeletedTimestamp()Getter for the fielddeletedTimestamp.java.lang.StringgetId()getId.longgetUpdatedTimestamp()Getter for the fieldupdatedTimestamp.booleanisCreated()isCreated.booleanisDeleted()isDeleted.booleanisUpdated()isUpdated.java.lang.StringtoString()toString.voidupdate(T aT)update.
-
-
-
Constructor Detail
-
InMemoryObjectWrapper
public InMemoryObjectWrapper(T aT)
Constructor for InMemoryObjectWrapper.
- Parameters:
aT- a T object.
-
InMemoryObjectWrapper
public InMemoryObjectWrapper(T aT, boolean created)
Constructor for InMemoryObjectWrapper.
- Parameters:
aT- a T object.created- a boolean.
-
-
Method Detail
-
getId
public java.lang.String getId()
getId.
- Returns:
- a
Stringobject.
-
get
public T get()
get.
- Returns:
- a T object.
-
update
public void update(T aT)
update.
- Parameters:
aT- a T object.
-
delete
public void delete()
delete.
-
toString
public java.lang.String toString()
toString.
- Overrides:
toStringin classjava.lang.Object- Returns:
- a
Stringobject.
-
isCreated
public boolean isCreated()
isCreated.
- Returns:
- a boolean.
-
isUpdated
public boolean isUpdated()
isUpdated.
- Returns:
- a boolean.
-
isDeleted
public boolean isDeleted()
isDeleted.
- Returns:
- a boolean.
-
getCreatedTimestamp
public long getCreatedTimestamp()
Getter for the field
createdTimestamp.- Returns:
- a long.
-
getUpdatedTimestamp
public long getUpdatedTimestamp()
Getter for the field
updatedTimestamp.- Returns:
- a long.
-
getDeletedTimestamp
public long getDeletedTimestamp()
Getter for the field
deletedTimestamp.- Returns:
- a long.
-
-