|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.ed.AbstractDataObject
public abstract class AbstractDataObject
Base implementation of a DataObject.
| Field Summary | |
|---|---|
protected String |
createdBy
created by |
protected Calendar |
creationDate
creation date |
private static long |
serialVersionUID
Serialization marker |
protected Long |
uid
primary key |
| Constructor Summary | |
|---|---|
AbstractDataObject()
|
|
| Method Summary | |
|---|---|
int |
compareTo(DataObject other)
|
String |
getCreatedBy()
This returns the created by. |
Calendar |
getCreationDate()
This returns the creation date. |
Long |
getUid()
This returns the uid. |
void |
setCreatedBy(String s)
This sets the created by. |
void |
setCreationDate(Calendar c)
This sets the creation date. |
void |
setUid(Long l)
This sets the uid. |
String |
toString()
Provides a descriptive string representation of this instance. |
void |
validateProperties()
Validates all persisted properties on an entity and ensures that they meet the criteria required for database persistence. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
protected Long uid
protected Calendar creationDate
protected String createdBy
| Constructor Detail |
|---|
public AbstractDataObject()
| Method Detail |
|---|
public Long getUid()
getUid in interface DataObjectLong - uidpublic void setUid(Long l)
setUid in interface DataObjectl - Long to setpublic Calendar getCreationDate()
getCreationDate in interface DataObjectCalendarpublic void setCreationDate(Calendar c)
setCreationDate in interface DataObjectc - Calendarpublic String getCreatedBy()
getCreatedBy in interface DataObjectStringpublic void setCreatedBy(String s)
setCreatedBy in interface DataObjects - Stringpublic int compareTo(DataObject other)
compareTo in interface Comparable<DataObject>
public void validateProperties()
throws EntityValidationException
validateProperties in interface PersistableEntityValidationException - When input validation fails.
The exception * should be constructed by implementers such that the fields
that failed validation are available
via EntityValidationException.getProblems().public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||