- java.lang.Object
-
- swim.store.db.ValueDataModel
-
- All Implemented Interfaces:
ValueData<Value>,TreeDelegate,UTreeDelegate,DataBinding,ValueDataBinding
public class ValueDataModel extends Object implements ValueDataBinding, UTreeDelegate
-
-
Field Summary
Fields Modifier and Type Field Description protected ValueDataContextdataContextprotected Valuenameprotected StoreBindingstoreBindingprotected UTreeValuetree
-
Constructor Summary
Constructors Constructor Description ValueDataModel(Value name, UTreeValue tree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ValueDataContextdataContext()longdataSize()Valueget()booleanisResident()ValueDataBindingisResident(boolean isResident)booleanisTransient()ValueDataBindingisTransient(boolean isTransient)Valuename()Valueset(Value newValue)voidsetDataContext(ValueDataContext dataContext)voidsetStoreBinding(StoreBinding storeBinding)StoreBindingstoreBinding()voidtreeDidChange(Tree newTree, Tree oldTree)voidtreeDidClear(Tree newTree, Tree oldTree)voidtreeDidCommit(Tree newTree, Tree oldTree)voidtreeDidLoadPage(Page page)<T> TunwrapData(Class<T> dataClass)voidutreeDidUpdate(UTree newTree, UTree oldTree, Value newValue, Value oldValue)<V2> ValueData<V2>valueClass(Class<V2> valueClass)Form<Value>valueForm()<V2> ValueData<V2>valueForm(Form<V2> valueForm)
-
-
-
Field Detail
-
name
protected final Value name
-
tree
protected final UTreeValue tree
-
dataContext
protected ValueDataContext dataContext
-
storeBinding
protected StoreBinding storeBinding
-
-
Constructor Detail
-
ValueDataModel
public ValueDataModel(Value name, UTreeValue tree)
-
-
Method Detail
-
dataContext
public ValueDataContext dataContext()
- Specified by:
dataContextin interfaceDataBinding- Specified by:
dataContextin interfaceValueDataBinding
-
setDataContext
public void setDataContext(ValueDataContext dataContext)
- Specified by:
setDataContextin interfaceValueDataBinding
-
storeBinding
public StoreBinding storeBinding()
- Specified by:
storeBindingin interfaceDataBinding
-
setStoreBinding
public void setStoreBinding(StoreBinding storeBinding)
- Specified by:
setStoreBindingin interfaceDataBinding
-
unwrapData
public <T> T unwrapData(Class<T> dataClass)
- Specified by:
unwrapDatain interfaceDataBinding
-
name
public Value name()
- Specified by:
namein interfaceDataBinding- Specified by:
namein interfaceValueData<Value>
-
dataSize
public long dataSize()
- Specified by:
dataSizein interfaceDataBinding
-
valueClass
public <V2> ValueData<V2> valueClass(Class<V2> valueClass)
- Specified by:
valueClassin interfaceValueData<Value>
-
isResident
public boolean isResident()
- Specified by:
isResidentin interfaceDataBinding- Specified by:
isResidentin interfaceValueData<Value>
-
isResident
public ValueDataBinding isResident(boolean isResident)
- Specified by:
isResidentin interfaceDataBinding- Specified by:
isResidentin interfaceValueData<Value>- Specified by:
isResidentin interfaceValueDataBinding
-
isTransient
public boolean isTransient()
- Specified by:
isTransientin interfaceDataBinding- Specified by:
isTransientin interfaceValueData<Value>
-
isTransient
public ValueDataBinding isTransient(boolean isTransient)
- Specified by:
isTransientin interfaceDataBinding- Specified by:
isTransientin interfaceValueData<Value>- Specified by:
isTransientin interfaceValueDataBinding
-
close
public void close()
- Specified by:
closein interfaceDataBinding- Specified by:
closein interfaceValueData<Value>
-
treeDidLoadPage
public void treeDidLoadPage(Page page)
- Specified by:
treeDidLoadPagein interfaceTreeDelegate
-
treeDidChange
public void treeDidChange(Tree newTree, Tree oldTree)
- Specified by:
treeDidChangein interfaceTreeDelegate
-
treeDidCommit
public void treeDidCommit(Tree newTree, Tree oldTree)
- Specified by:
treeDidCommitin interfaceTreeDelegate
-
treeDidClear
public void treeDidClear(Tree newTree, Tree oldTree)
- Specified by:
treeDidClearin interfaceTreeDelegate
-
utreeDidUpdate
public void utreeDidUpdate(UTree newTree, UTree oldTree, Value newValue, Value oldValue)
- Specified by:
utreeDidUpdatein interfaceUTreeDelegate
-
-