Package ch.tocco.nice2.dbrefactoring.api
Class ChangesetId
java.lang.Object
ch.tocco.nice2.dbrefactoring.api.ChangesetId
The id attribute given in a changeset of a module must conform to the following convention:
[name] / [nice2Version]where
- name is some arbitary name describing the changeset
- nice2Version the version of nice2 application this change was introduced
This interface gives access to the parts of the id of the changeset.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChangesetId
create
(String name, Nice2Version version, @Nullable String moduleName) static ChangesetId
createRandomId
(String name, Nice2Version version, @Nullable String moduleName) boolean
@Nullable String
Returns the name of the nice2 module that contributed this changeset.getName()
The name part of the changeset id.Returns the part of the changeset id the represents the nice2 version where this changeset was introduced.int
hashCode()
static ChangesetId
parseString
(String changesetId) static ChangesetId
parseString
(String changesetId, String moduleName) Returns the final string which is used as the id attribute for this changeset in the global changlog file.toString()
-
Field Details
-
SEPARATOR
public static final char SEPARATOR- See Also:
-
CHANGESET_NAME_REGEX
- See Also:
-
CHANGESET_ID_REGEX
- See Also:
-
CHANGESET_PATTERN
-
-
Method Details
-
create
public static ChangesetId create(String name, Nice2Version version, @Nullable @Nullable String moduleName) -
createRandomId
public static ChangesetId createRandomId(String name, Nice2Version version, @Nullable @Nullable String moduleName) -
parseString
public static ChangesetId parseString(String changesetId, String moduleName) throws DbRefactoringException - Throws:
DbRefactoringException
-
parseString
- Throws:
DbRefactoringException
-
getModuleName
Returns the name of the nice2 module that contributed this changeset. -
getName
The name part of the changeset id. The name is just some string invented by the person who introduced the changeset. -
getNice2Version
Returns the part of the changeset id the represents the nice2 version where this changeset was introduced. -
equals
-
hashCode
public int hashCode() -
toChangesetId
Returns the final string which is used as the id attribute for this changeset in the global changlog file. -
toString
-