|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jdeveloper.db.StoreProvider
public abstract class StoreProvider
Class for store providers to extend. All store names must be unique to the store provider - otherwise duplicate store names will appear in a list and a getStore may not return the expected store. It is up to the writer of the StoreProvider to ensure that their store names are unique to them.
StoreProvider implementations are registered via the following extension.xml hook:
<database-connection-hook> <store-providers> <store-provider>com.example.db.MyStoreProvider</store-provider> </store-providers> </database-connection-hook>
Constructor Summary | |
---|---|
StoreProvider() |
Method Summary | |
---|---|
protected java.lang.String |
getCurrentConnection(Context ideContext) If getCurrentStore(oracle.ide.Context) returns a value then this method returns the current connection in the store (if there is a current connection). |
protected java.lang.String |
getCurrentStore(Context ideContext) If the current Context contains a store that this provider is responsible for then calling this method should return the store name. |
javax.swing.Icon |
getIcon(java.lang.String storeName) |
java.lang.String |
getShortLabel(java.lang.String storeName) |
abstract DatabaseConnections |
getStore(java.lang.String storeName) |
java.lang.String |
getToolTipText(java.lang.String storeName) |
abstract java.util.Collection<java.lang.String> |
listStores() |
protected void |
storeAdded(java.lang.String storeName) |
protected void |
storeRemoved(java.lang.String storeName) Deprecated. use storeRemoved(String,DatabaseConnections) |
protected void |
storeRemoved(java.lang.String storeName, DatabaseConnections store) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoreProvider()
Method Detail |
---|
public abstract java.util.Collection<java.lang.String> listStores()
public abstract DatabaseConnections getStore(java.lang.String storeName)
public java.lang.String getShortLabel(java.lang.String storeName)
public javax.swing.Icon getIcon(java.lang.String storeName)
public java.lang.String getToolTipText(java.lang.String storeName)
protected java.lang.String getCurrentStore(Context ideContext)
protected java.lang.String getCurrentConnection(Context ideContext)
getCurrentStore(oracle.ide.Context)
returns a value then this method returns the current connection in the store (if there is a current connection).protected final void storeAdded(java.lang.String storeName)
@Deprecated
protected final void storeRemoved(java.lang.String storeName)
storeRemoved(String,DatabaseConnections)
protected final void storeRemoved(java.lang.String storeName, DatabaseConnections store)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |