|
|||||||||
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 net.sf.farrago.namespace.mock.MedMockForeignDataWrapper
public class MedMockForeignDataWrapper
MedMockForeignDataWrapper provides a mock implementation of the FarragoMedDataWrapper
interface.
Field Summary |
---|
Fields inherited from class net.sf.farrago.plugin.FarragoAbstractPluginBase |
---|
BOOLEAN_CHOICES_DEFAULT_FALSE, BOOLEAN_CHOICES_DEFAULT_TRUE, EMPTY_DRIVER_PROPERTIES |
Constructor Summary | |
---|---|
MedMockForeignDataWrapper()
Creates a new data wrapper instance. |
Method Summary | |
---|---|
String |
getDescription(Locale locale)
Obtains a description of this plugin. |
DriverPropertyInfo[] |
getServerPropertyInfo(Locale locale,
Properties wrapperProps,
Properties serverProps)
Obtains information about the properties applicable to server initialization (the props parameter to the newServer method). |
String |
getSuggestedName()
Obtains a suggested name for this plugin in the SQL catalog. |
void |
initialize(FarragoRepos repos,
Properties props)
Initializes this plugin with a given set of properties. |
FarragoMedDataServer |
newServer(String serverMofId,
Properties props)
Creates an instance of this wrapper for a particular server. |
Methods inherited from class net.sf.farrago.namespace.impl.MedAbstractDataWrapper |
---|
closeAllocation, getColumnPropertyInfo, getColumnSetPropertyInfo, getLibraryName, getPluginPropertyInfo, getProperties, getRepos, isForeign, setLibraryName, supportsServerSharing |
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 |
Constructor Detail |
---|
public MedMockForeignDataWrapper()
Method Detail |
---|
public String getSuggestedName()
FarragoPlugin
public String getDescription(Locale locale)
FarragoPlugin
locale
- Locale for formatting description
public DriverPropertyInfo[] getServerPropertyInfo(Locale locale, Properties wrapperProps, Properties serverProps)
FarragoMedDataWrapperInfo
getServerPropertyInfo
in interface FarragoMedDataWrapperInfo
getServerPropertyInfo
in class MedAbstractDataWrapper
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 void initialize(FarragoRepos repos, Properties props) throws SQLException
FarragoPlugin
initialize
in interface FarragoPlugin
initialize
in class MedAbstractDataWrapper
repos
- FarragoRepos which can be used for metadata accessprops
- plugin properties
SQLException
- if plugin initialization is unsuccessfulpublic FarragoMedDataServer newServer(String serverMofId, Properties props) throws SQLException
FarragoMedDataWrapper
If this wrapper returns false from the isForeign method, then returned server instances must implement the FarragoMedLocalDataServer interface.
serverMofId
- MOFID of server definition in repository; this can be
used for accessing the server definition from generated codeprops
- server properties
SQLException
- if server connection is unsuccessful
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |