Skip to main content
existdissolve
Inspiring
September 3, 2012
Question

Cast to Java Interface

In my app, I'm using the Hibernate Criteria API quite extensively. For one of my queries, I'd like to implement something described here:

http://stackoverflow.com/questions/554481/how-to-get-sql-from-hibernate-criteria-api-not-for-logging

I can get most of the way, but am hung up on the parts where the SessionFactoryImpl is cast to one of its implemented interfaces (SessionFactoryImplementor), and on a similar technique later in the code (casting SingleTableEntityPersister as OuterJoinLoadable).

My question is whether or not this kind of casting is even possible in ColdFusion and, if so, exactly how one would go about it.

I appreciate any help that anyone can provide.

Thanks!

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

pete_freitag
Participating Frequently
September 7, 2012

You can probably ignore the casting, it is needed by the Java Compiler but CF uses reflection to invoke the java methods so casting should not be necessary.

Translate