Package oracle.jdbc.babelfish
Class BabelfishGenericProxy
java.lang.Object
oracle.jdbc.babelfish.BabelfishGenericProxy
- Direct Known Subclasses:
BabelfishConnection,BabelfishStatement
Defines the common behavior needed by all the babelfish proxies to support
auto translation of queries or errors. All the proxies are children of this class
and thus get the common behavior via inheritance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Objectprotected abstract Objectprotected Objectpost_Methods(Method m, Object result) Post method interceptor.protected ObjecttranslateError(Method m, SQLException ex) Error interceptor.
-
Constructor Details
-
BabelfishGenericProxy
public BabelfishGenericProxy()
-
-
Method Details
-
getCreator
- Returns:
-
getDelegate
- Returns:
-
translateError
Error interceptor. Handles the translation of error.- Parameters:
m-ex-- Returns:
- Throws:
SQLException
-
post_Methods
Post method interceptor. Sets the translator in the returning object if the returning object is a child of BabelfishGenericProxy- Parameters:
m-result-- Returns:
-