|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ail.core.Component
com.ail.core.EJBComponent
com.ail.core.persistence.PersistenceServerBean
public class PersistenceServerBean
EJB Wrapper for the persistence server.
| Constructor Summary | |
|---|---|
PersistenceServerBean()
|
|
| Method Summary | |
|---|---|
CreateArg |
createCommand(CreateArg arg)
Service wrapper method for the CreateCommand service. |
DeleteArg |
deleteCommand(DeleteArg arg)
Service wrapper method for the DeleteCommand service. |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
Configuration |
getConfiguration()
Default component implementation of the getConfiguration method. |
java.lang.String |
getConfigurationNamespace()
Default component implementation of the getConfigurationNamespace method. |
Core |
getCore()
Fetch the entry point's instance of the core. |
javax.ejb.SessionContext |
getSessionContext()
Returns the context passed to the EJB's setSessionContext method. |
Version |
getVersion()
Return the version details of this component. |
VersionEffectiveDate |
getVersionEffectiveDate()
A default component implemention returning the time now. |
java.lang.String |
invokeServiceXML(java.lang.String xml)
Expose services of this EJB via XML. |
LoadArg |
loadCommand(LoadArg arg)
Service wrapper method for the LoadCommand service. |
QueryArg |
queryCommand(QueryArg arg)
Service wrapper method for the QueryCommand service. |
void |
resetConfiguration()
Default component implementation of the resetConfiguration method. |
void |
setConfiguration(Configuration config)
Default component implementation of the setConfiguration method. |
void |
setSessionContext(javax.ejb.SessionContext context)
|
UpdateArg |
updateCommand(UpdateArg arg)
Service wrapper method for the UpdateCommand service. |
| Methods inherited from class com.ail.core.EJBComponent |
|---|
getSecurityPrincipal |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistenceServerBean()
| Method Detail |
|---|
public void setSessionContext(javax.ejb.SessionContext context)
setSessionContext in interface javax.ejb.SessionBeanpublic javax.ejb.SessionContext getSessionContext()
EJBComponent
getSessionContext in class EJBComponentpublic void ejbActivate()
ejbActivate in interface javax.ejb.SessionBeanpublic void ejbPassivate()
ejbPassivate in interface javax.ejb.SessionBeanpublic void ejbRemove()
ejbRemove in interface javax.ejb.SessionBean
public void ejbCreate()
throws javax.ejb.CreateException
javax.ejb.CreateExceptionpublic java.lang.String invokeServiceXML(java.lang.String xml)
The methods are invoked on the context's local interface if possible (if one exists). If no local interface is found then the remote interface is used instead. Invoking methods via the local/remote interface means that the deployment settings for security and transacts will be honoured.
xml - XML argument to be passed to the service.
public Core getCore()
Component
getCore in class Componentpublic VersionEffectiveDate getVersionEffectiveDate()
Component
getVersionEffectiveDate in interface CoreUsergetVersionEffectiveDate in class Componentpublic void setConfiguration(Configuration config)
Component
setConfiguration in interface ConfigurationOwnersetConfiguration in class Componentconfig - The configuration to save.public Configuration getConfiguration()
Component
getConfiguration in interface ConfigurationOwnergetConfiguration in class Componentpublic java.lang.String getConfigurationNamespace()
Component
getConfigurationNamespace in interface CoreUsergetConfigurationNamespace in class Componentpublic void resetConfiguration()
ComponentNote: If the component's name ends with 'Bean' - as EJB based ones do, the 'Bean' postfix is removed (RedBean -> Red).
resetConfiguration in interface ConfigurationOwnerresetConfiguration in class Componentpublic Version getVersion()
Component
getVersion in class Component
public CreateArg createCommand(CreateArg arg)
throws BaseServerException
arg - Argument to pass to the service
BaseServiceException - In response to exceptions thrown by the service.
BaseServerException
public UpdateArg updateCommand(UpdateArg arg)
throws BaseServerException
arg - Argument to pass to the service
BaseServiceException - In response to exceptions thrown by the service.
BaseServerException
public LoadArg loadCommand(LoadArg arg)
throws BaseServerException
arg - Argument to pass to the service
BaseServiceException - In response to exceptions thrown by the service.
BaseServerException
public QueryArg queryCommand(QueryArg arg)
throws BaseServerException
arg - Argument to pass to the service
BaseServiceException - In response to exceptions thrown by the service.
BaseServerException
public DeleteArg deleteCommand(DeleteArg arg)
throws BaseServerException
arg - Argument to pass to the service
BaseServiceException - In response to exceptions thrown by the service.
BaseServerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||