Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

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

public class SQLSimpleProperty
extends SQLBaseProperty

A SQLSimpleProperty gives access to a wrapped SQL-level SimpleProperty.

Author:
Florent Guillaume

Field Summary
 
Fields inherited from class org.nuxeo.ecm.core.storage.sql.coremodel.SQLBaseProperty
DC_ISSUED, RELATED_TEXT_RESOURCES
 
Constructor Summary
SQLSimpleProperty(SimpleProperty property, Type type, boolean readonly)
          Creates a SQLSimpleProperty to wrap a SimpleProperty.
 
Method Summary
 String getName()
          Gets the name used to identify this property by its container.
 Serializable 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.SQLBaseProperty
checkWritable, getProperties, getProperty, getPropertyIterator, getType, isNull, isPropertySet, isSpecialSystemProperty, setNull
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLSimpleProperty

public SQLSimpleProperty(SimpleProperty property,
                         Type type,
                         boolean readonly)
Creates a SQLSimpleProperty to wrap a SimpleProperty.

Method Detail

getName

public 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 Serializable 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(Object value)
              throws DocumentException
Description copied from interface: Property
Sets the value of this property.

Parameters:
value - the value to set
Throws:
DocumentException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.