org.salespointframework.core.data.management
Interface PersistenceMBean

All Known Implementing Classes:
Persistence

public interface PersistenceMBean

MBean which insturments the PersistenceManager

Since:
4.0
Author:
Thomas Kissinger

Method Summary
 boolean changeConsoleLoggerLevel(java.lang.String level)
          changes the logger level of PersistenceManager
 void close()
          close connection
 java.util.Map<java.lang.String,java.lang.Object> getObjectCache()
          returns the object cache
 int getObjectCacheSize()
          returns this size of getObjectCache()
 java.util.Set<java.lang.String> getTableCache()
          returns the table cache.
 int getTableCacheSize()
          returns the size of getTableCache()
 boolean isOpen()
          get connection state
 boolean isPerformanceMode()
          returns performance mode flag
 boolean open()
          open connection
 void setPerformanceMode(boolean value)
          sets the performance mode flag
 

Method Detail

getTableCache

java.util.Set<java.lang.String> getTableCache()
returns the table cache.

Returns:
table cache

getObjectCache

java.util.Map<java.lang.String,java.lang.Object> getObjectCache()
returns the object cache

Returns:
object cache

getObjectCacheSize

int getObjectCacheSize()
returns this size of getObjectCache()

Returns:
size of object cache

getTableCacheSize

int getTableCacheSize()
returns the size of getTableCache()

Returns:
table cache size

isPerformanceMode

boolean isPerformanceMode()
returns performance mode flag

Returns:
true if PersistenceManager is in performance mode

changeConsoleLoggerLevel

boolean changeConsoleLoggerLevel(java.lang.String level)
changes the logger level of PersistenceManager

Parameters:
level - new log level
Returns:
true on success

open

boolean open()
open connection

Returns:
true on success

close

void close()
close connection


isOpen

boolean isOpen()
get connection state

Returns:
true if connection is open

setPerformanceMode

void setPerformanceMode(boolean value)
sets the performance mode flag

Parameters:
value - new value