KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > media > entity > MediaEntityManagerLocal


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.media.entity;
8
9 /**
10  * Local interface for MediaEntityManager.
11  */

12 public interface MediaEntityManagerLocal
13    extends javax.ejb.EJBLocalObject JavaDoc
14 {
15    /**
16     * Creates a new MediaEntity.
17     * @return the primary key of the MediaEntity created.
18     */

19    public java.lang.String JavaDoc createMediaEntity( ) throws javax.emb.MediaException, javax.ejb.CreateException JavaDoc, javax.naming.NamingException JavaDoc;
20
21    /**
22     * Updates a MediaEntity given its primary key and a DTO. <p>If a property is not set in the DTO, it will be set to <code>null</code> in the MediaEntity.
23     * @param identity primary key.
24     * @param mediaEntityDTO Data Transfer Object with the properties to update.
25     * @return the primary key of the MediaEntity updated.
26     */

27    public java.lang.String JavaDoc updateMediaEntity( java.lang.String JavaDoc identity,org.jboss.media.entity.MediaEntityDTO mediaEntityDTO ) throws javax.emb.MediaException, javax.ejb.FinderException JavaDoc, javax.naming.NamingException JavaDoc;
28
29    /**
30     * Gets a MediaEntity property given its primary key and a property name. <p>Posible property names and their types are: <p>"content": <code>java.lang.String</code><br> "location": <code>java.net.URL</code><br> "description": <code>java.lang.String</code><br> "name": <code>java.lang.String</code><br> "mimeType": <code>java.lang.String</code>
31     * @param identity primary key.
32     * @param property property name.
33     * @param value property value.
34     * @param identity primary key.
35     * @param property property name.
36     * @return the property value.
37     */

38    public java.lang.Object JavaDoc getMediaEntityProperty( java.lang.String JavaDoc identity,java.lang.String JavaDoc property ) throws javax.emb.MediaException, javax.ejb.FinderException JavaDoc, javax.naming.NamingException JavaDoc;
39
40    /**
41     * Sets a property for a MediaEntity given its primary key, a property name and a value. <p>Posible property names and their types are: <p>"content": <code>java.lang.String</code><br> "location": <code>java.net.URL</code><br> "description": <code>java.lang.String</code><br> "name": <code>java.lang.String</code><br> "mimeType": <code>java.lang.String</code>
42     * @param identity primary key.
43     * @param property property name.
44     * @param value property value.
45     */

46    public void setMediaEntityProperty( java.lang.String JavaDoc identity,java.lang.String JavaDoc property,java.lang.Object JavaDoc value ) throws javax.emb.MediaException, javax.ejb.FinderException JavaDoc, javax.naming.NamingException JavaDoc;
47
48    public void setMediaEntityContent( java.lang.String JavaDoc identity,java.io.File JavaDoc contentFile ) throws javax.emb.MediaException, javax.ejb.FinderException JavaDoc, javax.naming.NamingException JavaDoc, java.io.FileNotFoundException JavaDoc;
49
50 }
51
Popular Tags