com.amazon.carbonado.repo.jdbc
Interface JDBCSupport<S extends Storable>

All Superinterfaces:
Capability, JDBCConnectionCapability, MasterSupport<S>, StorableSupport<S>, TriggerSupport<S>

public interface JDBCSupport<S extends Storable>
extends MasterSupport<S>, JDBCConnectionCapability

Author:
Brian S O'Neill

Method Summary
 Blob convertBlob(Blob blob, JDBCBlobLoader loader)
           
 Clob convertClob(Clob clob, JDBCClobLoader loader)
           
 Blob setBlobValue(PreparedStatement ps, int column, Blob blob)
           
 Clob setClobValue(PreparedStatement ps, int column, Clob clob)
           
 void updateBlob(Blob oldBlob, Blob newBlob)
           
 void updateClob(Clob oldClob, Clob newClob)
           
 
Methods inherited from interface com.amazon.carbonado.gen.MasterSupport
getSequenceValueProducer
 
Methods inherited from interface com.amazon.carbonado.gen.TriggerSupport
getDeleteTrigger, getInsertTrigger, getLoadTrigger, getUpdateTrigger, locallyDisableLoadTrigger, locallyEnableLoadTrigger
 
Methods inherited from interface com.amazon.carbonado.gen.StorableSupport
getRootRepository, isPropertySupported
 
Methods inherited from interface com.amazon.carbonado.repo.jdbc.JDBCConnectionCapability
getConnection, getDatabaseProductName, isTransactionForUpdate, isUniqueConstraintError, toFetchException, toPersistException, yieldConnection
 

Method Detail

convertBlob

Blob convertBlob(Blob blob,
                 JDBCBlobLoader loader)
                 throws FetchException
Parameters:
loader - used to reload Blob outside original transaction
Throws:
FetchException

convertClob

Clob convertClob(Clob clob,
                 JDBCClobLoader loader)
                 throws FetchException
Parameters:
loader - used to reload Clob outside original transaction
Throws:
FetchException

setBlobValue

Blob setBlobValue(PreparedStatement ps,
                  int column,
                  Blob blob)
                  throws PersistException
Returns:
original blob if too large and post-insert update is required, null otherwise
Throws:
PersistException - instead of FetchException since this code is called during an insert operation

setClobValue

Clob setClobValue(PreparedStatement ps,
                  int column,
                  Clob clob)
                  throws PersistException
Returns:
original clob if too large and post-insert update is required, null otherwise
Throws:
PersistException - instead of FetchException since this code is called during an insert operation

updateBlob

void updateBlob(Blob oldBlob,
                Blob newBlob)
                throws PersistException
Throws:
PersistException

updateClob

void updateClob(Clob oldClob,
                Clob newClob)
                throws PersistException
Throws:
PersistException


Copyright © 2006-2009 Amazon Technologies, Inc.. All Rights Reserved.