Package oracle.jdbc.babelfish
Class BabelfishGenericProxy
- java.lang.Object
-
- oracle.jdbc.babelfish.BabelfishGenericProxy
-
- Direct Known Subclasses:
BabelfishConnection
,BabelfishStatement
public abstract class BabelfishGenericProxy extends Object
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 Constructor Description BabelfishGenericProxy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Object
getCreator()
protected abstract Object
getDelegate()
protected Object
post_Methods(Method m, Object result)
Post method interceptor.protected Object
translateError(Method m, SQLException ex)
Error interceptor.
-
-
-
Method Detail
-
getCreator
protected abstract Object getCreator()
- Returns:
-
getDelegate
protected abstract Object getDelegate()
- Returns:
-
translateError
protected Object translateError(Method m, SQLException ex) throws SQLException
Error interceptor. Handles the translation of error.- Parameters:
m
-ex
-- Returns:
- Throws:
SQLException
-
-