|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcreme.sql.SQLExceptionHandlerFactory
This class enables to build a SQLExceptionHandler when needed from the name of the vendor.
Constructor Summary | |
SQLExceptionHandlerFactory()
|
Method Summary | |
SQLExceptionHandler |
buildSQLExceptionHandler(java.lang.String productName)
Builds a new instance of the SQLExceptionHandler class associated to the product name. |
static SQLExceptionHandlerFactory |
getInstance()
Give access to the unique instance of the class. |
void |
registerSQLExceptionHandlerClass(java.lang.String productName,
java.lang.Class handlerClass)
Enables to associate a SQLExceptionHandler class to a product name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SQLExceptionHandlerFactory()
Method Detail |
public static SQLExceptionHandlerFactory getInstance()
public void registerSQLExceptionHandlerClass(java.lang.String productName, java.lang.Class handlerClass)
productName
- the name of the product as returned from the DatabaseMetaData.handlerClass
- the class which instances can handle errors from the product.public SQLExceptionHandler buildSQLExceptionHandler(java.lang.String productName)
productName
- the name of the product as returned from the DatabaseMetaData.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |