cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Lewis <>
Subject ClassCastException with OracleLOBBatchAction
Date Mon, 29 Jun 2009 23:29:02 GMT
One more bug report related to Oracle, although this one might not be
specific to Oracle8.

DataDomainActionBuilder.batchAction calls delegate.batchAction():

    public SQLAction batchAction(BatchQuery query) {
        return new DataDomainBatchAction(domain, (BatchAction)

That delegate, OracleActionBuilder in our case, has some special handling:

    if (OracleAdapter.isSupportsOracleLOB() &&
OracleAdapter.updatesLOBColumns(query)) {
            return new OracleLOBBatchAction(query, getAdapter());

That class does not extend BatchAction (unlike the normal OracleBatchAction
case) and the BatchAction cast fails.

It appears to be a simple non-data-dependent bug.  The
DataDomainActionBuilder is new code in 3.0.  Either it shouldn't cast to
BatchAction, or OracleLOBBatchAction should extend BatchAction.

I've worked around it for our purposes by telling the OracleAdapter that
supportsOracleLOB is false.

I'll create a Jira.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message