|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.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 FarragoPluginpublic String getLibraryName()
FarragoPlugin
getLibraryName in interface FarragoPluginpublic void setLibraryName(String libraryName)
FarragoPlugin
setLibraryName in interface FarragoPluginlibraryName - library name used to initialize this wrapper
public DriverPropertyInfo[] getPluginPropertyInfo(Locale locale,
Properties props)
FarragoMedDataWrapperInfo
getPluginPropertyInfo in interface FarragoMedDataWrapperInfogetPluginPropertyInfo in interface FarragoPluginlocale - 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 FarragoMedDataWrapperInfolocale - 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 FarragoMedDataWrapperInfolocale - 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)
FarragoMedDataWrapperInfoFarragoMedDataServer.newColumnSet(java.lang.String[], java.util.Properties, net.sf.farrago.type.FarragoTypeFactory, org.eigenbase.reltype.RelDataType, java.util.Map) method).
getColumnPropertyInfo in interface FarragoMedDataWrapperInfolocale - 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 FarragoPluginrepos - FarragoRepos which can be used for metadata accessprops - plugin properties
SQLException - if plugin initialization is unsuccessfulpublic void closeAllocation()
ClosableAllocation
closeAllocation in interface ClosableAllocationpublic boolean isForeign()
FarragoMedDataWrapperInfo
isForeign in interface FarragoMedDataWrapperInfopublic boolean supportsServerSharing()
FarragoMedDataWrapperFarragoDataWrapperCache.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 | ||||||||