public class VersioningServiceImpl extends Object implements VersioningService
| Constructor and Description |
|---|
VersioningServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected static double |
calcElapsedTimeInSeconds(long startTime,
long endTime)
Gets an elapsed time in seconds based on a start and end time.
|
<T extends SequenceOwner<?>> |
createNewVersion(T oldVersion)
Cause old version of SequenceOwner object to be versioned to new version
SeparatelySequenceableAssociate BOs are also copied, but their identifiers are left.
|
protected static long |
getCurrentTime()
Gets the current time in nanos.
|
protected static String |
getNonQualifiedClassName(Object o)
Gets the non qualified class name of an object.
|
protected <T extends Sequenceable> |
logVersionOperation(long startTime,
List<T> oldVersions,
List<T> newVersions)
This method logs the versioning operation
|
protected void |
logVersionOperation(long startTime,
Sequenceable oldVersion,
Sequenceable newVersion)
This method logs the versioning operation
|
<T extends SeparatelySequenceableAssociate> |
versionAssociate(T oldAssociate)
Cause new version of specified separately sequenced associate is copied.
|
<T extends SeparatelySequenceableAssociate> |
versionAssociates(List<T> oldAssociates)
Cause new version of specified separately sequenced associates to be copied.
|
public <T extends SequenceOwner<?>> T createNewVersion(T oldVersion) throws VersionException
createNewVersion in interface VersioningServiceT - the type of SequenceOwner to version.VersionExceptionpublic <T extends SeparatelySequenceableAssociate> T versionAssociate(T oldAssociate) throws VersionException
versionAssociate in interface VersioningServiceT - the type of SeparatelySequenceableAssociate to version.VersionExceptionpublic <T extends SeparatelySequenceableAssociate> List<T> versionAssociates(List<T> oldAssociates) throws VersionException
versionAssociates in interface VersioningServiceT - the type of SeparatelySequenceableAssociate to version.VersionExceptionprotected static long getCurrentTime()
protected static double calcElapsedTimeInSeconds(long startTime,
long endTime)
startTime - the start time in nanosendTime - the end time in nanosprotected static String getNonQualifiedClassName(Object o)
o - the objectprotected void logVersionOperation(long startTime,
Sequenceable oldVersion,
Sequenceable newVersion)
oldVersion - newVersion - protected <T extends Sequenceable> void logVersionOperation(long startTime, List<T> oldVersions, List<T> newVersions)
oldVersion - newVersion - Copyright © 2013 The Kuali Foundation. All Rights Reserved.