public class DBObjectProviderID
extends java.lang.Object
DBObjectProviderFactory
,
DBObjectProvider
Constructor and Description |
---|
DBObjectProviderID(DBObjectProvider pro)
Creates an ID for the given provider.
|
DBObjectProviderID(java.lang.String type,
java.lang.Object identifier)
Creates an ID for the given provider type and identifier.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Equals implementation compares the type and identifier and returns true
if they are the same.
|
java.lang.Object |
getIdentifier()
Gets the identifier of the DBObjectProvider.
|
java.lang.String |
getType()
Gets the type of the DBObjectProvider.
|
int |
hashCode() |
boolean |
isValid()
Tests whether this DBObjectProviderID is valid - i.e.
|
DBObjectProvider |
resolveID()
Convinience method to find or create the DBObjectProvider described by
this ID.
|
java.lang.String |
toString() |
public DBObjectProviderID(java.lang.String type, java.lang.Object identifier)
public DBObjectProviderID(DBObjectProvider pro)
public java.lang.String getType()
public java.lang.Object getIdentifier()
public boolean isValid()
public DBObjectProvider resolveID() throws DBException
DBException
- if the provider exists but cannot be created (e.g.
invalid connection details.DBObjectProviderFactory.findOrCreateProvider(DBObjectProviderID)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object