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 Summary
Constructors Constructor Description JdbcUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ByteBuffer
marshall(Object obj, Marshaller marshaller)
static void
safeClose(Connection connection)
static void
safeClose(ResultSet rs)
static void
safeClose(Statement ps)
static <T> T
unmarshall(InputStream inputStream, StreamAwareMarshaller marshaller)
static <T> T
unmarshall(ByteBuffer buf, Marshaller marshaller)
-
-
-
Method Detail
-
safeClose
public static void safeClose(Statement ps)
-
safeClose
public static void safeClose(Connection connection)
-
safeClose
public static void safeClose(ResultSet rs)
-
marshall
public static ByteBuffer marshall(Object obj, Marshaller marshaller)
-
unmarshall
public static <T> T unmarshall(InputStream inputStream, StreamAwareMarshaller marshaller)
-
unmarshall
public static <T> T unmarshall(ByteBuffer buf, Marshaller marshaller)
-
-