net.sf.farrago.jdbc.client
Class FarragoRJMedDataWrapper

java.lang.Object
  extended by net.sf.farrago.jdbc.client.FarragoRJMedDataWrapper
All Implemented Interfaces:
Serializable, FarragoMedDataWrapperInfo

 class FarragoRJMedDataWrapper
extends Object
implements FarragoMedDataWrapperInfo, Serializable

Client-side JDBC implementation of FarragoMedDataWrapper.

It is paired with a FarragoRJMedDataWrapperServer via RMI.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/jdbc/client/FarragoRJMedDataWrapper.java#11 $
Author:
Tim Leung

Field Summary
protected  FarragoRJMedDataWrapperInterface rmiDataWrapper_
           
 
Constructor Summary
FarragoRJMedDataWrapper(FarragoRJMedDataWrapperInterface wrapper)
           
 
Method Summary
 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).
private  DriverPropertyInfo[] getDriverPropertyInfo(FarragoRJDriverPropertyInfo[] infos)
           
 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).
 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

rmiDataWrapper_

protected final FarragoRJMedDataWrapperInterface rmiDataWrapper_
Constructor Detail

FarragoRJMedDataWrapper

public FarragoRJMedDataWrapper(FarragoRJMedDataWrapperInterface wrapper)
Method Detail

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

getDriverPropertyInfo

private DriverPropertyInfo[] getDriverPropertyInfo(FarragoRJDriverPropertyInfo[] infos)