edu.sc.seis.fissuresUtil.cache
Class CacheEvent

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.cache.ProxyEventAccessOperations
      extended by edu.sc.seis.fissuresUtil.cache.CacheEvent
All Implemented Interfaces:
AuditSystemAccess, EventAccessOperations, EventDCOperations, EventMgrOperations, Serializable, IDLEntity
Direct Known Subclasses:
MockEventAccess

public class CacheEvent
extends ProxyEventAccessOperations

CacheEvent.java Created: Mon Jan 8 16:33:52 2001

Version:
Author:
Philip Crotwell
See Also:
Serialized Form

Field Summary
protected  EventAttr attr
           
protected  Origin[] origins
           
protected  Origin preferred
           
 
Fields inherited from class edu.sc.seis.fissuresUtil.cache.ProxyEventAccessOperations
event
 
Constructor Summary
CacheEvent(EventAccessOperations event)
           
CacheEvent(EventAttr attr, Origin preferred)
          Initializes the origins array to be just the single prefferred origin.
CacheEvent(EventAttr attr, Origin[] origins, Origin preferred)
           
 
Method Summary
 EventAttr get_attributes()
           
 Origin get_origin(String the_origin)
           
 Origin[] get_origins()
           
 Origin get_preferred_origin()
           
 int getDbId()
           
 boolean hasDbId()
           
 boolean isLoaded()
           
 void setDbId(int id)
           
 
Methods inherited from class edu.sc.seis.fissuresUtil.cache.ProxyEventAccessOperations
a_channel_finder, a_factory, a_finder, a_writeable, close, equals, get_audit_trail_for_origin, get_audit_trail, get_locators, getCorbaObject, getEventAccess, getOrigin, getWrappedEventAccess, getWrappedEventAccess, hasCorbaObject, hashCode, parm_svc, reset, setEventAccess, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

attr

protected EventAttr attr

origins

protected Origin[] origins

preferred

protected Origin preferred
Constructor Detail

CacheEvent

public CacheEvent(EventAttr attr,
                  Origin preferred)
Initializes the origins array to be just the single prefferred origin.


CacheEvent

public CacheEvent(EventAttr attr,
                  Origin[] origins,
                  Origin preferred)

CacheEvent

public CacheEvent(EventAccessOperations event)
Method Detail

get_attributes

public EventAttr get_attributes()
Specified by:
get_attributes in interface EventAccessOperations
Overrides:
get_attributes in class ProxyEventAccessOperations

get_origins

public Origin[] get_origins()
Specified by:
get_origins in interface EventAccessOperations
Overrides:
get_origins in class ProxyEventAccessOperations

get_origin

public Origin get_origin(String the_origin)
                  throws OriginNotFound
Specified by:
get_origin in interface EventAccessOperations
Overrides:
get_origin in class ProxyEventAccessOperations
Throws:
OriginNotFound

get_preferred_origin

public Origin get_preferred_origin()
                            throws NoPreferredOrigin
Specified by:
get_preferred_origin in interface EventAccessOperations
Overrides:
get_preferred_origin in class ProxyEventAccessOperations
Throws:
NoPreferredOrigin

isLoaded

public boolean isLoaded()
Returns:
true if both the attributes and the preferred origin are cached

hasDbId

public boolean hasDbId()

getDbId

public int getDbId()

setDbId

public void setDbId(int id)


Copyright © 2002-2007 Seismology at the University of South Carolina. All Rights Reserved.