|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.connectivity.drivers.DriverManager
public class DriverManager
This class provides a management-level interface for drivers.
Method Summary | |
---|---|
void |
addDriverInstance(DriverInstance di)
|
void |
addDriverInstance(IPropertySet pset)
Adds a new driver instance to the Drivers file |
IPropertySet |
createDefaultInstance(java.lang.String id)
Creates a default instance of the driver. |
DriverInstance |
createNewDriverInstance(java.lang.String templateID,
java.lang.String name,
java.lang.String jarList)
Create a new DriverInstance based on the incoming templateID, driver name, and jar list. |
static void |
debug(java.lang.String msg)
|
DriverInstance[] |
getAllDriverInstances()
Returns an array of all driver instances |
DriverInstance |
getDriverInstanceByID(java.lang.String id)
Retrieve a DriverInstance by Id |
DriverInstance |
getDriverInstanceByName(java.lang.String name)
Retrieve a DriverInstance by name. |
DriverInstance[] |
getDriverInstancesByCategory(java.lang.String categoryid)
|
DriverInstance[] |
getDriverInstancesByTemplate(java.lang.String templateid)
|
java.lang.String |
getFullJarList()
Return a comma-delimited list of all jars for all drivers. |
java.lang.String[] |
getFullJarListAsArray()
Return an array of all jars for all drivers. |
static DriverManager |
getInstance()
Retrieve an instance of the DriverManager |
DriverInstance[] |
getValidDriverInstances()
Returns an array of valid driver instances |
boolean |
removeDriverInstance(java.lang.String id)
Removes a driver instance based on the id. |
void |
resetDefaultInstances()
Creates any default driver template instances that need to be created. |
java.lang.String |
updatePluginJarList(TemplateDescriptor template)
Updates the jar list if it contains any [PLUGIN] tags, replacing them with the actual path referenced. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DriverManager getInstance()
public DriverInstance getDriverInstanceByID(java.lang.String id)
id
- ID of the driver
public DriverInstance[] getDriverInstancesByCategory(java.lang.String categoryid)
public DriverInstance[] getDriverInstancesByTemplate(java.lang.String templateid)
public DriverInstance getDriverInstanceByName(java.lang.String name)
name
- Name of the driver
public java.lang.String getFullJarList()
public java.lang.String[] getFullJarListAsArray()
public DriverInstance[] getValidDriverInstances()
public DriverInstance[] getAllDriverInstances()
public DriverInstance createNewDriverInstance(java.lang.String templateID, java.lang.String name, java.lang.String jarList)
templateID
- String ID of the templatename
- String name to give the driverjarList
- String jar list to give the driver
public boolean removeDriverInstance(java.lang.String id)
id
- String ID of the driver instance
public void addDriverInstance(DriverInstance di)
public void addDriverInstance(IPropertySet pset)
pset
- IPropertySetpublic void resetDefaultInstances()
public IPropertySet createDefaultInstance(java.lang.String id)
id
- String ID of driver
public java.lang.String updatePluginJarList(TemplateDescriptor template)
template
- TemplateDescriptor
public static void debug(java.lang.String msg)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |