/* */ throws ObjectStoreException
/* */ {
/* 504 */ int pool = getPool();
/* */ try
/* */ {
/* 508 */ OutputObjectState store = new OutputObjectState();
/* 509 */ Statement stmt = this._theConnection[pool].createStatement();
/* 510 */ ResultSet rs = null;
/* */ try
/* */ {
/* 517 */ rs = stmt.executeQuery("SELECT DISTINCT UidString FROM " + tableName + " WHERE TypeName = '" + typeName + "'");
/* */
/* 520 */ boolean finished = false;
/* */
/* 522 */ while ((!finished) && (rs.next()))
/* */ {
/* 524 */ Uid theUid = null;
/* */ try
/* */ {
/* 528 */ theUid = new Uid(rs.getString(1));
/* 529 */ theUid.pack(store);
/* */ }
/* */ catch (IOException ex)
/* */ {
/* 533 */ if (tsLogger.arjLoggerI18N.isWarnEnabled()) {
/* 534 */ tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.JDBCImple_5", new Object[] { ex });
/* */ }
/* */
/* 540 */ int i = 0;
/* */ try
/* */ {
/* 568 */ if (rs != null) {
/* 569 */ rs.close();
/* */ }
/* */ }
/* */ catch (SQLException e)
/* */ {
/* */ }
/* */ try
/* */ {
/* 577 */ if (stmt != null) {
/* 578 */ stmt.close();
/* */ }
/* */
/* */ }
/* */ catch (SQLException e)
/* */ {
/* */ }
/* */
/* 613 */ freePool(pool); return i;
/* */ }
/* */ catch (Exception e)
/* */ {
/* 544 */ if (tsLogger.arjLoggerI18N.isWarnEnabled()) {
/* 545 */ tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.JDBCImple_4", new Object[] { e });
/* */ }
/* */
/* 551 */ finished = true;
/* */ }
/* */ }
/* */ }
/* */ catch (Exception e)
/* */ {
/* 557 */ if (tsLogger.arjLoggerI18N.isWarnEnabled()) {
/* 558 */ tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.JDBCImple_4", new Object[] { e });
/* */ }
/* */
/* */ }
/* */ finally
/* */ {
/* */ try
/* */ {
/* 568 */ if (rs != null) {
/* 569 */ rs.close();
/* */ }
/* */ }
/* */ catch (SQLException e)
/* */ {
/* */ }
/* */ try
/* */ {
/* 577 */ if (stmt != null) {
/* 578 */ stmt.close();
/* */ }
/* */ }
/* */ catch (SQLException e)
/* */ {
/* */ }
/* */ }
/* */
/* */ try
/* */ {
/* 588 */ Uid.nullUid().pack(store);
/* */ }
/* */ catch (IOException e)
/* */ {
/* 592 */ throw new ObjectStoreException("allObjUids - could not pack end of list Uid.");
/* */ }
/* */
/* 596 */ state.setBuffer(store.buffer());
/* */
/* 598 */ store = null;
/* */
/* 600 */ e = 1;
/* */ return e;