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 ByteBuffermarshall(Object obj, Marshaller marshaller)static voidsafeClose(Connection connection)static voidsafeClose(ResultSet rs)static voidsafeClose(Statement ps)static <T> Tunmarshall(InputStream inputStream, StreamAwareMarshaller marshaller)static <T> Tunmarshall(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)
-
-