This commit is contained in:
Redkale
2018-05-10 19:39:00 +08:00
parent 75e9f6162b
commit db462ec134

View File

@@ -477,10 +477,19 @@ public final class EntityInfo<T> {
return tableStrategy; return tableStrategy;
} }
public String getTableNotExistSqlStates() { public String getTableNotExistSqlStates2() {
return tablenotexistSqlstates; 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<T, Serializable>[] getInsertAttributes() { public Attribute<T, Serializable>[] getInsertAttributes() {
return insertAttributes; return insertAttributes;
} }