Nuxeo Enterprise Platform 5.4

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

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.coremodel.SQLBaseProperty
      extended by org.nuxeo.ecm.core.storage.sql.coremodel.SQLComplexListProperty
All Implemented Interfaces:
Property

public class SQLComplexListProperty
extends SQLBaseProperty

A SQLComplexListProperty gives access to a wrapped collection of SQL-level Nodes.

Author:
Florent Guillaume

Constructor Summary
SQLComplexListProperty(Node node, ListType type, java.lang.String name, SQLSession session, boolean readonly)
          Creates a SQLComplexListProperty to wrap a collection of Nodes.
 
Method Summary
 java.lang.String getName()
          Gets the name used to identify this property by its container.
 java.util.List<java.lang.Object> getValue()
          Gets the value of this property.
 void setList(java.util.List<?> list)
           
 void setList(ListDiff list)
           
 void setValue(java.lang.Object value)
          Sets the value of this property.
 
Methods inherited from class org.nuxeo.ecm.core.storage.sql.coremodel.SQLBaseProperty
checkWritable, getProperties, getProperty, getPropertyIterator, getType, isNull, isPropertySet, setNull
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLComplexListProperty

public SQLComplexListProperty(Node node,
                              ListType type,
                              java.lang.String name,
                              SQLSession session,
                              boolean readonly)
Creates a SQLComplexListProperty to wrap a collection of Nodes.

Method Detail

getName

public java.lang.String getName()
Description copied from interface: Property
Gets the name used to identify this property by its container.

If the container of this property is not supporting accessing properties by names, returns the empty string.

Returns:
the object name or the empty string if the object has no name

getValue

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

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.

Parameters:
value - the value to set
Throws:
DocumentException

setList

public void setList(java.util.List<?> list)
             throws DocumentException
Throws:
DocumentException

setList

public void setList(ListDiff list)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.