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
006 package fc.jdbc.dbo;
007
008 import java.io.*;
009 import java.sql.*;
010 import java.util.*;
011
012 import fc.jdbc.*;
013 import fc.io.*;
014 import fc.util.*;
015
016 /**
017 The base Manager class which is extended by all generated "Mgr" classes.
018
019 @author hursh jain
020 */
021 public class DBOMgr
022 {
023 protected static Log log = Log.getDefault();
024
025 /**
026 Returns the logger that is used for all generated Manager classes.
027 */
028 public static final Log getLog() {
029 return log;
030 }
031
032 /**
033 Sets the logger for all generated Manager classes.
034 */
035 public 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 }