Пример #1
0
 /*     */ public static String getSequence(String tableName, int companyID) /*     */ {
   /* 218 */ String oRet = null;
   /* 219 */ Connection conn = null;
   /*     */ try {
     /* 221 */ conn = ServiceLocator.getConnection(SQLUtils.class);
     /* 222 */ BaseDAO dao = new BaseDAO();
     /* 223 */ dao.setConnection(conn);
     /* 224 */ oRet = dao.getSequence(tableName, companyID);
     /*     */ } catch (Exception e) {
     /* 226 */ e.printStackTrace();
     /* 227 */ return null;
     /*     */ } finally {
     /* 229 */ ServiceLocator.closeConnection(SQLUtils.class, conn);
     /*     */ }
   /* 231 */ return oRet;
   /*     */ }
Пример #2
0
 /*     */ public static String[] getSequence(String tableName, int companyID, int size)
       /*     */ {
   /* 192 */ String[] oRet = null;
   /* 193 */ Connection conn = null;
   /*     */ try {
     /* 195 */ conn = ServiceLocator.getConnection(SQLUtils.class);
     /* 196 */ BaseDAO dao = new BaseDAO();
     /* 197 */ dao.setConnection(conn);
     /* 198 */ oRet = dao.getSequence(tableName, companyID, size);
     /*     */ } catch (Exception e) {
     /* 200 */ e.printStackTrace();
     /* 201 */ return null;
     /*     */ } finally {
     /* 203 */ ServiceLocator.closeConnection(SQLUtils.class, conn);
     /*     */ }
   /* 205 */ return oRet;
   /*     */ }