All Packages This Package Previous Next
Class sqlj.runtime.profile.ref.DynamicProfileWrapper
java.lang.Object
|
+----sqlj.runtime.profile.ref.ProfileWrapper
|
+----sqlj.runtime.profile.ref.DynamicProfileWrapper
- public class DynamicProfileWrapper
- extends ProfileWrapper
- implements DynamicProfile
This class is the superclass of all classes that augment the
functionality of dynamic connected profiles. These dynamic profiles sit on
top of (wrap) an already existing dynamic profile (the underlying
dynamic profile), but provide additional functionality.
The class DynamicProfileWrapper itself overrides all methods of
DynamicProfile with versions that pass all requests to the underlying
dynamic profile. Subclasses of DynamicWrapper may further override
some of these methods as well as provide additional methods and fields.
-
baseDynamicProfile
- The underlying dynamic profile.
-
DynamicProfileWrapper(DynamicProfile)
- Creates an dynamic profile wrapper built on top of the specified
dynamic profile.
-
getWrappedDynamicProfile()
- Returns the underlying dynamic profile to which all method
implementations are deferred.
-
prepareCall(String)
- Returns the result of calling method
prepareCall
on the underlying dynamic profile.
-
prepareStatement(String)
- Returns the result of calling method
prepareStatement
on the underlying dynamic profile.
-
setWrappedProfile(ConnectedProfile)
- Returns true if the underlying dynamic profile can be replaced with
the passed connected profile, false otherwise.
baseDynamicProfile
protected DynamicProfile baseDynamicProfile
- The underlying dynamic profile.
DynamicProfileWrapper
public DynamicProfileWrapper(DynamicProfile profile)
- Creates an dynamic profile wrapper built on top of the specified
dynamic profile.
- Parameters:
- profile - the underlying connected profile.
getWrappedDynamicProfile
public DynamicProfile getWrappedDynamicProfile()
- Returns the underlying dynamic profile to which all method
implementations are deferred.
setWrappedProfile
public boolean setWrappedProfile(ConnectedProfile newProfile)
- Returns true if the underlying dynamic profile can be replaced with
the passed connected profile, false otherwise. If true is returned,
then the underlying dynamic profile will be replaced with the passed
profile. If false is returned, the underlying profile is left unchanged.
This method is useful for adding profile layering between existing
layers as opposed to strictly to the top layer.
Note: the default implementation will replace the underlying
profile iff the passed profile is an instance of a dynamic profile.
- Overrides:
- setWrappedProfile in class ProfileWrapper
prepareStatement
public RTStatement prepareStatement(String p0) throws SQLException
- Returns the result of calling method
prepareStatement
on the underlying dynamic profile.
- Throws: SQLException
- if the call results in an exception
prepareCall
public RTCallableStatement prepareCall(String p0) throws SQLException
- Returns the result of calling method
prepareCall
on the underlying dynamic profile.
- Throws: SQLException
- if the call results in an exception
All Packages This Package Previous Next