net.wgen.op.db.lob
Class JbossLobHandler

java.lang.Object
  extended bynet.wgen.op.db.lob.LobHandler
      extended bynet.wgen.op.db.lob.JbossLobHandler
All Implemented Interfaces:
java.io.Serializable

public class JbossLobHandler
extends LobHandler

Version:
$Id: JbossLobHandler.html,v 1.2 2007/01/28 04:09:37 paulfeuer Exp $
Author:
Paul Feuer, Wireless Generation, Inc.
See Also:
Serialized Form

Field Summary
private  LobHandler _databaseLobHandler
           
private static java.lang.String JBOSS_WRAPPED_CX
           
private static java.lang.String JBOSS_WRAPPED_STMT
           
 
Fields inherited from class net.wgen.op.db.lob.LobHandler
LOB_CHUNK_SIZE, MAX_LOB_SIZE, MAX_ROWS_ALLOWED, MAX_ROWS_WARNED
 
Constructor Summary
JbossLobHandler(LobHandler databaseLobHandler)
           
 
Method Summary
 java.sql.Blob makeBlob(java.sql.Connection connection, java.io.InputStream dataStream, int length)
           
 java.sql.Clob makeClob(java.sql.Connection connection, java.lang.String value)
           
 void setArray(java.sql.PreparedStatement statement, int index, java.lang.Object[] array, java.lang.String arrayDescriptor)
           
 void setBlob(java.sql.PreparedStatement statement, int index, java.io.InputStream dataStream, int length)
           
 void setClob(java.sql.PreparedStatement statement, int index, java.lang.String value)
           
 java.sql.Connection unwrap(java.sql.Connection connection)
           
 java.sql.PreparedStatement unwrap(java.sql.PreparedStatement statement)
           
 
Methods inherited from class net.wgen.op.db.lob.LobHandler
readBlob, readClob
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JBOSS_WRAPPED_CX

private static final java.lang.String JBOSS_WRAPPED_CX
See Also:
Constant Field Values

JBOSS_WRAPPED_STMT

private static final java.lang.String JBOSS_WRAPPED_STMT
See Also:
Constant Field Values

_databaseLobHandler

private LobHandler _databaseLobHandler
Constructor Detail

JbossLobHandler

public JbossLobHandler(LobHandler databaseLobHandler)
Parameters:
databaseLobHandler -
Method Detail

unwrap

public java.sql.Connection unwrap(java.sql.Connection connection)
                           throws java.sql.SQLException
Parameters:
connection -
Returns:
Throws:
java.sql.SQLException

unwrap

public java.sql.PreparedStatement unwrap(java.sql.PreparedStatement statement)
                                  throws java.sql.SQLException
Parameters:
statement -
Returns:
Throws:
java.sql.SQLException

makeClob

public java.sql.Clob makeClob(java.sql.Connection connection,
                              java.lang.String value)
                       throws java.sql.SQLException
Overrides:
makeClob in class LobHandler
Parameters:
connection -
value -
Returns:
Throws:
java.sql.SQLException

setClob

public void setClob(java.sql.PreparedStatement statement,
                    int index,
                    java.lang.String value)
             throws java.sql.SQLException
Overrides:
setClob in class LobHandler
Parameters:
statement -
index -
value -
Throws:
java.sql.SQLException

makeBlob

public java.sql.Blob makeBlob(java.sql.Connection connection,
                              java.io.InputStream dataStream,
                              int length)
                       throws java.sql.SQLException
Overrides:
makeBlob in class LobHandler
Parameters:
connection -
dataStream -
Returns:
Throws:
java.sql.SQLException

setBlob

public void setBlob(java.sql.PreparedStatement statement,
                    int index,
                    java.io.InputStream dataStream,
                    int length)
             throws java.sql.SQLException
Overrides:
setBlob in class LobHandler
Parameters:
statement -
index -
dataStream -
Throws:
java.sql.SQLException

setArray

public void setArray(java.sql.PreparedStatement statement,
                     int index,
                     java.lang.Object[] array,
                     java.lang.String arrayDescriptor)
              throws java.sql.SQLException
Overrides:
setArray in class LobHandler
Parameters:
statement -
index -
array -
arrayDescriptor -
Throws:
java.sql.SQLException