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, typeCheck
equals, getDatabase, getId, getSurrogate, hashCode, inConstruction, isValid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
check, getChronicles, getValueType, isIndexed, scan, typeCheck
getDatabase, getId, getSurrogate, inConstruction, isValid
public 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()
PropertyImpl
update
in class PropertyImpl<T>
public UpdatableProperty<T> edit()
Property
UpdatableProperty
corresponding to this property.
Successfully getting an Updatable
object does not imply
that updates can be successfully applied.public void applyUpdates() throws T2DBException
Updatable
Database.commit()
and
Database.rollback()
is the client's responsibility.applyUpdates
in interface Updatable
T2DBException
public String getName()
Property
public void setName(String name) throws T2DBException
UpdatableProperty
setName
in interface UpdatableProperty<T>
name
- a stringT2DBException
public void destroy() throws T2DBException
UpdatableProperty
destroy
in interface UpdatableProperty<T>
T2DBException
Copyright © 2017. All rights reserved.