cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Lewis (JIRA)" <>
Subject [jira] Created: (CAY-1248) ClassCastException with OracleLOBBatchAction
Date Mon, 29 Jun 2009 23:31:47 GMT
ClassCastException with OracleLOBBatchAction

                 Key: CAY-1248
             Project: Cayenne
          Issue Type: Bug
          Components: Cayenne Core Library
    Affects Versions: 3.0M6
         Environment: Oracle8
            Reporter: Bryan Lewis

DataDomainActionBuilder.batchAction calls delegate.batchAction():

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

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.

The DataDomainActionBuilder is new code in 3.0.  Either it shouldn't cast to BatchAction,
or OracleLOBBatchAction should extend BatchAction.

I've left this as a Major priority because it doesn't appear to be Oracle8-specific.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message