Expresso 5-6

com.jcorporate.expresso.core.dataobjects
Interface ContextNested

All Known Subinterfaces:
DataObject
All Known Implementing Classes:
BaseDataObject, JoinedDataObject, SynchronizedDataObject, User

public interface ContextNested

Context nested represents any object that can be retrieved or set to any specific data context. The classic example of this is the DBObject where we call setDataContext() with every instantiation. Other examples include c.j.e.core.security.User

Since:
Expresso 5.1
Author:
Michael Rimov

Method Summary
 String getDataContext()
          Retrieve the data context for this particular object implementation
 void setDataContext(String newContext)
          Sets the data context for this particular object implementation.
 

Method Detail

setDataContext

public void setDataContext(String newContext)
Sets the data context for this particular object implementation.

Parameters:
newContext - the new Data context.
Throws:
IllegalArgumentException - if the data context is null.

getDataContext

public String getDataContext()
Retrieve the data context for this particular object implementation

Returns:
java.lang.String. Should never be null.

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.