001// Copyright (c) 2001 Hursh Jain (http://www.mollypages.org) 
002// The Molly framework is freely distributable under the terms of an
003// MIT-style license. For details, see the molly pages web site at:
004// http://www.mollypages.org/. Use, modify, have fun !
005
006package fc.jdbc.dbo;
007
008import java.io.*;
009import java.sql.*;
010import java.util.*;
011
012import fc.jdbc.*;
013import fc.io.*;
014import fc.util.*;
015
016/**
017The base Manager class which is extended by all generated "Mgr" classes.
018
019@author hursh jain
020*/
021public class DBOMgr
022{
023protected static Log log = Log.getDefault();
024
025/**
026Returns the logger that is used for all generated Manager classes.
027*/
028public static final Log getLog() {
029  return log;
030  }
031
032/**
033Sets the logger for all generated Manager classes.
034*/
035public static final void setLog(Log newlog) {
036  synchronized (DBOMgr.class)
037    {
038    if (newlog == null) {
039      log.warn("specified log was null, ignoring...");  
040      return;
041      }
042    log = newlog;
043    }
044  }
045  
046}