Package org.nuxeo.ecm.core.storage.sql
Class BaseProperty
- java.lang.Object
-
- org.nuxeo.ecm.core.storage.sql.BaseProperty
-
- Direct Known Subclasses:
CollectionProperty,SimpleProperty
public abstract class BaseProperty extends Object
APropertygives 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
Fields Modifier and Type Field Description protected StringnameThe property name.PropertyTypetypeThe property type.
-
Constructor Summary
Constructors Constructor Description BaseProperty(String name, PropertyType type, boolean readonly)Creates a Property.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckWritable()StringgetName()voidrefresh(boolean keepChanges)voidremove()voidsave()
-
-
-
Field Detail
-
name
protected final String name
The property name.
-
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)
-
remove
public void remove()
-
save
public void save()
-
checkWritable
protected void checkWritable()
-
-