|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.voruta.Db
This class is the most important in Voruta API, It is factory for data access objects
Field Summary | |
static java.lang.String |
CACHE_TAG_NAME
|
static java.lang.String |
FLUSH_TAG_NAME
|
static java.lang.String |
HANDLER_TAG_NAME
|
static java.lang.String |
LANGUAGE_TAG_NAME
|
static java.lang.String |
QUERY_TAG_NAME
|
static java.lang.String |
UPDATE_TAG_NAME
|
static java.lang.String |
VORUTA_AUTOTRACE
|
static java.lang.String |
VORUTA_EXECUTE_PROPERTY
|
static java.lang.String |
VORUTA_EXPLAIN_PLAN_PREFIX_PROPERTY
|
static java.lang.String |
VORUTA_RELOAD_PROPERTY
|
Method Summary | |
static void |
addInterceptor(ProcedureInterceptor i)
|
static void |
clearCache()
Clears cache |
static void |
clearCache(java.lang.String name)
Clears cache |
static void |
close()
Closes current connection |
static void |
close(java.lang.String name)
Closes current connection |
static void |
commit()
commit current connection |
static void |
commit(java.lang.String name)
commit current connection |
static void |
explain(java.lang.Class cls)
|
static void |
explain(java.lang.String connectionName,
java.lang.Class cls)
|
static void |
explain(java.lang.String connectionName,
java.lang.reflect.Method m)
Explains query plan for query declared by data access method |
static java.lang.Object |
getProcedures(java.lang.Class cls)
generates data access class implementation and returns instance with current connetion |
static java.lang.Object |
getProcedures(java.lang.Class cls,
java.lang.String connection)
generates data access class implementation and returns instance with user provided connection and interceptor |
static java.lang.String |
getProperty(java.lang.String name)
returns global propery by name |
static java.lang.String |
getProperty(java.lang.String name,
java.lang.String def)
|
static java.util.Properties |
getProperties()
method to read global properties |
static void |
init(ConnectionFactory factory,
java.util.Properties properties)
Configures voruta |
static void |
registerHandlerFactory(java.lang.String name,
HandlerFactory factory)
Registers custon handler |
static void |
registerLanguage(java.lang.String name,
net.sf.voruta.LanguageFactory factory)
registers custom lamguage handler |
static java.util.Map |
registredClasses()
|
static void |
removeInterceptor(ProcedureInterceptor i)
|
static void |
rollback()
rollback current connection |
static void |
rollback(java.lang.String name)
rollback current connection |
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 VORUTA_EXPLAIN_PLAN_PREFIX_PROPERTY
public static final java.lang.String VORUTA_AUTOTRACE
public static final java.lang.String VORUTA_EXECUTE_PROPERTY
public static final java.lang.String VORUTA_RELOAD_PROPERTY
public static final java.lang.String LANGUAGE_TAG_NAME
public static final java.lang.String UPDATE_TAG_NAME
public static final java.lang.String QUERY_TAG_NAME
public static final java.lang.String CACHE_TAG_NAME
public static final java.lang.String FLUSH_TAG_NAME
public static final java.lang.String HANDLER_TAG_NAME
Method Detail |
public static void addInterceptor(ProcedureInterceptor i)
public static void removeInterceptor(ProcedureInterceptor i)
public static void init(ConnectionFactory factory, java.util.Properties properties)
factory
- Connection factory implementationproperties
- Properties to configure Vorutapublic static java.util.Properties getProperties()
public static java.lang.String getProperty(java.lang.String name)
name
- property namepublic static java.lang.String getProperty(java.lang.String name, java.lang.String def)
public static void registerLanguage(java.lang.String name, net.sf.voruta.LanguageFactory factory)
name
- language idfactory
- language factory implementationpublic static void registerHandlerFactory(java.lang.String name, HandlerFactory factory)
name
- tag idfactory
- handler factory implementationpublic static void clearCache(java.lang.String name)
name
- cache region namepublic static void clearCache()
public static void commit()
public static void commit(java.lang.String name)
name
- Configuration namepublic static void rollback()
public static void rollback(java.lang.String name)
name
- Configuration namepublic static void close()
public static void close(java.lang.String name)
name
- Configuration namepublic static java.lang.Object getProcedures(java.lang.Class cls)
cls
- data access class/interfacepublic static java.lang.Object getProcedures(java.lang.Class cls, java.lang.String connection)
cls
- data access class/interfaceconnection
- JDBC connectioni
- interceptorpublic static java.util.Map registredClasses()
public static void explain(java.lang.String connectionName, java.lang.reflect.Method m) throws java.lang.Exception
public static void explain(java.lang.String connectionName, java.lang.Class cls) throws java.lang.Exception
public static void explain(java.lang.Class cls) throws java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |