T - the underlying data type of attributes having this propertypublic class UpdatablePropertyImpl<T> extends PropertyImpl<T> implements UpdatableProperty<T>
UpdatableProperty.| Constructor and Description |
|---|
UpdatablePropertyImpl(String name,
ValueType<T> valueType,
boolean indexed,
Surrogate surrogate)
Construct an
UpdatableProperty. |
| Modifier and Type | Method and Description |
|---|---|
void |
applyUpdates()
Apply pending updates.
|
void |
destroy()
Destroy the property.
|
UpdatableProperty<T> |
edit()
Return an
UpdatableProperty corresponding to this property. |
String |
getName()
Return the name of the property.
|
void |
setName(String name)
Set the name of the property.
|
protected void |
update()
Refresh state.
|
check, getChronicles, getValueType, isIndexed, scan, toString, typeCheckequals, getDatabase, getId, getSurrogate, hashCode, inConstruction, isValidclone, finalize, getClass, notify, notifyAll, wait, wait, waitcheck, getChronicles, getValueType, isIndexed, scan, typeCheckgetDatabase, getId, getSurrogate, inConstruction, isValidpublic UpdatablePropertyImpl(String name, ValueType<T> valueType, boolean indexed, Surrogate surrogate)
UpdatableProperty.name - a stringvalueType - a value typeindexed - true if the property is suitable for searchessurrogate - a surrogateprotected void update()
PropertyImplupdate in class PropertyImpl<T>public UpdatableProperty<T> edit()
PropertyUpdatableProperty corresponding to this property.
Successfully getting an Updatable object does not imply
that updates can be successfully applied.public void applyUpdates()
throws T2DBException
UpdatableDatabase.commit() and
Database.rollback() is the client's responsibility.applyUpdates in interface UpdatableT2DBExceptionpublic String getName()
Propertypublic void setName(String name) throws T2DBException
UpdatablePropertysetName in interface UpdatableProperty<T>name - a stringT2DBExceptionpublic void destroy()
throws T2DBException
UpdatablePropertydestroy in interface UpdatableProperty<T>T2DBExceptionCopyright © 2017. All rights reserved.