|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.farrago.plugin.FarragoAbstractPluginBase net.sf.farrago.namespace.impl.MedAbstractBase net.sf.farrago.namespace.impl.MedAbstractDataWrapper
public abstract class MedAbstractDataWrapper
MedAbstractDataWrapper is an abstract base class for implementations of the
FarragoMedDataWrapper
interface.
Field Summary | |
---|---|
private String |
libraryName
|
private Properties |
props
|
private FarragoRepos |
repos
|
Fields inherited from class net.sf.farrago.plugin.FarragoAbstractPluginBase |
---|
BOOLEAN_CHOICES_DEFAULT_FALSE, BOOLEAN_CHOICES_DEFAULT_TRUE, EMPTY_DRIVER_PROPERTIES |
Constructor Summary | |
---|---|
protected |
MedAbstractDataWrapper()
|
Method Summary | |
---|---|
void |
closeAllocation()
Closes this object. |
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). |
String |
getLibraryName()
return the library name used to initialize this plugin |
DriverPropertyInfo[] |
getPluginPropertyInfo(Locale locale,
Properties props)
Obtains information about the properties applicable to plugin initialization. |
Properties |
getProperties()
return the options with which this plugin was initialized |
FarragoRepos |
getRepos()
|
DriverPropertyInfo[] |
getServerPropertyInfo(Locale locale,
Properties wrapperProps,
Properties serverProps)
Obtains information about the properties applicable to server initialization (the props parameter to the newServer method). |
void |
initialize(FarragoRepos repos,
Properties props)
Initializes this plugin with a given set of properties. |
boolean |
isForeign()
Determines whether this data wrapper accesses foreign data, or manages local data. |
void |
setLibraryName(String libraryName)
set the library name used to initialize this plugin |
boolean |
supportsServerSharing()
Returns whether server supports sharing by multiple threads. |
Methods inherited from class net.sf.farrago.plugin.FarragoAbstractPluginBase |
---|
getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getShortProperty, requireProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.farrago.namespace.FarragoMedDataWrapper |
---|
newServer |
Methods inherited from interface net.sf.farrago.plugin.FarragoPlugin |
---|
getDescription, getSuggestedName |
Field Detail |
---|
private FarragoRepos repos
private Properties props
private String libraryName
Constructor Detail |
---|
protected MedAbstractDataWrapper()
Method Detail |
---|
public FarragoRepos getRepos()
public Properties getProperties()
FarragoPlugin
getProperties
in interface FarragoPlugin
public String getLibraryName()
FarragoPlugin
getLibraryName
in interface FarragoPlugin
public void setLibraryName(String libraryName)
FarragoPlugin
setLibraryName
in interface FarragoPlugin
libraryName
- library name used to initialize this wrapperpublic DriverPropertyInfo[] getPluginPropertyInfo(Locale locale, Properties props)
FarragoMedDataWrapperInfo
getPluginPropertyInfo
in interface FarragoMedDataWrapperInfo
getPluginPropertyInfo
in interface FarragoPlugin
locale
- Locale for formatting property infoprops
- proposed list of property name/value pairs which will
be sent to FarragoPlugin.initialize(net.sf.farrago.catalog.FarragoRepos, java.util.Properties)
public DriverPropertyInfo[] getServerPropertyInfo(Locale locale, Properties wrapperProps, Properties serverProps)
FarragoMedDataWrapperInfo
getServerPropertyInfo
in interface FarragoMedDataWrapperInfo
locale
- Locale for formatting property infowrapperProps
- 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)
public DriverPropertyInfo[] getColumnSetPropertyInfo(Locale locale, Properties wrapperProps, Properties serverProps, Properties tableProps)
FarragoMedDataWrapperInfo
getColumnSetPropertyInfo
in interface FarragoMedDataWrapperInfo
locale
- Locale for formatting property infowrapperProps
- 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)
public DriverPropertyInfo[] getColumnPropertyInfo(Locale locale, Properties wrapperProps, Properties serverProps, Properties tableProps, Properties columnProps)
FarragoMedDataWrapperInfo
FarragoMedDataServer.newColumnSet(java.lang.String[], java.util.Properties, net.sf.farrago.type.FarragoTypeFactory, org.eigenbase.reltype.RelDataType, java.util.Map)
method).
getColumnPropertyInfo
in interface FarragoMedDataWrapperInfo
locale
- Locale for formatting property infowrapperProps
- 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)
public void initialize(FarragoRepos repos, Properties props) throws SQLException
FarragoPlugin
initialize
in interface FarragoPlugin
repos
- FarragoRepos which can be used for metadata accessprops
- plugin properties
SQLException
- if plugin initialization is unsuccessfulpublic void closeAllocation()
ClosableAllocation
closeAllocation
in interface ClosableAllocation
public boolean isForeign()
FarragoMedDataWrapperInfo
isForeign
in interface FarragoMedDataWrapperInfo
public boolean supportsServerSharing()
FarragoMedDataWrapper
FarragoDataWrapperCache.loadServer(java.lang.String, net.sf.farrago.namespace.FarragoMedDataWrapper, java.util.Properties)
to determine if the entry should be exclusive (not shared).
supportsServerSharing
in interface FarragoMedDataWrapper
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |