Examples of free()


Examples of java.sql.Blob.free()

        finally
        {
          Resources.close(ps);
        }
        c.commit();
        blob.free();
 
        validate(c1, expected);
        validate(c2, expected);
       
        ps = c.prepareStatement("SELECT lob FROM test WHERE id = ?", ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE);
View Full Code Here

Examples of java.sql.Clob.free()

    nclob = lobCreator.wrap( nclob );
    assertTrue( nclob instanceof WrappedClob );

    blob.free();
    clob.free();
    nclob.free();
    connection.close();
  }

  public void testConnectedLobCreatorWithUnSupportedCreations() throws SQLException {
    final Connection connection = createConnectionProxy(
View Full Code Here

Examples of java.sql.SQLXML.free()

  @Test
  public void testFree() throws SQLException {
    ResultSet rs = getRS();
    assertTrue(rs.next());
    SQLXML xml = rs.getSQLXML(1);
    xml.free();
    xml.free();
    try {
      xml.getString();
      fail("Not freed.");
    }
View Full Code Here

Examples of javax.sql.rowset.serial.SerialBlob.free()

    public void test_free() throws Exception {
        MockSerialBlob mockBlob = new MockSerialBlob();
        mockBlob.binaryStream = new ByteArrayOutputStream();
        SerialBlob serialBlob = new SerialBlob(mockBlob);
        try {
            serialBlob.free();
            fail("should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
    }
View Full Code Here

Examples of kodkod.engine.satlab.SATSolver.free()

    final TranslationLog log = translation.log();
    if (cnf instanceof SATProver && log != null) {
      return Solution.unsatisfiable(stats, new ResolutionBasedProof((SATProver) cnf, log));
    } else { // can free memory
      final Solution sol = Solution.unsatisfiable(stats, null);
      cnf.free();
      return sol;
    }
  }
 
  /**
 
View Full Code Here

Examples of net.openhft.lang.io.DirectStore.free()

            K key2 = key instanceof CharSequence ? (K) key.toString() : key;
            DirectStore remove = map.remove(key2);
            if (remove == null)
                return found;
            offHeapUsed -= remove.size();
            remove.free();
            this.size--;
            return true;
        }

        synchronized long offHeapUsed() {
View Full Code Here

Examples of net.pterodactylus.sone.freenet.StringBucket.free()

        logger.log(Level.SEVERE, String.format("Could not render template ā€œ%sā€!", templateName), te1);
        return null;
      } finally {
        Closer.close(writer);
        if (bucket != null) {
          bucket.free();
        }
      }
    }

  }
View Full Code Here

Examples of net.rubyeye.xmemcached.buffer.IoBuffer.free()

    buffer.clear();
    assertEquals(64, buffer.capacity());
    assertEquals(0, buffer.position());
    assertEquals(64, buffer.limit());

    buffer.free();
    assertNull(buffer.getByteBuffer());
  }

  @Override
  protected void tearDown() throws Exception {
View Full Code Here

Examples of org.apache.cocoon.components.store.Store.free()

     */
    private int reduceStoreBy(int remove) {
        Store store = (Store) storelist.get(index);
        int sizeBefore = countSize(store);
        for (int i = 0; i < sizeBefore & remove > 0; i++, remove--) {
            store.free();
        }
        int sizeAfter = countSize(store);
        debug("store index=" + index + ", size before=" + sizeBefore + ",  size after=" + sizeAfter + ", removed=" + (sizeBefore - sizeAfter));
        return remove;
    }
View Full Code Here

Examples of org.apache.directmemory.memory.allocator.FixedSizeUnsafeAllocator.free()

                    checkIntLength( value, buffer.writerIndex() );

                    int result = buffer.readCompressedInt();
                    assertEquals( value, result );
                }
                allocator.free( buffer );
            }
        }
        finally
        {
            allocator.close();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.