|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.javalid.external.db.extension.JavalidExtensionDatabaseImpl
public class JavalidExtensionDatabaseImpl
The JaValid Database extension implementation. This class is responsible for the database extension.
| Field Summary | |
|---|---|
static java.lang.String |
CONFIG_FILE_NAME
|
| Constructor Summary | |
|---|---|
JavalidExtensionDatabaseImpl()
|
|
| Method Summary | |
|---|---|
void |
afterValidation(JvConfigurationWrapper wrapper)
Once validation is done, this method is called and allows an extension to perform cleanup (if necessary). |
void |
beforeValidation(JvConfigurationWrapper wrapper)
Before a the validation starts this methid is called, it can do some initialization or other things that might be needed. |
void |
configurationLoadingComplete(JvConfigurationWrapper wrapper)
This method is called by the configuration loader as soon as it is done loading everything needed. |
void |
destroy()
Called once the the AnnotationValidator's destroy() method has been called. |
java.sql.Connection |
getConnection(java.lang.String dsRef)
Internally this method works as follows: First checks the DatabaseState, to find out if it can find a shared connection using given dsRef. |
java.lang.String |
getQuery(java.lang.String refDs,
java.lang.String refQuery)
|
void |
init(java.util.Map<java.lang.String,java.lang.String> parameters,
JvConfigurationWrapper wrapper)
This method is called only once, as soon as the extension is created (after its constructor has been called) and provides you with the parameters you might have passed to this extension. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONFIG_FILE_NAME
| Constructor Detail |
|---|
public JavalidExtensionDatabaseImpl()
| Method Detail |
|---|
public void init(java.util.Map<java.lang.String,java.lang.String> parameters,
JvConfigurationWrapper wrapper)
JavalidExtension
init in interface JavalidExtensionparameters - Map with parameters passed to this extension (keys are the name).wrapper - The config wrapperpublic void configurationLoadingComplete(JvConfigurationWrapper wrapper)
JavalidExtensionIf you need parameters from the config file, save them in the init() method, which is called on creation of this extension.
configurationLoadingComplete in interface JavalidExtensionwrapper - The config wrapperpublic void beforeValidation(JvConfigurationWrapper wrapper)
JavalidExtension
beforeValidation in interface JavalidExtensionwrapper - The config wrapperpublic void afterValidation(JvConfigurationWrapper wrapper)
JavalidExtension
afterValidation in interface JavalidExtensionwrapper - The config wrapperpublic void destroy()
JavalidExtension
destroy in interface JavalidExtensionpublic java.sql.Connection getConnection(java.lang.String dsRef)
public java.lang.String getQuery(java.lang.String refDs,
java.lang.String refQuery)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||