Hello, I am implementing a custom StoreManager to access relational data
through a propietary product API, wich my company has bought but don't want
to use in all data accesses. The JPA has to be the uniform persistence layer
for all units, which can be configured to use a particular StoreManager
(JDBC, propietary API, etc.)

So, at the moment of executing internally the query in my StoreQuery and
construct the delegate object (of the propietary API), I walk through the
expressions provided by InMemoryExpressionFactory with an ExpressionVisitor
(I use this factory because in-memory post-processing can be required due to
limitations on the propitary API).

The problem is that all expressions have a protected visibility, so I cannot
know wich expression I am processing and cannot construct my delegate query.
Is there a way to obtain the type of expression of a
org.apache.openjpa.kernel.exps.Expression? A kind of JavaTypes for
expressions that tells you if it is and AND, OR... ?

It's a bit weird, I hope someone has been found the same problem. Thanks!

-- 
View this message in context: 
http://www.nabble.com/Custom-StoreManager-tp16394955p16394955.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to