|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ail.core.Type
com.ail.core.History
public class History
The history object is a collection of Version objects which document the change history of an entity. A history object represents a snapshot of history of an object, rather than the history itself. Changes made to the History object's Version records do not effect the actual history.
| Field Summary |
|---|
| Fields inherited from class com.ail.core.Type |
|---|
jXPathContext, NOT_PERSISTED |
| Constructor Summary | |
|---|---|
History()
|
|
| Method Summary | |
|---|---|
void |
addVersion(Version vVersion)
Add a Version to this group. |
java.util.Enumeration<Version> |
enumerateVersion()
Return a list of the versions as an enumeration. |
java.util.Collection<Version> |
getVersion()
Return the list of the versions as a Collection. |
Version |
getVersion(int index)
Fetch a specific Version by it's index in history. |
int |
getVersionCount()
Fetch a count of the number of versions. |
void |
removeAllVersion()
Remove (delete) all the versions. |
Version |
removeVersion(int index)
Remove (delete) a specific Version from the list. |
void |
setVersion(java.util.Collection<Version> version)
Set the version collection. |
void |
setVersion(Version[] versionArray)
Replace all the version elements in this history with those in the array provided. |
void |
setVersionAt(int index,
Version vVersion)
Set the Version at a specified index in this history, this replaces the Version currently at that index. |
| Methods inherited from class com.ail.core.Type |
|---|
addAttribute, clone, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public History()
| Method Detail |
|---|
public void addVersion(Version vVersion)
throws java.lang.IndexOutOfBoundsException
vVersion - Version to add.
java.lang.IndexOutOfBoundsException - Group is "full"public java.util.Enumeration<Version> enumerateVersion()
public Version getVersion(int index)
throws java.lang.IndexOutOfBoundsException
index - Index of Version to fetch.
java.lang.IndexOutOfBoundsException - index is out of rangepublic java.util.Collection<Version> getVersion()
public void setVersion(java.util.Collection<Version> version)
version - public int getVersionCount()
public void removeAllVersion()
public Version removeVersion(int index)
index - The index of the Version to remove.
public void setVersionAt(int index,
Version vVersion)
throws java.lang.IndexOutOfBoundsException
index - Index into the groupvVersion - Version to be added.
java.lang.IndexOutOfBoundsException - If index is out of range.public void setVersion(Version[] versionArray)
VersionArray - Array of properties
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||