|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Version | |
---|---|
org.ov4j | |
org.ov4j.cache | |
org.ov4j.data |
Uses of Version in org.ov4j |
---|
Methods in org.ov4j that return Version | |
---|---|
Version<T> |
Controler.fetch(C id,
int versionNum)
Fetch the given version of object with the given id. |
Version<T>[] |
Controler.fetch(C id,
int[] versionNums)
Fetch the given versions of object with the given id. |
Version<T> |
Controler.latest(C id)
Fetch the latest version of the object with given id. |
Version<T> |
Controler.latest(C id,
int tstamp)
Fetch the latest version of the object with given id before the given timestamp. |
Version<T>[] |
Controler.latests(C[] ids)
Fetch the latest versions of every id specified. |
Version<T>[] |
Controler.latests(C[] ids,
int tstamp)
Fetch the latest versions of every id specified before the given timestamp. |
Version<T>[] |
Controler.modifiedSince(long timestamp)
Fetch the latest versions modified since the given timestamp. |
Methods in org.ov4j with parameters of type Version | |
---|---|
boolean |
Controler.addNCommit(C id,
Version<T> ver)
Directly add a version. |
boolean |
Controler.batchCommit(C[] ids,
Version<T>[] newVersions,
java.lang.Class<? extends ComparisonResult<T>> compResultClass,
boolean addNew)
Commit changes to the given objects using the specified class to determine if commit is needed. |
boolean |
Controler.batchImport(C[] ids,
Version<T>[] vers,
boolean abortOnDuplicate)
Add all versions, will return a BiteSet containing information on which could be added. |
boolean |
Controler.commit(C id,
Version<T> newVersion)
Commit changes to the given object. |
boolean |
Controler.commit(C id,
Version<T> newVersion,
java.lang.Class<? extends ComparisonResult<? super T>> compResultClass)
Commit changes to the given object. |
boolean |
Controler.commit(C id,
Version<T> newVersion,
java.lang.Class<? extends ComparisonResult<? super T>> compResultClass,
int rollover)
Commit changes to the given object using the specified class to determine if commit is needed. |
boolean |
Controler.commit(C id,
Version<T> newVersion,
int rollover)
Commit changes to the given object. |
ComparisonResult<T> |
Controler.compare(Version<T> newVersion,
Version<T> oldVersion,
boolean fast)
Compare 2 versions after determining which class to use. |
ComparisonResult<T> |
Controler.compare(Version<T> newVersion,
Version<T> oldVersion,
boolean fast)
Compare 2 versions after determining which class to use. |
ComparisonResult<T> |
Controler.compare(Version<T> newVersion,
Version<T> oldVersion,
java.lang.Class<? extends ComparisonResult<? super T>> compResultClass,
boolean fast)
Compare 2 versions using the specified class. |
ComparisonResult<T> |
Controler.compare(Version<T> newVersion,
Version<T> oldVersion,
java.lang.Class<? extends ComparisonResult<? super T>> compResultClass,
boolean fast)
Compare 2 versions using the specified class. |
ComparisonResult<T> |
Controler.diff(C id,
Version<T> newVersion)
Will perform a diff, trying to determine the class of the comparison result by appending ComparisonResult to the versionedObject classname. |
ComparisonResult<T> |
Controler.diff(C id,
Version<T> newVersion,
java.lang.Class<? extends ComparisonResult<? super T>> compResultClass)
Compares the new version to the latest version of object with the given id. |
java.lang.Class<? extends ComparisonResult<? super T>> |
Controler.findComparisonResultClass(Version<T> ver)
Find the Class to use for comparing this version, will replace "data" by "comp" in the package name and add "ComparisonResult" to the class of the versions's versioned object. |
Uses of Version in org.ov4j.cache |
---|
Methods in org.ov4j.cache that return Version | |
---|---|
Version<ClassComparable> |
CacheHandler.cachedCall(java.lang.reflect.Method theMethod,
java.lang.Object instance,
java.lang.Object... args)
Perform a cached call, will wait for a period of time before returning the result from the cache if it exists. |
Version<ClassComparable> |
DelayedCacher.getTheVersion()
|
protected Version<ClassComparable> |
CacheHandler.latest(CachedResultId id)
Fetch latest result for the given ID. |
Methods in org.ov4j.cache with parameters of type Version | |
---|---|
protected void |
CacheHandler.addNCommit(CachedResultId id,
Version<ClassComparable> result)
Add result to cache. |
protected void |
CacheHandler.commit(CachedResultId id,
Version<ClassComparable> result)
Commit the result in cache. |
Constructors in org.ov4j.cache with parameters of type Version | |
---|---|
DelayedCacher(MethodCaller theCaller,
Version<ClassComparable> theVersion,
long theTimeout,
CachedResultId theId,
CacheHandler theCache,
boolean addBeforeCommit)
Constructor. |
Constructor parameters in org.ov4j.cache with type arguments of type Version | |
---|---|
ResultFetcher(java.util.TreeMap<CachedResultId,Version<ClassComparable>> map,
Controler<ClassComparable,CachedResultId> ctrl,
CachedResultId id)
|
Uses of Version in org.ov4j.data |
---|
Fields in org.ov4j.data declared as Version | |
---|---|
static Version<?>[] |
Version.EMPTY_ARRAY
|
Methods in org.ov4j.data that return Version | |
---|---|
Version<T> |
Version.clone()
|
Version<T> |
Item.getLatest()
|
Version<T> |
Item.getLatestBefore(long tstamp)
|
Version<T>[] |
Item.getVersions()
|
Methods in org.ov4j.data with parameters of type Version | |
---|---|
boolean |
Item.addVersion(Version<T> version,
int versionRollover)
Add a version to this item. |
int |
Version.compareTo(Version<T> v)
|
void |
Item.setLatest(Version<T> latest)
|
void |
Item.setVersions(Version<T>[] newVersions)
|
void |
Item.versions(Version<T>[] newVersions)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |