public class PlainVersionNumerationAdapter extends Object implements VersionNumerationAdapter
qs
Constructor and Description |
---|
PlainVersionNumerationAdapter() |
Modifier and Type | Method and Description |
---|---|
String |
getInitialVersionNumber()
Obtain the initial version number to be set when creating a new document
|
String |
getNextVersionNumber(org.hibernate.Session session,
NodeDocument nDoc,
NodeDocumentVersion nDocVer,
int increment)
Calculate the next version number from a given one.
|
public String getInitialVersionNumber()
VersionNumerationAdapter
getInitialVersionNumber
in interface VersionNumerationAdapter
public String getNextVersionNumber(org.hibernate.Session session, NodeDocument nDoc, NodeDocumentVersion nDocVer, int increment)
VersionNumerationAdapter
getNextVersionNumber
in interface VersionNumerationAdapter
session
- Hibernate session.nDoc
- Document which will increase the revision number.nDocVer
- Current document version node.Copyright © 2016. All rights reserved.