Exemplo n.º 1
0
 private static void checkMultipleTxCurrent(String dataId, String dataTable)
     throws OseeCoreException {
   JdbcStatement chStmt = ConnectionHandler.getStatement();
   try {
     String query = String.format(MULTIPLE_TX_CURRENT_SET, dataId, dataId, dataTable, dataId);
     chStmt.runPreparedQuery(query);
     if (chStmt.next()) {
       fail(
           String.format(
               "Multiple TX Current Set Failed for dataId = %s and dataTable = %s",
               dataId, dataTable));
     }
   } finally {
     chStmt.close();
   }
 }
Exemplo n.º 2
0
 private static int getTableRowCount(String tableName) throws OseeCoreException {
   return ConnectionHandler.runPreparedQueryFetchInt(0, "SELECT count(1) FROM " + tableName);
 }