Search in sources :

Example 31 with DfTableMeta

use of org.dbflute.logic.jdbc.metadata.info.DfTableMeta in project dbflute-core by dbflute.

the class DfRepsSequenceHandlerJdbc method findTableInfo.

protected DfTableMeta findTableInfo(Connection conn, String tableName) throws SQLException {
    final DfTableMeta table = _tableMap.get(tableName);
    if (table == null) {
        String msg = "Failed to find the table in generated target tables:";
        msg = msg + " table=" + tableName + " target=" + _tableMap.keySet();
        throw new DfPropertySettingTableNotFoundException(msg);
    }
    return table;
}
Also used : DfPropertySettingTableNotFoundException(org.dbflute.exception.DfPropertySettingTableNotFoundException) DfTableMeta(org.dbflute.logic.jdbc.metadata.info.DfTableMeta)

Aggregations

DfTableMeta (org.dbflute.logic.jdbc.metadata.info.DfTableMeta)31 SQLException (java.sql.SQLException)12 Connection (java.sql.Connection)9 DatabaseMetaData (java.sql.DatabaseMetaData)8 Statement (java.sql.Statement)8 ArrayList (java.util.ArrayList)7 UnifiedSchema (org.apache.torque.engine.database.model.UnifiedSchema)6 Map (java.util.Map)4 Entry (java.util.Map.Entry)4 SQLFailureException (org.dbflute.exception.SQLFailureException)4 DfPrimaryKeyMeta (org.dbflute.logic.jdbc.metadata.info.DfPrimaryKeyMeta)4 StringKeyMap (org.dbflute.helper.StringKeyMap)3 DfColumnMeta (org.dbflute.logic.jdbc.metadata.info.DfColumnMeta)3 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 LinkedHashMap (java.util.LinkedHashMap)2 LinkedHashSet (java.util.LinkedHashSet)2 List (java.util.List)2 TreeMap (java.util.TreeMap)2 TypeMap (org.apache.torque.engine.database.model.TypeMap)2