Class FlywaveRevisionScanner.Helper
-
- All Implemented Interfaces:
public class FlywaveRevisionScanner.HelperPerform the following steps, (1) scan all path (2) replace revision (3) include filter (4) exclude filter (5) modifier
-
-
Constructor Summary
Constructors Constructor Description FlywaveRevisionScanner.Helper()
-
Method Summary
-
-
Method Detail
-
path
@Contract(value = "_->this") FlywaveRevisionScanner.Helper path(Array<RevisionRegister> path)
-
path
@Contract(value = "_->this") FlywaveRevisionScanner.Helper path(Array<String> path)
-
flywave
@Contract(value = "_->this") FlywaveRevisionScanner.Helper flywave(Array<String> path)
-
master
@Contract(value = "->this") FlywaveRevisionScanner.Helper master()
-
master
@Contract(value = "_->this") FlywaveRevisionScanner.Helper master(Array<String> path)
-
branch
@Contract(value = "_->this") FlywaveRevisionScanner.Helper branch(Array<String> path)
-
feature
@Contract(value = "_->this") FlywaveRevisionScanner.Helper feature(Array<String> path)
-
somefix
@Contract(value = "_->this") FlywaveRevisionScanner.Helper somefix(Array<String> path)
-
support
@Contract(value = "_->this") FlywaveRevisionScanner.Helper support(Array<String> path)
-
replace
@Contract(value = "_,_->this") FlywaveRevisionScanner.Helper replace(long from, long to)
Replace the revision from `from` to `to`, create if not exist.
- Parameters:
from- old revisionto- new revision- Returns:
this
-
replace
@Contract(value = "_,_,_->this") FlywaveRevisionScanner.Helper replace(long from, long to, boolean sql)
Replace the version from `from` to `to`, create if not exist.
- Parameters:
from- old revisionto- new revisionsql- whether to replace in the sql text- Returns:
this
-
replace
@Contract(value = "_,_,_->this") FlywaveRevisionScanner.Helper replace(long from, long to, Function<String, String> mod)
Replace the version from `from` to `to`, create if not exist. And modify the sql text by `mod`
- Parameters:
from- old revisionto- new revisionmod- modify the sql text- Returns:
this
-
modify
@Contract(value = "_,_,_->this") FlywaveRevisionScanner.Helper modify(long revi, String str, String rpl)
Modify the RevisionSql content
- Parameters:
revi- revision to modifystr- the string to findrpl- the string to replace- Returns:
this
-
modify
@Contract(value = "_,_->this") FlywaveRevisionScanner.Helper modify(long revi, Consumer<SchemaRevisionManager.RevisionSql> mod)
Modify the RevisionSql content
- Parameters:
revi- revision to modifymod- Consumer of RevisionSql- Returns:
this
-
modify
@Contract(value = "_,_,_->this") FlywaveRevisionScanner.Helper modify(String info, long revi, Consumer<SchemaRevisionManager.RevisionSql> mod)
Modify the RevisionSql content
- Parameters:
info- info of modifyrevi- revision to modifymod- Consumer of RevisionSql- Returns:
this
-
modify
@Contract(value = "_->this") FlywaveRevisionScanner.Helper modify(BiConsumer<Long, SchemaRevisionManager.RevisionSql> mod)
Modify the RevisionSql content
- Parameters:
mod- BiConsumer of revision and RevisionSql- Returns:
this
-
modify
@Contract(value = "_,_->this") FlywaveRevisionScanner.Helper modify(String info, BiConsumer<Long, SchemaRevisionManager.RevisionSql> mod)
Modify the RevisionSql content
- Parameters:
info- info of modifymod- BiConsumer of revision and RevisionSql- Returns:
this
-
include
@Contract(value = "_->this") FlywaveRevisionScanner.Helper include(RevisionRegister revi)
-
include
@Contract(value = "_->this") FlywaveRevisionScanner.Helper include(Array<long> revi)
-
include
@Contract(value = "_,_->this") FlywaveRevisionScanner.Helper include(String info, Array<long> revi)
-
include
@Contract(value = "_->this") FlywaveRevisionScanner.Helper include(Predicate<Long> inc)
-
include
@Contract(value = "_,_->this") FlywaveRevisionScanner.Helper include(String info, Predicate<Long> inc)
-
exclude
@Contract(value = "_->this") FlywaveRevisionScanner.Helper exclude(RevisionRegister revi)
-
exclude
@Contract(value = "_->this") FlywaveRevisionScanner.Helper exclude(Array<long> revi)
-
exclude
@Contract(value = "_,_->this") FlywaveRevisionScanner.Helper exclude(String info, Array<long> revi)
-
exclude
@Contract(value = "_->this") FlywaveRevisionScanner.Helper exclude(Predicate<Long> exc)
-
exclude
@Contract(value = "_,_->this") FlywaveRevisionScanner.Helper exclude(String info, Predicate<Long> exc)
-
scan
@NotNull() SortedMap<Long, SchemaRevisionManager.RevisionSql> scan()
-
-
-
-