|
|||||||||
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.jdbc.MedJdbcForeignDataWrapper
public class MedJdbcForeignDataWrapper
MedJdbcForeignDataWrapper implements the FarragoMedDataWrapper interface by accessing foreign tables provided by any JDBC driver.
Field Summary | |
---|---|
static String |
PROP_DRIVER_CLASS_NAME
|
Fields inherited from class net.sf.farrago.plugin.FarragoAbstractPluginBase |
---|
BOOLEAN_CHOICES_DEFAULT_FALSE, BOOLEAN_CHOICES_DEFAULT_TRUE, EMPTY_DRIVER_PROPERTIES |
Constructor Summary | |
---|---|
MedJdbcForeignDataWrapper()
Creates a new data wrapper instance. |
Method Summary | |
---|---|
private String[] |
getArtificialSchemas(DatabaseMetaData meta)
|
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. |
protected Driver |
loadDriverClass(String driverClassName)
|
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 |
Field Detail |
---|
public static final String PROP_DRIVER_CLASS_NAME
Constructor Detail |
---|
public MedJdbcForeignDataWrapper()
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 unsuccessfulprotected Driver loadDriverClass(String driverClassName)
private String[] getArtificialSchemas(DatabaseMetaData meta) throws SQLException
SQLException
public 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 |