org.tentackle.db
Class DbGlobal

java.lang.Object
  extended by org.tentackle.db.DbGlobal

public class DbGlobal
extends Object

Db globals.

Author:
harald

Field Summary
static ConnectionManager connectionManager
          the default connection manager if not explicitly given for a Db
static ErrorHandler errorHandler
          the error handler
static Logger logger
          Default logger for the db-package
static Db serverDb
          If this is an application server, the server's Db should be set here to enable certain optimizations between the clients and the server.
static DbPool serverDbPool
          If this is an application server and if a DbPool is used, it must be set here.
 
Constructor Summary
DbGlobal()
           
 
Method Summary
static boolean isServer()
          Determines whether this is an application server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionManager

public static ConnectionManager connectionManager
the default connection manager if not explicitly given for a Db


serverDb

public static Db serverDb
If this is an application server, the server's Db should be set here to enable certain optimizations between the clients and the server. The default is null, i.e. client or no application server.


serverDbPool

public static DbPool serverDbPool
If this is an application server and if a DbPool is used, it must be set here.


logger

public static Logger logger
Default logger for the db-package


errorHandler

public static ErrorHandler errorHandler
the error handler

Constructor Detail

DbGlobal

public DbGlobal()
Method Detail

isServer

public static boolean isServer()
Determines whether this is an application server.

Returns:
true if this is an RMI application server


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de