|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FarragoPlugin
FarragoPlugin defines an abstract plugin interface. Some JDBC infrastructure
is borrowed (SQLException
and DriverPropertyInfo
). The property info calls are designed to work
in the same iterative fashion as Driver.getPropertyInfo(java.lang.String, java.util.Properties)
.
Implementations of FarragoPlugin must provide a public default constructor
in order to be loaded via DDL statements. FarragoPlugin extends FarragoAllocation
; when closeAllocation is called, all resources acquired by
the plugin should be released.
Method Summary | |
---|---|
String |
getDescription(Locale locale)
Obtains a description of this plugin. |
String |
getLibraryName()
return the library name used to initialize this plugin |
DriverPropertyInfo[] |
getPluginPropertyInfo(Locale locale,
Properties props)
Obtains information about the properties applicable to plugin initialization (the props parameter to the initialize method). |
Properties |
getProperties()
return the options with which this plugin was initialized |
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. |
void |
setLibraryName(String libraryName)
set the library name used to initialize this plugin |
Methods inherited from interface org.eigenbase.util.ClosableAllocation |
---|
closeAllocation |
Method Detail |
---|
String getSuggestedName()
String getDescription(Locale locale)
locale
- Locale for formatting description
DriverPropertyInfo[] getPluginPropertyInfo(Locale locale, Properties props)
locale
- Locale for formatting property infoprops
- proposed list of property name/value pairs which will be
sent to initialize()
void initialize(FarragoRepos repos, Properties props) throws SQLException
repos
- FarragoRepos which can be used for metadata accessprops
- plugin properties
SQLException
- if plugin initialization is unsuccessfulvoid setLibraryName(String libraryName)
libraryName
- library nameString getLibraryName()
Properties getProperties()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |