matrix.boot.jdbc.beans.MoreFlyway Maven / Gradle / Ivy
The newest version!
package matrix.boot.jdbc.beans;
import org.flywaydb.core.Flyway;
import java.util.Collection;
import java.util.Map;
/**
* @author wangcheng
* 2021/8/16
**/
public class MoreFlyway {
/**
* Flyway集合
*/
private final Map flywayMap;
public MoreFlyway(Map flywayMap) {
this.flywayMap = flywayMap;
}
/**
* 获取Flyway字典项
*
* @return Flyway字典项
*/
public Map getFlywayMap() {
return this.flywayMap;
}
/**
* 获取Flyway
*
* @param key 键值
* @return Flyway
*/
public Flyway getFlyway(String key) {
return flywayMap.get(key);
}
/**
* 获取Flyway列表
*
* @return Flyway列表
*/
public Collection getFlywayList() {
return this.flywayMap.values();
}
}