| java.lang.Object emb.sample.session.MediaSampleSessionBean
MediaSampleSessionBean | public class MediaSampleSessionBean implements SessionBean(Code) | | This is an example of Session Bean, statefull, and synchronized.
author: JOnAS team |
IS_COPY_ALLOWED_REF | final public static String IS_COPY_ALLOWED_REF(Code) | | Reference on the env entry isCopyAllowed
|
MAX_MEDIA_PER_SESSION_REF | final public static String MAX_MEDIA_PER_SESSION_REF(Code) | | Reference on the env entry maxMediaPerSession
|
copyMediaEntity | public MediaEntityLocal copyMediaEntity(Media media) throws MediaSampleException(Code) | | Create a new MediaEntity from a Media
Parameters: media - to copy MediaEntity throws: MediaSampleException - if the mediaEntity cannot be create |
ejbActivate | public void ejbActivate()(Code) | | See Also: javax.ejb.SessionBean.ejbActivate |
ejbCreate | public void ejbCreate()(Code) | | There must be one ejbCreate() method per create() method on the Home
interface, and with the same signature.
|
ejbPassivate | public void ejbPassivate()(Code) | | See Also: javax.ejb.SessionBean.ejbPassivate |
ejbRemove | public void ejbRemove()(Code) | | See Also: javax.ejb.SessionBean.ejbRemove |
getMediaFromPrimaryKey | public MediaEntityLocal getMediaFromPrimaryKey(String primaryKey) throws MediaSampleException(Code) | | Get media from its premary key
Parameters: primaryKey - the primary key of the wanted media MediaEntity throws: MediaSampleException - if the mediaEntity cannot be retrive |
getMediaFromRegistredName | public MediaEntityLocal getMediaFromRegistredName(String registeredName) throws MediaSampleException(Code) | | Get media from registered name
Parameters: registeredName - the registeredName of the wanted media MediaEntity throws: MediaSampleException - if the mediaEntity cannot be retrive |
getSessionContext | public SessionContext getSessionContext()(Code) | | getSessionContext
SessionContext |
removeDefaultMedia | public void removeDefaultMedia()(Code) | | Remove default media to reinit the database, except uploaded media
|
setSessionContext | public void setSessionContext(SessionContext ctx)(Code) | | See Also: javax.ejb.SessionBean.setSessionContext(javax.ejb.SessionContext) |
|
|