|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FarragoMedDataWrapper
FarragoMedDataWrapper defines an interface for accessing foreign or local data. It is a non-standard replacement for the standard SQL/MED internal interface.
Implementations of FarragoMedDataWrapper must provide a public default constructor in order to be loaded via the CREATE {FOREIGN|LOCAL} DATA WRAPPER statement. FarragoMedDataWrapper extends FarragoAllocation; when closeAllocation is called, all resources (such as connections) used to access the data should be released.
| Method Summary | |
|---|---|
FarragoMedDataServer |
newServer(String serverMofId,
Properties props)
Creates an instance of this wrapper for a particular server. |
boolean |
supportsServerSharing()
Returns whether server supports sharing by multiple threads. |
| Methods inherited from interface net.sf.farrago.plugin.FarragoPlugin |
|---|
getDescription, getLibraryName, getPluginPropertyInfo, getProperties, getSuggestedName, initialize, setLibraryName |
| Methods inherited from interface org.eigenbase.util.ClosableAllocation |
|---|
closeAllocation |
| Methods inherited from interface net.sf.farrago.jdbc.FarragoMedDataWrapperInfo |
|---|
getColumnPropertyInfo, getColumnSetPropertyInfo, getPluginPropertyInfo, getServerPropertyInfo, isForeign |
| Method Detail |
|---|
FarragoMedDataServer newServer(String serverMofId,
Properties props)
throws SQLException
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 unsuccessfulboolean supportsServerSharing()
FarragoDataWrapperCache.loadServer(java.lang.String, net.sf.farrago.namespace.FarragoMedDataWrapper, java.util.Properties)
to determine if the entry should be exclusive (not shared).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||