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
AProperty
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
Fields Modifier and Type Field Description protected String
name
The property name.PropertyType
type
The 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 void
checkWritable()
String
getName()
void
refresh(boolean keepChanges)
void
remove()
void
save()
-
-
-
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()
-
-