/* */ private static final int _maxStateSize = 10485760;
/* */
/* */ public InputObjectState read_state(Uid objUid, String tName, int ft, String tableName)
/* */ throws ObjectStoreException
/* */ {
/* 71 */ InputObjectState newImage = null;
/* */
/* 73 */ if (!storeValid()) {
/* 74 */ return newImage;
/* */ }
/* 76 */ if (tName != null)
/* */ {
/* 78 */ if ((ft == 1) || (ft == 2))
/* */ {
/* 80 */ int pool = getPool();
/* 81 */ ResultSet rs = null;
/* */ try
/* */ {
/* 85 */ for (int count = 0; count < 10; count++)
/* */ {
/* */ try
/* */ {
/* 89 */ PreparedStatement pstmt = this._preparedStatements[pool][4];
/* */
/* 91 */ if (pstmt == null)
/* */ {
/* 93 */ pstmt = this._theConnection[pool].prepareStatement("SELECT ObjectState FROM " + tableName + " WHERE UidString = ? AND TypeName = ? AND StateType = ?");
/* */
/* 95 */ this._preparedStatements[pool][4] = pstmt;
/* */ }
/* */
/* 98 */ pstmt.setString(1, objUid.stringForm());
/* 99 */ pstmt.setString(2, tName);
/* 100 */ pstmt.setInt(3, ft);
/* */
/* 102 */ rs = pstmt.executeQuery();
/* */
/* 104 */ if (!rs.next()) {
/* 105 */ Object localObject1 = null;
/* */ try
/* */ {
/* 143 */ if (rs != null)
/* 144 */ rs.close();
/* */ }
/* */ catch (Exception re) {
/* */ }
/* 148 */ freePool(pool); return localObject1;
/* */ }
/* 108 */ Blob myBlob = rs.getBlob(1);
/* 109 */ byte[] buffer = myBlob.getBytes(1L, (int)myBlob.length());
/* */
/* 111 */ if (buffer != null)
/* */ {
/* 113 */ newImage = new InputObjectState(objUid, tName, buffer);
/* */ }
/* 116 */ else if (tsLogger.arjLoggerI18N.isWarnEnabled()) {
/* 117 */ tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.jdbc.oracle_1");
/* */ }
/* */
/* 120 */ InputObjectState localInputObjectState1 = newImage;
/* */ try
/* */ {
/* 143 */ if (rs != null)
/* 144 */ rs.close();
/* */ }