• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java Warnings类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中liquibase.exception.Warnings的典型用法代码示例。如果您正苦于以下问题:Java Warnings类的具体用法?Java Warnings怎么用?Java Warnings使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

Warnings类属于liquibase.exception包,在下文中一共展示了Warnings类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: warn

点赞 2

import liquibase.exception.Warnings; //导入依赖的package包/类
public Warnings warn(SqlStatement statement, Database database) {
    if (sqlGenerators == null || !sqlGenerators.hasNext()) {
        return new Warnings();
    }

    return sqlGenerators.next().warn(statement, database, this);
}
 

开发者ID:hongliangpan,
项目名称:manydesigns.cn,
代码行数:8,
代码来源:SqlGeneratorChain.java

示例2: warn

点赞 2

import liquibase.exception.Warnings; //导入依赖的package包/类
@Override
public Warnings warn(ModifyDataTypeStatement modifyDataTypeStatement, Database database, SqlGeneratorChain sqlGeneratorChain) {
    Warnings warnings = super.warn(modifyDataTypeStatement, database, sqlGeneratorChain);

    if (database instanceof MySQLDatabase && !modifyDataTypeStatement.getNewDataType().toLowerCase().contains("varchar")) {
        warnings.addWarning("modifyDataType will lose primary key/autoincrement/not null settings for mysql.  Use <sql> and re-specify all configuration if this is the case");
    }

    return warnings;
}
 

开发者ID:hongliangpan,
项目名称:manydesigns.cn,
代码行数:11,
代码来源:ModifyDataTypeGenerator.java

示例3: warn

点赞 2

import liquibase.exception.Warnings; //导入依赖的package包/类
public Warnings warn(Database database) {
    Warnings warnings = new Warnings();
    for (SqlStatement statement : generateStatements(database)) {
        if (SqlGeneratorFactory.getInstance().supports(statement, database)) {
            warnings.addAll(SqlGeneratorFactory.getInstance().warn(statement, database));
        }
    }

    return warnings;
}
 

开发者ID:hongliangpan,
项目名称:manydesigns.cn,
代码行数:11,
代码来源:AbstractChange.java

示例4: warn

点赞 2

import liquibase.exception.Warnings; //导入依赖的package包/类
@Override
public Warnings warn(final Database database) {
   final Warnings warnings = new Warnings();
   if (!(database instanceof DerbyDatabase || database instanceof H2Database
         || database instanceof MySQLDatabase || database instanceof OracleDatabase || database instanceof PostgresDatabase)) {
      warnings.addWarning(database.getDatabaseProductName()
            + " is not supported by this extension");
   }
   return warnings;
}
 

开发者ID:lonnyj,
项目名称:liquibase-spatial,
代码行数:11,
代码来源:SpatialSupportedPrecondition.java

示例5: warn

点赞 2

import liquibase.exception.Warnings; //导入依赖的package包/类
public Warnings warn(SqlStatement statement, Database database) {
    //noinspection unchecked
    return createGeneratorChain(statement, database).warn(statement, database);
}
 

开发者ID:hongliangpan,
项目名称:manydesigns.cn,
代码行数:5,
代码来源:SqlGeneratorFactory.java

示例6: warn

点赞 2

import liquibase.exception.Warnings; //导入依赖的package包/类
public Warnings warn(StatementType statementType, Database database, SqlGeneratorChain sqlGeneratorChain) {
    return sqlGeneratorChain.warn(statementType, database);
}
 

开发者ID:hongliangpan,
项目名称:manydesigns.cn,
代码行数:4,
代码来源:AbstractSqlGenerator.java

示例7: warn

点赞 2

import liquibase.exception.Warnings; //导入依赖的package包/类
public Warnings warn(Database database) {
    return new Warnings();
}
 

开发者ID:hongliangpan,
项目名称:manydesigns.cn,
代码行数:4,
代码来源:NotPrecondition.java

示例8: warn

点赞 2

import liquibase.exception.Warnings; //导入依赖的package包/类
@Override
public Warnings warn(Database database) {
    return new Warnings();
}
 

开发者ID:hongliangpan,
项目名称:manydesigns.cn,
代码行数:5,
代码来源:SQLFileChange.java

示例9: warn

点赞 2

import liquibase.exception.Warnings; //导入依赖的package包/类
public Warnings warn( Database database ) {
	return new Warnings();
}
 

开发者ID:mrswadge,
项目名称:liquibase-oracle-preconditions,
代码行数:4,
代码来源:OracleCheckConstraintExistsPrecondition.java

示例10: warn

点赞 2

import liquibase.exception.Warnings; //导入依赖的package包/类
@Override
public Warnings warn(final Database database) {
   return new Warnings();
}
 

开发者ID:lonnyj,
项目名称:liquibase-spatial,
代码行数:5,
代码来源:SpatialIndexExistsPrecondition.java

示例11: warn

点赞 2

import liquibase.exception.Warnings; //导入依赖的package包/类
public Warnings warn(SplitTableStatement statementType, Database database,
                     SqlGeneratorChain sqlGeneratorChain) {
    return sqlGeneratorChain.warn(statementType, database);
}
 

开发者ID:liquibase,
项目名称:liquibase-oracle,
代码行数:5,
代码来源:SplitTableGenerator.java

示例12: warn

点赞 2

import liquibase.exception.Warnings; //导入依赖的package包/类
public Warnings warn(SqlStatement sqlStatement, Database database, SqlGeneratorChain sqlGeneratorChain) {
    return new Warnings();
}
 

开发者ID:lbitonti,
项目名称:liquibase-hana,
代码行数:4,
代码来源:MockSqlGenerator.java

示例13: warn

点赞 1

import liquibase.exception.Warnings; //导入依赖的package包/类
public Warnings warn(StatementType statementType, Database database, SqlGeneratorChain sqlGeneratorChain); 

开发者ID:hongliangpan,
项目名称:manydesigns.cn,
代码行数:2,
代码来源:SqlGenerator.java

示例14: warn

点赞 1

import liquibase.exception.Warnings; //导入依赖的package包/类
public Warnings warn(Database database); 

开发者ID:hongliangpan,
项目名称:manydesigns.cn,
代码行数:2,
代码来源:Precondition.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)