org.opencrx.kernel.document1.jdo2
Class MediaContent

java.lang.Object
  extended by org.oasisopen.jdo2.Identifiable
      extended by org.w3c.jdo2.AbstractObject
          extended by org.opencrx.kernel.document1.jdo2.DocumentRevision
              extended by org.opencrx.kernel.document1.jdo2.MediaContent
All Implemented Interfaces:
Serializable, Auditee, Indexed, SecureObject, DocumentRevision, Media, MediaContent, org.openmdx.base.cci2.BasicObject, org.openmdx.base.cci2.ContextCapable, org.openmdx.base.cci2.ExtentCapable, org.openmdx.compatibility.view1.cci2.ViewCapable

public class MediaContent
extends DocumentRevision
implements MediaContent

Class MediaContent

See Also:
Serialized Form

Nested Class Summary
static class MediaContent.Slice
           
 
Nested classes/interfaces inherited from class org.opencrx.kernel.document1.jdo2.DocumentRevision
DocumentRevision.Identity
 
Nested classes/interfaces inherited from class org.w3c.jdo2.AbstractObject
org.w3c.jdo2.AbstractObject.BLOB, org.w3c.jdo2.AbstractObject.CLOB, org.w3c.jdo2.AbstractObject.EmbeddedList<E>, org.w3c.jdo2.AbstractObject.EmbeddedSet<E>
 
Nested classes/interfaces inherited from interface org.opencrx.kernel.document1.cci2.DocumentRevision
DocumentRevision.Identity
 
Field Summary
static List<String> CLASS
          Define the model class org::opencrx::kernel::document1::MediaContent
 
Fields inherited from class org.opencrx.kernel.document1.jdo2.DocumentRevision
BASE_CLASS
 
Constructor Summary
MediaContent()
           
 
Method Summary
 BinaryLargeObject getContent()
          Retrieves a binary large object value for the attribute content.
 Long getContentLength()
           
 String getContentMimeType()
           
 String getContentName()
           
 String getDescription()
           
static DocumentRevision.Identity newIdentity(Document.Identity document, boolean idIsPersistent, String id)
           
protected  org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
           
protected  List<String> openmdxjdoGetClass()
          Retrieve the model class
protected  int openmdxjdoGetSize(int field)
           
protected  void openmdxjdoSetSize(int field, int size)
           
 void setContent(BinaryLargeObject content)
          Sets a new binary value for the attribute content
 void setContentMimeType(String contentMimeType)
          Sets a new value for the attribute contentMimeType.
 void setContentName(String contentName)
          Sets a new value for the attribute contentName.
 void setDescription(String description)
          Sets a new value for the attribute description.
 
Methods inherited from class org.opencrx.kernel.document1.jdo2.DocumentRevision
addOwningGroup, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getAudit, getCreatedAt, getCreatedBy, getIdentity, getIndexEntry, getModifiedAt, getModifiedBy, getOwner, getOwningGroup, getOwningUser, getView, openmdxjdoGetObjectId, openmdxjdoGetObjectsByParent, openmdxjdoGetSlices, removeAllOwningGroup, removeOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setDocument, setDocument, setOwningUser, setOwningUser, updateIndex
 
Methods inherited from class org.w3c.jdo2.AbstractObject
openmdxjdoClassName, openmdxjdoGetIdentityBuilder, openmdxjdoGetList, openmdxjdoGetObjectsByParent, openmdxjdoGetSet, openmdxjdoGetSparseArray, openmdxjdoNewSlice, openmdxjdoSetArray, openmdxjdoSetCollection, openmdxjdoToArray, openmdxjdoToArray, openmdxjdoValidateElement
 
Methods inherited from class org.oasisopen.jdo2.Identifiable
openmdxjdoGetIdentity, openmdxjdoGetIdentity, openmdxjdoGetObject, openmdxjdoGetObjectById, openmdxjdoGetObjectId, openmdxjdoGetObjectSet, openmdxjdoNewObjectId, openmdxjdoNewObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opencrx.kernel.document1.cci2.DocumentRevision
setDocument, setDocument
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Auditee
getAudit
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Indexed
getIndexEntry, updateIndex
 
Methods inherited from interface org.opencrx.kernel.base.cci2.SecureObject
addOwningGroup, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getOwner, getOwningGroup, getOwningUser, removeAllOwningGroup, removeOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setOwningUser, setOwningUser
 
Methods inherited from interface org.openmdx.base.cci2.BasicObject
getCreatedAt, getCreatedBy, getModifiedAt, getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable
getView
 

Field Detail

CLASS

public static final List<String> CLASS
Define the model class org::opencrx::kernel::document1::MediaContent

Constructor Detail

MediaContent

public MediaContent()
Method Detail

getContentMimeType

public final String getContentMimeType()
Specified by:
getContentMimeType in interface Media
Returns:
The possibly null value for attribute contentMimeType.

setContentMimeType

public void setContentMimeType(String contentMimeType)
Sets a new value for the attribute contentMimeType.

Specified by:
setContentMimeType in interface Media
Parameters:
contentMimeType - The possibly null new value for attribute contentMimeType.

getDescription

public final String getDescription()
Specified by:
getDescription in interface Media
Returns:
The possibly null value for attribute description.

setDescription

public void setDescription(String description)
Sets a new value for the attribute description.

Specified by:
setDescription in interface Media
Parameters:
description - The possibly null new value for attribute description.

getContentLength

public final Long getContentLength()
Specified by:
getContentLength in interface Media
Returns:
The possibly null value for attribute contentLength.

getContentName

public final String getContentName()
Specified by:
getContentName in interface Media
Returns:
The possibly null value for attribute contentName.

setContentName

public void setContentName(String contentName)
Sets a new value for the attribute contentName.

Specified by:
setContentName in interface Media
Parameters:
contentName - The possibly null new value for attribute contentName.

getContent

public BinaryLargeObject getContent()
Retrieves a binary large object value for the attribute content.

Specified by:
getContent in interface Media

setContent

public void setContent(BinaryLargeObject content)
Sets a new binary value for the attribute content

Specified by:
setContent in interface Media
Parameters:
content - A BinaryLargeObject containing the value for this attribute.

openmdxjdoGetSize

protected int openmdxjdoGetSize(int field)
Overrides:
openmdxjdoGetSize in class DocumentRevision

openmdxjdoSetSize

protected void openmdxjdoSetSize(int field,
                                 int size)
Overrides:
openmdxjdoSetSize in class DocumentRevision

newSlice

protected org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
Overrides:
newSlice in class DocumentRevision

openmdxjdoGetClass

protected List<String> openmdxjdoGetClass()
Retrieve the model class

Overrides:
openmdxjdoGetClass in class DocumentRevision
Returns:
the model class
See Also:
MediaContent.CLASS

newIdentity

public static DocumentRevision.Identity newIdentity(Document.Identity document,
                                                    boolean idIsPersistent,
                                                    String id)


This software is published under the BSD license. Copyright © 2003-2007, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.