FileDocCategorySizeDatePackage
DbHandler.javaAPI DocGlassfish v2 API3232Fri May 04 22:24:18 BST 2007com.sun.enterprise.admin.monitor.callflow

DbHandler

public class DbHandler extends Object implements Handler
author
Harpreet Singh

Fields Summary
String
name
private DbAccessObject
db
private static final Logger
logger
boolean
traceOn
Constructors Summary
public DbHandler(DbAccessObject db)
Creates a new instance of DbHandler

    
               
       
        this.db = db;
        boolean traceOn = TraceOnHelper.isTraceOn();
    
Methods Summary
public java.lang.StringgetName()

        return name;
    
public voidhandle(TransferObject[] to)

        if (traceOn){
            for (int i=0; i<to.length; i++){
                logger.log(Level.INFO, "DBHandler.handle :"+
                        to[i].getClass().getName());
                break;
            }
        }
        db.insert(to);
    
public voidsetName(java.lang.String name)

        this.name = name;