|
|||||||||
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.mdr.MedMdrForeignDataWrapper
public class MedMdrForeignDataWrapper
MedMdrForeignDataWrapper implements the FarragoMedDataWrapper interface by representing classes in an MDR repository as tables (mapping the class extent to a corresponding set of rows).
Field Summary |
---|
Fields inherited from class net.sf.farrago.plugin.FarragoAbstractPluginBase |
---|
BOOLEAN_CHOICES_DEFAULT_FALSE, BOOLEAN_CHOICES_DEFAULT_TRUE, EMPTY_DRIVER_PROPERTIES |
Constructor Summary | |
---|---|
MedMdrForeignDataWrapper()
Default constructor for access to external repositories. |
Method Summary | |
---|---|
String |
getDescription(Locale locale)
Obtains a description of this plugin. |
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, getServerPropertyInfo, 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 MedMdrForeignDataWrapper()
Method Detail |
---|
public String getSuggestedName()
FarragoPlugin
public String getDescription(Locale locale)
FarragoPlugin
locale
- Locale for formatting description
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 |