|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.cache.Cache
com.inet.report.cache.ExternalDBCache
public class ExternalDBCache
This class implements a database cache without a connection factory. This means that the connections have to be set from an external program. These methods can be use together with the cache type "External Database Cache", only.
Cache.TYPE_EXTERNAL_DATABASE| Field Summary |
|---|
| Fields inherited from class com.inet.report.cache.Cache |
|---|
TYPE_DATABASE, TYPE_EXTERNAL_DATABASE, TYPE_HARDDISK, TYPE_MEMORY |
| Method Summary | |
|---|---|
static void |
addConnection(java.sql.Connection conn)
Adds a connection to the pool for the External Database Cache. |
static void |
checkConnections(java.lang.String jndiName)
Checks whether the database pool for caching has enough connections. |
static boolean |
isConnectionNeeded()
Checks whether the External Database Cache need more connections. |
| Methods inherited from class com.inet.report.cache.Cache |
|---|
addEngine, createKey, createKey, createKey, delete, delete, exists, getCache, getEngineFactory, getFailureCause, getKey, getKey, getKey, getPageAndWait, getPageAndWait, getPageCountAndWait, getPageCountAndWait, getReports, getTotalPageSizeAndWait, getTotalPageSizeAndWait, getType, isFailedReport, isFinishWrittenToStore, isFinished, isPageLimitExceeded, isScheduleReport, isTypeSchedulerCache, lock, resetCacheTimeout, setEngineFactory, setSchedule, unlock |
| Method Detail |
|---|
public static boolean isConnectionNeeded()
throws ReportException
while(ExternalDBCache.isConnectionNeeded()){
Connection conn = myConnectionFactory();
ExternalDBCache.addConnection(conn);
}
ReportException - If the current cache type ID is not ExternalDBCacheaddConnection(java.sql.Connection),
Cache.TYPE_EXTERNAL_DATABASE
public static void addConnection(java.sql.Connection conn)
throws ReportException
conn - a new JDBC connection
ReportException - If the current cache type ID is not ExternalDBCacheisConnectionNeeded(),
Cache.TYPE_EXTERNAL_DATABASE
public static void checkConnections(java.lang.String jndiName)
throws ReportException
jndiName - the JNDI name of the datasource that the cache should use.
ReportException - If the current cache type ID is not ExternalDBCacheCache.TYPE_EXTERNAL_DATABASE
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||