Nuxeo ECM Projects 5.4.3-SNAPSHOT

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 String APPLICATION_OCTET_STREAM
           
static String BINARY
           
static String DIGEST
           
static String ENCODING
           
static String FILE_NAME
           
static String LENGTH
           
static String MIME_TYPE
           
 
Fields inherited from class org.nuxeo.ecm.core.storage.sql.coremodel.SQLBaseProperty
DC_ISSUED, RELATED_TEXT_RESOURCES
 
Constructor Summary
SQLContentProperty(Node node, ComplexType type, SQLSession session, boolean readonly)
           
 
Method Summary
 Object getValue()
          Gets the value of this property.
 void setValue(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, isSpecialSystemProperty, 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 String APPLICATION_OCTET_STREAM
See Also:
Constant Field Values

ENCODING

public static final String ENCODING
See Also:
Constant Field Values

MIME_TYPE

public static final String MIME_TYPE
See Also:
Constant Field Values

FILE_NAME

public static final String FILE_NAME
See Also:
Constant Field Values

DIGEST

public static final String DIGEST
See Also:
Constant Field Values

LENGTH

public static final String LENGTH
See Also:
Constant Field Values

BINARY

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

SQLContentProperty

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

getValue

public 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(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 ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.