net.sf.farrago.jdbc.engine
Class FarragoJdbcEngineConnection.FleetingMedDataWrapperInfo

java.lang.Object
  extended by net.sf.farrago.jdbc.engine.FarragoJdbcEngineConnection.FleetingMedDataWrapperInfo
All Implemented Interfaces:
FarragoMedDataWrapperInfo
Enclosing class:
FarragoJdbcEngineConnection

private class FarragoJdbcEngineConnection.FleetingMedDataWrapperInfo
extends Object
implements FarragoMedDataWrapperInfo

Implementation of FarragoMedDataWrapperInfo which fleetingly grabs a FarragoMedDataWrapper at the start of a call and unpins it before the end of the call.


Field Summary
private  FarragoDataWrapperCache dataWrapperCache
           
private  String libraryName
           
private  String mofId
           
private  Properties options
           
 
Constructor Summary
FarragoJdbcEngineConnection.FleetingMedDataWrapperInfo(String mofId, String libraryName, Properties options)
           
 
Method Summary
private  void closeWrapperCache()
           
 DriverPropertyInfo[] getColumnPropertyInfo(Locale locale, Properties wrapperProps, Properties serverProps, Properties tableProps, Properties columnProps)
          Obtains information about the properties applicable to individual column initialization (the columnPropMap parameter to the FarragoMedDataServer.newColumnSet(java.lang.String[], java.util.Properties, net.sf.farrago.type.FarragoTypeFactory, org.eigenbase.reltype.RelDataType, java.util.Map) method).
 DriverPropertyInfo[] getColumnSetPropertyInfo(Locale locale, Properties wrapperProps, Properties serverProps, Properties tableProps)
          Obtains information about the properties applicable to column set initialization (the tableProps parameter to the newColumnSet method).
 DriverPropertyInfo[] getPluginPropertyInfo(Locale locale, Properties wrapperProps)
          Obtains information about the properties applicable to plugin initialization.
 DriverPropertyInfo[] getServerPropertyInfo(Locale locale, Properties wrapperProps, Properties serverProps)
          Obtains information about the properties applicable to server initialization (the props parameter to the newServer method).
private  FarragoMedDataWrapper getWrapper()
           
 boolean isForeign()
          Determines whether this data wrapper accesses foreign data, or manages local data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mofId

private final String mofId

libraryName

private final String libraryName

options

private final Properties options

dataWrapperCache

private FarragoDataWrapperCache dataWrapperCache
Constructor Detail

FarragoJdbcEngineConnection.FleetingMedDataWrapperInfo

FarragoJdbcEngineConnection.FleetingMedDataWrapperInfo(String mofId,
                                                       String libraryName,
                                                       Properties options)
Method Detail

getWrapper

private FarragoMedDataWrapper getWrapper()

closeWrapperCache

private void closeWrapperCache()

getPluginPropertyInfo

public DriverPropertyInfo[] getPluginPropertyInfo(Locale locale,
                                                  Properties wrapperProps)
Description copied from interface: FarragoMedDataWrapperInfo
Obtains information about the properties applicable to plugin initialization.

Specified by:
getPluginPropertyInfo in interface FarragoMedDataWrapperInfo
Parameters:
locale - Locale for formatting property info
wrapperProps - proposed list of property name/value pairs which will be sent to FarragoPlugin.initialize(net.sf.farrago.catalog.FarragoRepos, java.util.Properties)
Returns:
0 or more property info descriptors

getServerPropertyInfo

public DriverPropertyInfo[] getServerPropertyInfo(Locale locale,
                                                  Properties wrapperProps,
                                                  Properties serverProps)
Description copied from interface: FarragoMedDataWrapperInfo
Obtains information about the properties applicable to server initialization (the props parameter to the newServer method).

Specified by:
getServerPropertyInfo in interface FarragoMedDataWrapperInfo
Parameters:
locale - Locale for formatting property info
wrapperProps - proposed list of property name/value pairs which will be sent to FarragoPlugin.initialize(net.sf.farrago.catalog.FarragoRepos, java.util.Properties)
serverProps - proposed list of property name/value pairs which will be sent to FarragoMedDataWrapper.newServer(java.lang.String, java.util.Properties)
Returns:
0 or more property info descriptors

getColumnSetPropertyInfo

public DriverPropertyInfo[] getColumnSetPropertyInfo(Locale locale,
                                                     Properties wrapperProps,
                                                     Properties serverProps,
                                                     Properties tableProps)
Description copied from interface: FarragoMedDataWrapperInfo
Obtains information about the properties applicable to column set initialization (the tableProps parameter to the newColumnSet method).

Specified by:
getColumnSetPropertyInfo in interface FarragoMedDataWrapperInfo
Parameters:
locale - Locale for formatting property info
wrapperProps - proposed list of property name/value pairs which will be sent to FarragoPlugin.initialize(net.sf.farrago.catalog.FarragoRepos, java.util.Properties)
serverProps - proposed list of property name/value pairs which will be sent to FarragoMedDataWrapper.newServer(java.lang.String, java.util.Properties)
tableProps - proposed list of property name/value pairs which will be sent to the tableProps parameter of FarragoMedDataServer.newColumnSet(java.lang.String[], java.util.Properties, net.sf.farrago.type.FarragoTypeFactory, org.eigenbase.reltype.RelDataType, java.util.Map)
Returns:
0 or more property info descriptors

getColumnPropertyInfo

public DriverPropertyInfo[] getColumnPropertyInfo(Locale locale,
                                                  Properties wrapperProps,
                                                  Properties serverProps,
                                                  Properties tableProps,
                                                  Properties columnProps)
Description copied from interface: FarragoMedDataWrapperInfo
Obtains information about the properties applicable to individual column initialization (the columnPropMap parameter to the FarragoMedDataServer.newColumnSet(java.lang.String[], java.util.Properties, net.sf.farrago.type.FarragoTypeFactory, org.eigenbase.reltype.RelDataType, java.util.Map) method).

Specified by:
getColumnPropertyInfo in interface FarragoMedDataWrapperInfo
Parameters:
locale - Locale for formatting property info
wrapperProps - proposed list of property name/value pairs which will be sent to FarragoPlugin.initialize(net.sf.farrago.catalog.FarragoRepos, java.util.Properties)
serverProps - proposed list of property name/value pairs which will be sent to FarragoMedDataWrapper.newServer() FarragoMedDataWrapper.newServer(java.lang.String, java.util.Properties)
tableProps - proposed list of property name/value pairs which will be sent as the tableProps parameter of FarragoMedDataServer.newColumnSet(java.lang.String[], java.util.Properties, net.sf.farrago.type.FarragoTypeFactory, org.eigenbase.reltype.RelDataType, java.util.Map)
columnProps - proposed list of property name/value pairs which will be sent as an entry in the columnPropMap parameter of FarragoMedDataServer.newColumnSet(java.lang.String[], java.util.Properties, net.sf.farrago.type.FarragoTypeFactory, org.eigenbase.reltype.RelDataType, java.util.Map)
Returns:
0 or more property info descriptors

isForeign

public boolean isForeign()
Description copied from interface: FarragoMedDataWrapperInfo
Determines whether this data wrapper accesses foreign data, or manages local data.

Specified by:
isForeign in interface FarragoMedDataWrapperInfo
Returns:
true for foreign data; false for local data