Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 58   Methods: 6
NCLOC: 35   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
PojoReference.java - 100% 100% 100%
coverage
 1    /*
 2    * JBoss, the OpenSource J2EE webOS
 3    *
 4    * Distributable under LGPL license.
 5    * See terms of license at gnu.org.
 6    */
 7    package org.jboss.cache.pojo.impl;
 8   
 9    import org.jboss.cache.Fqn;
 10   
 11    import java.io.Serializable;
 12   
 13    /**
 14    * POJO reference that contains the information to point to the real POJO storage.
 15    *
 16    * @author Ben Wang
 17    */
 18    public class PojoReference implements Serializable // Externalizable is no more efficient
 19    {
 20    // protected static Log log=LogFactory.getLog(PojoReference.class.getLastElementAsString());
 21    public static final String KEY = InternalConstant.POJOCACHE_KEY_PREFIX + "PojoReference";
 22    static final long serialVersionUID = 6492134565825613209L;
 23    // If not null, it signifies that this is a reference that points to this fqn.
 24    // Note that this will get replicated.
 25    private Fqn internalFqn_ = null;
 26    private Class clazz_ = null;
 27   
 28  7630 public PojoReference()
 29    {
 30    }
 31   
 32  7630 public void setFqn(Fqn fqn)
 33    {
 34  7630 internalFqn_ = fqn;
 35    }
 36   
 37  17536 public Fqn getFqn()
 38    {
 39  17536 return internalFqn_;
 40    }
 41   
 42  7630 public void setPojoClass(Class clazz)
 43    {
 44  7630 clazz_ = clazz;
 45    }
 46   
 47  6316 public Class getPojoClass()
 48    {
 49  6316 return clazz_;
 50    }
 51   
 52  135 public String toString()
 53    {
 54  135 StringBuffer buf = new StringBuffer();
 55  135 buf.append("Internal Fqn --> ").append(internalFqn_);
 56  135 return buf.toString();
 57    }
 58    }