Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql
Class BaseProperty

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.BaseProperty
Direct Known Subclasses:
CollectionProperty, SimpleProperty

public abstract class BaseProperty
extends Object

A Property gives access to a scalar or array value stored in an underlying table. This base class contains common code.

When stored, the values are normalized to their standard type.

Author:
Florent Guillaume

Field Summary
 PropertyType type
          The property type.
 
Constructor Summary
BaseProperty(String name, PropertyType type, boolean readonly)
          Creates a Property.
 
Method Summary
 String getName()
           
 void refresh(boolean keepChanges)
           
 void remove()
           
 void save()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public final PropertyType type
The property type.

Constructor Detail

BaseProperty

public BaseProperty(String name,
                    PropertyType type,
                    boolean readonly)
Creates a Property.

Method Detail

getName

public String getName()

refresh

public void refresh(boolean keepChanges)
             throws StorageException
Throws:
StorageException

remove

public void remove()
            throws StorageException
Throws:
StorageException

save

public void save()
          throws StorageException
Throws:
StorageException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.