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 bradleyross.library.database.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(bradleyross.library.database.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(bradleyross.library.database.DatabaseExtras object) throws ClassNotFoundException, InstantiationException, IllegalAccessException, NotSupportedException
object - DatabaseExtras object to be registeredClassNotFoundException - if class not foundInstantiationException - if unable to create objectIllegalAccessException - if access not allowedNotSupportedException - if not supportedDatabaseExtraspublic static Collection<ExtrasRegistration.Item> getContents()
Primarily for diagnostics.
public static String[] getNames()
public static bradleyross.library.database.DatabaseExtras getDatabaseExtras(String code)
code - The code identifying the DBMSCopyright © 2017. All rights reserved.