diff --git a/src/org/redkale/source/EntityInfo.java b/src/org/redkale/source/EntityInfo.java index a8c5dc756..efc270f7f 100644 --- a/src/org/redkale/source/EntityInfo.java +++ b/src/org/redkale/source/EntityInfo.java @@ -477,10 +477,19 @@ public final class EntityInfo { return tableStrategy; } - public String getTableNotExistSqlStates() { + public String getTableNotExistSqlStates2() { return tablenotexistSqlstates; } + public boolean isTableNotExist(String code) { + return tablenotexistSqlstates.contains(';' + code + ';'); + } + + public boolean isTableNotExist(SQLException e) { + if (e == null) return false; + return tablenotexistSqlstates.contains(';' + e.getSQLState() + ';'); + } + public Attribute[] getInsertAttributes() { return insertAttributes; }