org.openrdf.elmo.sesame
Class SesameEntitySupport

java.lang.Object
  extended by org.openrdf.elmo.sesame.SesameEntitySupport
All Implemented Interfaces:
Entity, Refreshable, SesameEntity, SesameManagerAware

public class SesameEntitySupport
extends Object
implements Entity, SesameEntity, SesameManagerAware

Stores the resource and manager for a bean and implements equals, hashCode, and toString.

Author:
James Leigh

Constructor Summary
SesameEntitySupport(Entity instance)
           
 
Method Summary
 boolean equals(Object obj)
           
 ElmoManager getElmoManager()
          The ElmoManager that is managing this Entity.
 QName getQName()
          Extract the qualified name of this bean, or null if anonymous.
 SesameManager getSesameManager()
           
 Resource getSesameResource()
           
 int hashCode()
           
 void initSesameManager(SesameManager manager)
           
 void initSesameResource(Resource resource)
           
 void refresh()
          Flushes the local state of the entity forcing it to refresh.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SesameEntitySupport

public SesameEntitySupport(Entity instance)
Method Detail

getElmoManager

public ElmoManager getElmoManager()
Description copied from interface: Entity
The ElmoManager that is managing this Entity.

Specified by:
getElmoManager in interface Entity
Returns:
the ElmoManager

getSesameManager

public SesameManager getSesameManager()
Specified by:
getSesameManager in interface SesameEntity

initSesameManager

public void initSesameManager(SesameManager manager)
Specified by:
initSesameManager in interface SesameManagerAware

getSesameResource

public Resource getSesameResource()
Specified by:
getSesameResource in interface SesameEntity

initSesameResource

public void initSesameResource(Resource resource)
Specified by:
initSesameResource in interface SesameManagerAware

getQName

public QName getQName()
Description copied from interface: Entity
Extract the qualified name of this bean, or null if anonymous.

Specified by:
getQName in interface Entity
Returns:
Qualified name of the bean or null.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

refresh

public void refresh()
Description copied from interface: Refreshable
Flushes the local state of the entity forcing it to refresh.

Specified by:
refresh in interface Refreshable


Copyright © 2004-2008 Aduna. All Rights Reserved.