Package dbfit.fixture

Examples of dbfit.fixture.StatementExecution


        this.statementText = statementText;
        this.testHost = testHost;
    }

    public StatementExecution buildPreparedStatement() throws SQLException {
        return new StatementExecution(environment.createStatementWithBoundFixtureSymbols(testHost, statementText), false);
    }
View Full Code Here


        }
    }

    public StatementExecution buildPreparedStatement(
            DbParameterAccessor[] accessors) throws SQLException {
        StatementExecution statement = new StatementExecution(dbEnvironment
                .buildInsertPreparedStatement(tableOrViewName, accessors));

        for (int i = 0; i < accessors.length; i++) {
            accessors[i].bindTo(statement, i + 1);
        }
View Full Code Here

    void bindParametersTo(StatementExecution cs) throws SQLException {
        new DbParameterAccessors(getAccessors()).bindParameters(cs);
    }

    public StatementExecution toStatementExecution() throws SQLException {
        StatementExecution cs = new StatementExecution(this.environment.getConnection().prepareCall(toSqlString()));
        bindParametersTo(cs);
        return cs;
    }
View Full Code Here

TOP

Related Classes of dbfit.fixture.StatementExecution

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.