net.sf.farrago.namespace.mql
Class MedMqlForeignDataWrapper
java.lang.Object
net.sf.farrago.plugin.FarragoAbstractPluginBase
net.sf.farrago.namespace.impl.MedAbstractBase
net.sf.farrago.namespace.impl.MedAbstractDataWrapper
net.sf.farrago.namespace.mql.MedMqlForeignDataWrapper
- All Implemented Interfaces:
- FarragoMedDataWrapperInfo, FarragoMedDataWrapper, FarragoPlugin, FarragoAllocation, ClosableAllocation
public class MedMqlForeignDataWrapper
- extends MedAbstractDataWrapper
MedMqlForeignDataWrapper provides an implementation of the FarragoMedDataWrapper
interface for MQL.
- Version:
- $Id: //open/dev/farrago/ext/mql/src/net/sf/farrago/namespace/mql/MedMqlForeignDataWrapper.java#3 $
- Author:
- John V. Sichi
Methods inherited from class net.sf.farrago.namespace.impl.MedAbstractDataWrapper |
closeAllocation, getColumnPropertyInfo, getColumnSetPropertyInfo, getLibraryName, getPluginPropertyInfo, getProperties, getRepos, getServerPropertyInfo, initialize, isForeign, setLibraryName, supportsServerSharing |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MedMqlForeignDataWrapper
public MedMqlForeignDataWrapper()
- Creates a new data wrapper instance.
getSuggestedName
public String getSuggestedName()
- Description copied from interface:
FarragoPlugin
- Obtains a suggested name for this plugin in the SQL catalog.
- Returns:
- suggested name
getDescription
public String getDescription(Locale locale)
- Description copied from interface:
FarragoPlugin
- Obtains a description of this plugin.
- Parameters:
locale
- Locale for formatting description
- Returns:
- localized description
newServer
public FarragoMedDataServer newServer(String serverMofId,
Properties props)
throws SQLException
- Description copied from interface:
FarragoMedDataWrapper
- Creates an instance of this wrapper for a particular server. This
supports the SQL/MED CREATE SERVER statement. The TYPE and VERSION
attributes are rolled in with the other properties. As much validation as
possible should be performed, including establishing connections if
appropriate.
If this wrapper returns false from the isForeign method, then returned
server instances must implement the FarragoMedLocalDataServer interface.
- Parameters:
serverMofId
- MOFID of server definition in repository; this can be
used for accessing the server definition from generated codeprops
- server properties
- Returns:
- new server instance
- Throws:
SQLException
- if server connection is unsuccessful