Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.storage.sql.coremodel
Class SQLContentProperty

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.coremodel.SQLBaseProperty
      extended by org.nuxeo.ecm.core.storage.sql.coremodel.SQLComplexProperty
          extended by org.nuxeo.ecm.core.storage.sql.coremodel.SQLContentProperty
All Implemented Interfaces:
Property, PropertyContainer

public class SQLContentProperty
extends SQLComplexProperty

A SQLContentProperty gives access to a blob, which consists of a Node of a specialized type: content. One of the columns of the row stores (indirectly) actual blob data using a Binary.

Author:
Florent Guillaume

Field Summary
static java.lang.String APPLICATION_OCTET_STREAM
           
static java.lang.String BINARY
           
static java.lang.String DIGEST
           
static java.lang.String ENCODING
           
static java.lang.String FILE_NAME
           
static java.lang.String LENGTH
           
static java.lang.String MIME_TYPE
           
 
Constructor Summary
SQLContentProperty(Node node, ComplexType type, SQLSession session, boolean readonly)
           
 
Method Summary
 java.lang.Object getValue()
          Gets the value of this property.
 void setValue(java.lang.Object value)
          Sets the value of this property.
 
Methods inherited from class org.nuxeo.ecm.core.storage.sql.coremodel.SQLComplexProperty
exportFlatMap, exportMap, exportMap, getBoolean, getContent, getDate, getDirtyFields, getDouble, getLong, getName, getNode, getProperties, getProperty, getPropertyIterator, getPropertyValue, getString, importFlatMap, importMap, isPropertySet, removeProperty, setBoolean, setContent, setDate, setDouble, setLong, setPropertyValue, setString
 
Methods inherited from class org.nuxeo.ecm.core.storage.sql.coremodel.SQLBaseProperty
checkWritable, getType, isNull, setNull
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPLICATION_OCTET_STREAM

public static final java.lang.String APPLICATION_OCTET_STREAM
See Also:
Constant Field Values

ENCODING

public static final java.lang.String ENCODING
See Also:
Constant Field Values

MIME_TYPE

public static final java.lang.String MIME_TYPE
See Also:
Constant Field Values

FILE_NAME

public static final java.lang.String FILE_NAME
See Also:
Constant Field Values

DIGEST

public static final java.lang.String DIGEST
See Also:
Constant Field Values

LENGTH

public static final java.lang.String LENGTH
See Also:
Constant Field Values

BINARY

public static final java.lang.String BINARY
See Also:
Constant Field Values
Constructor Detail

SQLContentProperty

public SQLContentProperty(Node node,
                          ComplexType type,
                          SQLSession session,
                          boolean readonly)
Method Detail

getValue

public java.lang.Object getValue()
                          throws DocumentException
Description copied from interface: Property
Gets the value of this property.

Specified by:
getValue in interface Property
Overrides:
getValue in class SQLComplexProperty
Returns:
this property's value
Throws:
DocumentException

setValue

public void setValue(java.lang.Object value)
              throws DocumentException
Description copied from interface: Property
Sets the value of this property.

Specified by:
setValue in interface Property
Overrides:
setValue in class SQLComplexProperty
Parameters:
value - the value to set
Throws:
DocumentException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.