org.infinispan.loaders.jdbc
Class JdbcUtil

java.lang.Object
  extended by org.infinispan.loaders.jdbc.JdbcUtil

public class JdbcUtil
extends Object

Contains common methods used by JDBC CacheStores.

Author:
Mircea.Markus@jboss.com

Constructor Summary
JdbcUtil()
           
 
Method Summary
static ByteBuffer marshall(StreamingMarshaller marshaller, Object bucket)
           
static void safeClose(Connection connection)
           
static void safeClose(ResultSet rs)
           
static void safeClose(Statement ps)
           
static Object unmarshall(StreamingMarshaller marshaller, InputStream inputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcUtil

public JdbcUtil()
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(StreamingMarshaller marshaller,
                                  Object bucket)
                           throws CacheLoaderException
Throws:
CacheLoaderException

unmarshall

public static Object unmarshall(StreamingMarshaller marshaller,
                                InputStream inputStream)
                         throws CacheLoaderException
Throws:
CacheLoaderException

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.