org.apache.ojb.broker.cache
Interface CacheEntry

All Superinterfaces:
java.io.Serializable

public interface CacheEntry
extends java.io.Serializable

Encapsulates buffered objects.

Version:
$Id: CacheEntry.java,v 1.1 2004/06/04 16:02:44 arminw Exp $
Author:
Armin Waibel

Method Summary
 long getLifetime()
          Returns the lifetime of the cached object.
 java.lang.Object getObject()
          Returns the cached object or null if no longer available.
 java.lang.Class getObjectInstanceClass()
          Returns the class object of the cached object.
 

Method Detail

getObjectInstanceClass

public java.lang.Class getObjectInstanceClass()
Returns the class object of the cached object. This is independend from the Identity.getObjectsRealClass() and Identity.getObjectsTopLevelClass() setting in Identity, because real class setting in class Identity could be null or an interface or abstract class if no more information was available when Identity was created.


getLifetime

public long getLifetime()
Returns the lifetime of the cached object.


getObject

public java.lang.Object getObject()
Returns the cached object or null if no longer available.



(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.0, 2004-06-25