org.eclipse.jpt.db
Interface DatabaseFinder

All Known Implementing Classes:
DatabaseFinder.Default, DatabaseFinder.Simple

public interface DatabaseFinder

This interface allows clients of the Dali db package to plug in a custom strategy for comparing an identifier to the names of a collection of database objects. Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves. This interface is not intended to be implemented by clients.


Nested Class Summary
static class DatabaseFinder.Default
          This finder uses the passed in callback to search the list of database objects.
static interface DatabaseFinder.DefaultCallback
          The platform-provided finder is passed a "default" callback that can be used if appropriate.
static class DatabaseFinder.Simple
          This finder searches for an exact match.
 
Method Summary
<T extends DatabaseObject>
T
selectDatabaseObjectForIdentifier(T[] databaseObjects, java.lang.String identifier, DatabaseFinder.DefaultCallback defaultCallback)
          Select and return from the specified list of database objects the database object identified by the specified identifier.
 

Method Detail

selectDatabaseObjectForIdentifier

<T extends DatabaseObject> T selectDatabaseObjectForIdentifier(T[] databaseObjects,
                                                               java.lang.String identifier,
                                                               DatabaseFinder.DefaultCallback defaultCallback)
Select and return from the specified list of database objects the database object identified by the specified identifier.