All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sqlg3.runtime.GTest Maven / Gradle / Ivy

Go to download

SQLG is a preprocessor and a library that uses code generation to simplify writing JDBC code

The newest version!
package sqlg3.runtime;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public abstract class GTest {

    public static void setTest(GTest test) {
        GBase.test = test;
    }

    public static GContext testContext(Connection connection, DBSpecific specific, RuntimeMapper mappers) {
        SqlTrace noTrace = (ok, time, getMessages) -> {};
        GlobalContext global = new GlobalContext(specific, mappers, noTrace);
        return new GContext(global, null, connection);
    }

    public abstract Object getTestObject(Class paramType);

    public abstract void getRowTypeFields(Class rowType, ResultSet rs, boolean meta) throws SQLException;

    public abstract void checkOneColumn(ResultSet rs, Class cls) throws SQLException;

    public abstract void checkSql(PreparedStatement stmt, String sql) throws SQLException;

    public abstract Class setParamType(String paramId, Class paramClass);

    public abstract void checkStoredProcName(String procNameToCall, Parameter[] parameters) throws SQLException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy