use of com.ctrip.platform.dal.dao.DalHints in project dal by ctripcorp.
the class MySqlDatabaseInitializer method tearDownAfterClass.
public static void tearDownAfterClass() throws Exception {
DalHints hints = new DalHints();
String[] sqls = new String[] { DROP_TABLE_SQL, DROP_SP_WITHOUT_OUT_PARAM, DROP_SP_WITH_OUT_PARAM, DROP_SP_WITH_IN_OUT_PARAM, DROP_SP_WITH_INTERMEDIATE_RESULT };
client.batchUpdate(sqls, hints);
}
use of com.ctrip.platform.dal.dao.DalHints in project dal by ctripcorp.
the class MySqlDatabaseInitializer method setUpBeforeClass.
public static void setUpBeforeClass() throws Exception {
DalHints hints = new DalHints();
String[] sqls = new String[] { DROP_TABLE_SQL, CREATE_TABLE_SQL, DROP_SP_WITHOUT_OUT_PARAM, CREATE_SP_WITHOUT_OUT_PARAM, DROP_SP_WITH_OUT_PARAM, CREATE_SP_WITH_OUT_PARAM, DROP_SP_WITH_IN_OUT_PARAM, CREATE_SP_WITH_IN_OUT_PARAM, DROP_SP_WITH_INTERMEDIATE_RESULT, CREATE_SP_WITH_INTERMEDIATE_RESULT };
client.batchUpdate(sqls, hints);
}
use of com.ctrip.platform.dal.dao.DalHints in project dal by ctripcorp.
the class MySqlDatabaseInitializer method setUp.
public static void setUp() throws Exception {
DalHints hints = new DalHints();
String[] insertSqls = new String[] { "INSERT INTO " + TABLE_NAME + " VALUES(1, 10, 1, 'SH INFO', NULL)", "INSERT INTO " + TABLE_NAME + " VALUES(2, 11, 1, 'BJ INFO', NULL)", "INSERT INTO " + TABLE_NAME + " VALUES(3, 12, 2, 'SZ INFO', NULL)" };
int[] counts = client.batchUpdate(insertSqls, hints);
Assert.assertArrayEquals(new int[] { 1, 1, 1 }, counts);
}
use of com.ctrip.platform.dal.dao.DalHints in project dal by ctripcorp.
the class OracleDatabaseInitializer method tearDownAfterClass.
public static void tearDownAfterClass() throws Exception {
DalHints hints = new DalHints();
String[] sqls = new String[] { DROP_TABLE_SEQ, DROP_TABLE_TRIG, DROP_TABLE_SQL, DROP_SP_WITHOUT_OUT_PARAM, DROP_SP_WITH_OUT_PARAM, DROP_SP_WITH_IN_OUT_PARAM, DROP_SP_WITH_INTERMEDIATE_RESULT };
client.batchUpdate(sqls, hints);
}
use of com.ctrip.platform.dal.dao.DalHints in project dal by ctripcorp.
the class SqlServerDatabaseInitializer method tearDown.
public static void tearDown() throws Exception {
String sql = "DELETE FROM " + TABLE_NAME;
StatementParameters parameters = new StatementParameters();
DalHints hints = new DalHints();
try {
client.update(sql, parameters, hints);
} catch (SQLException e) {
e.printStackTrace();
}
}
Aggregations