cayenne-commits mailing list archives

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

    [ https://issues.apache.org/jira/browse/CAY-1248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12725392#action_12725392
] 

Bryan Lewis commented on CAY-1248:
----------------------------------

I've worked around it for our purposes by setting OracleAdapter.supportsOracleLOB to false,
in OracleAdapter.initDriverInformation().  (I liked the TODO comment there... the static method
did indeed make this messier to fix.)




> ClassCastException with OracleLOBBatchAction
> --------------------------------------------
>
>                 Key: CAY-1248
>                 URL: https://issues.apache.org/jira/browse/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.


Mime
View raw message