|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dbmaintain.script.executedscriptinfo.ScriptIndexes
public class ScriptIndexes
Class representing the indexes of a script.
Some examples: 01_folder/01_subfolder/1_script ==> 1,1,1
Constructor Summary | |
---|---|
ScriptIndexes(List<Long> indexes)
Creates a new version. |
|
ScriptIndexes(String indexString)
Creates a new version. |
Method Summary | |
---|---|
protected void |
assertValidIndexes()
|
int |
compareTo(ScriptIndexes otherVersion)
Compares the given version to this version using the index values. |
boolean |
equals(Object object)
|
protected List<Long> |
extractIndexes(String indexString)
Extracts the indexes out of the given string as followes: 1.x.2.x => 1, null, 2, null |
List<Long> |
getIndexes()
An empty list if no version is defined. |
String |
getIndexesString()
Gets a string representation of the indexes as followes: 1, null, 2, null => 1.x.2.x |
int |
hashCode()
|
boolean |
isIncrementalScript()
|
boolean |
isRepeatableScript()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScriptIndexes(List<Long> indexes)
indexes
- The script indexes, not nullpublic ScriptIndexes(String indexString)
indexString
- The indexes as a stringMethod Detail |
---|
public List<Long> getIndexes()
public boolean isIncrementalScript()
public boolean isRepeatableScript()
protected void assertValidIndexes()
public String getIndexesString()
protected List<Long> extractIndexes(String indexString)
indexString
- The string
public String toString()
toString
in class Object
public int compareTo(ScriptIndexes otherVersion)
compareTo
in interface Comparable<ScriptIndexes>
otherVersion
- The other version, not null
public int hashCode()
hashCode
in class Object
public boolean equals(Object object)
equals
in class Object
object
- The object to compare with
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |