public class ExtrasRegistration extends Object
DatabaseExtras
Modifier and Type | Class and Description |
---|---|
static class |
ExtrasRegistration.Item
Contains registration information for a subclass of DatabaseExtras
|
Modifier and Type | Field and Description |
---|---|
protected static Hashtable<String,ExtrasRegistration.Item> |
registrationList
This table contains the registration information for the various DatabaseExtras objects.
|
Constructor and Description |
---|
ExtrasRegistration() |
Modifier and Type | Method and Description |
---|---|
static Collection<ExtrasRegistration.Item> |
getContents()
Return the entire contents of the registration list.
|
static DatabaseExtras |
getDatabaseExtras(String code)
Return the DatabaseExtras object that is appropriate for a specific type
of database.
|
static String[] |
getNames()
Returns an array containing the codes for the registered databases.
|
static void |
main(String[] args)
Test driver
|
static void |
register(DatabaseExtras object)
This method is called by the DatabaseExtras objects when they are instantiated.
|
protected static Hashtable<String,ExtrasRegistration.Item> registrationList
public ExtrasRegistration()
public static void register(DatabaseExtras object) throws ClassNotFoundException, InstantiationException, IllegalAccessException, NotSupportedException
object
- DatabaseExtras object to be registeredClassNotFoundException
InstantiationException
IllegalAccessException
NotSupportedException
DatabaseExtras
public static Collection<ExtrasRegistration.Item> getContents()
Primarily for diagnostics.
public static String[] getNames()
public static DatabaseExtras getDatabaseExtras(String code)
code
- The code identifying the DBMS