Search in sources :

Example 1 with DfCurrentSchemaConnector

use of org.dbflute.logic.jdbc.connection.DfCurrentSchemaConnector in project dbflute-core by dbflute.

the class DfAbstractHelperProperties method setupConnectionVariousSetting.

private void setupConnectionVariousSetting(UnifiedSchema unifiedSchema, Connection conn) throws SQLException {
    conn.setAutoCommit(true);
    if (unifiedSchema.existsPureSchema()) {
        final DfDatabaseTypeFacadeProp facadeProp = getBasicProperties().getDatabaseTypeFacadeProp();
        final DfCurrentSchemaConnector connector = new DfCurrentSchemaConnector(unifiedSchema, facadeProp);
        connector.connectSchema(conn);
    }
}
Also used : DfCurrentSchemaConnector(org.dbflute.logic.jdbc.connection.DfCurrentSchemaConnector) DfDatabaseTypeFacadeProp(org.dbflute.properties.facade.DfDatabaseTypeFacadeProp)

Example 2 with DfCurrentSchemaConnector

use of org.dbflute.logic.jdbc.connection.DfCurrentSchemaConnector in project dbflute-core by dbflute.

the class DfAbstractDBFluteProperties method setupConnectionVariousSetting.

private void setupConnectionVariousSetting(UnifiedSchema unifiedSchema, Connection conn) throws SQLException {
    conn.setAutoCommit(true);
    if (unifiedSchema.existsPureSchema()) {
        final DfDatabaseTypeFacadeProp facadeProp = getBasicProperties().getDatabaseTypeFacadeProp();
        final DfCurrentSchemaConnector connector = new DfCurrentSchemaConnector(unifiedSchema, facadeProp);
        connector.connectSchema(conn);
    }
}
Also used : DfCurrentSchemaConnector(org.dbflute.logic.jdbc.connection.DfCurrentSchemaConnector) DfDatabaseTypeFacadeProp(org.dbflute.properties.facade.DfDatabaseTypeFacadeProp)

Example 3 with DfCurrentSchemaConnector

use of org.dbflute.logic.jdbc.connection.DfCurrentSchemaConnector in project dbflute-core by dbflute.

the class DfTaskControlLogic method connectMainSchema.

protected void connectMainSchema(Connection conn) throws SQLException {
    final UnifiedSchema mainSchema = _databaseResource.getMainSchema();
    final DfCurrentSchemaConnector connector = new DfCurrentSchemaConnector(mainSchema, getDatabaseTypeFacadeProp());
    connector.connectSchema(conn);
}
Also used : DfCurrentSchemaConnector(org.dbflute.logic.jdbc.connection.DfCurrentSchemaConnector) UnifiedSchema(org.apache.torque.engine.database.model.UnifiedSchema)

Aggregations

DfCurrentSchemaConnector (org.dbflute.logic.jdbc.connection.DfCurrentSchemaConnector)3 DfDatabaseTypeFacadeProp (org.dbflute.properties.facade.DfDatabaseTypeFacadeProp)2 UnifiedSchema (org.apache.torque.engine.database.model.UnifiedSchema)1