Class JdbcUtil

java.lang.Object
org.infinispan.persistence.jdbc.common.JdbcUtil

public class JdbcUtil extends Object
Contains common methods used by JDBC CacheStores.
Author:
Mircea.Markus@jboss.com
  • Constructor Details

    • JdbcUtil

      public JdbcUtil()
  • Method Details

    • safeClose

      public static void safeClose(Statement ps)
    • safeClose

      public static void safeClose(Connection connection)
    • safeClose

      public static void safeClose(ResultSet rs)
    • marshall

      public static org.infinispan.commons.io.ByteBuffer marshall(Object obj, org.infinispan.commons.marshall.Marshaller marshaller)
    • unmarshall

      public static <T> T unmarshall(InputStream inputStream, org.infinispan.commons.marshall.StreamAwareMarshaller marshaller)
    • unmarshall

      public static <T> T unmarshall(org.infinispan.commons.io.ByteBuffer buf, org.infinispan.commons.marshall.Marshaller marshaller)