Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.jdeveloper.db
Class StoreProvider

java.lang.Object
  extended by oracle.jdeveloper.db.StoreProvider


public abstract class StoreProvider
extends java.lang.Object

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>
 
Since:
11

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

StoreProvider

public StoreProvider()

Method Detail

listStores

public abstract java.util.Collection<java.lang.String> listStores()

getStore

public abstract DatabaseConnections getStore(java.lang.String storeName)

getShortLabel

public java.lang.String getShortLabel(java.lang.String storeName)

getIcon

public javax.swing.Icon getIcon(java.lang.String storeName)

getToolTipText

public java.lang.String getToolTipText(java.lang.String storeName)

getCurrentStore

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. For any given Context, only one provider should be able to return a store.

getCurrentConnection

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).

storeAdded

protected final void storeAdded(java.lang.String storeName)

storeRemoved

@Deprecated
protected final void storeRemoved(java.lang.String storeName)
Deprecated. use storeRemoved(String,DatabaseConnections)

storeRemoved

protected final void storeRemoved(java.lang.String storeName,
                                  DatabaseConnections store)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.