public interface IsPersistable extends HasUID, SelfValidating
Persistable class as the super class of data objects to be persisted in some data store.
The data store could be a client's Local Storage or the ASSISTments server database.
Persistable maintains a Persistence Key that uniquely represents an instance of persistable data.
The Persistence Key is in the following format:
@<class type>/<uid>
where:
<class type> -- The superclass' name as a fully qualified name. For example:
org.assisments.core.domain.Assignment.
The class name can be obtained by calling
.getClass().getName() on a superclass' instance.
<uid> -- A unique ID.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getKey()
Returns a key representing this persistable object in the following format:
@<class type>/<uid>
|
java.lang.String |
getType()
Returns, as a fully specified class name, the class type needed to store this persistable object.
|
ValidatorUtilities |
getValidatorUtilities() |
void |
setValidatorUtilities(ValidatorUtilities vu) |
java.lang.String |
toString()
Returns a string representation of this object.
|
getShortKey, getUIDvalidatejava.lang.String getType()
java.lang.String getKey()
@<class type>/<uid>
getType(),
org.assistments.domain.content.tutor.persistence.HasUID#getUID()java.lang.String toString()
toString in class java.lang.Objectvoid setValidatorUtilities(ValidatorUtilities vu)
ValidatorUtilities getValidatorUtilities()