- 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 SummaryFields Modifier and Type Field Description protected ValueDataContextdataContextprotected Valuenameprotected StoreBindingstoreBindingprotected UTreeValuetree
 - 
Constructor SummaryConstructors Constructor Description ValueDataModel(Value name, UTreeValue tree)
 - 
Method SummaryAll 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- 
nameprotected final Value name 
 - 
treeprotected final UTreeValue tree 
 - 
dataContextprotected ValueDataContext dataContext 
 - 
storeBindingprotected StoreBinding storeBinding 
 
- 
 - 
Constructor Detail- 
ValueDataModelpublic ValueDataModel(Value name, UTreeValue tree) 
 
- 
 - 
Method Detail- 
dataContextpublic ValueDataContext dataContext() - Specified by:
- dataContextin interface- DataBinding
- Specified by:
- dataContextin interface- ValueDataBinding
 
 - 
setDataContextpublic void setDataContext(ValueDataContext dataContext) - Specified by:
- setDataContextin interface- ValueDataBinding
 
 - 
storeBindingpublic StoreBinding storeBinding() - Specified by:
- storeBindingin interface- DataBinding
 
 - 
setStoreBindingpublic void setStoreBinding(StoreBinding storeBinding) - Specified by:
- setStoreBindingin interface- DataBinding
 
 - 
unwrapDatapublic <T> T unwrapData(Class<T> dataClass) - Specified by:
- unwrapDatain interface- DataBinding
 
 - 
namepublic Value name() - Specified by:
- namein interface- DataBinding
- Specified by:
- namein interface- ValueData<Value>
 
 - 
dataSizepublic long dataSize() - Specified by:
- dataSizein interface- DataBinding
 
 - 
valueClasspublic <V2> ValueData<V2> valueClass(Class<V2> valueClass) - Specified by:
- valueClassin interface- ValueData<Value>
 
 - 
isResidentpublic boolean isResident() - Specified by:
- isResidentin interface- DataBinding
- Specified by:
- isResidentin interface- ValueData<Value>
 
 - 
isResidentpublic ValueDataBinding isResident(boolean isResident) - Specified by:
- isResidentin interface- DataBinding
- Specified by:
- isResidentin interface- ValueData<Value>
- Specified by:
- isResidentin interface- ValueDataBinding
 
 - 
isTransientpublic boolean isTransient() - Specified by:
- isTransientin interface- DataBinding
- Specified by:
- isTransientin interface- ValueData<Value>
 
 - 
isTransientpublic ValueDataBinding isTransient(boolean isTransient) - Specified by:
- isTransientin interface- DataBinding
- Specified by:
- isTransientin interface- ValueData<Value>
- Specified by:
- isTransientin interface- ValueDataBinding
 
 - 
closepublic void close() - Specified by:
- closein interface- DataBinding
- Specified by:
- closein interface- ValueData<Value>
 
 - 
treeDidLoadPagepublic void treeDidLoadPage(Page page) - Specified by:
- treeDidLoadPagein interface- TreeDelegate
 
 - 
treeDidChangepublic void treeDidChange(Tree newTree, Tree oldTree) - Specified by:
- treeDidChangein interface- TreeDelegate
 
 - 
treeDidCommitpublic void treeDidCommit(Tree newTree, Tree oldTree) - Specified by:
- treeDidCommitin interface- TreeDelegate
 
 - 
treeDidClearpublic void treeDidClear(Tree newTree, Tree oldTree) - Specified by:
- treeDidClearin interface- TreeDelegate
 
 - 
utreeDidUpdatepublic void utreeDidUpdate(UTree newTree, UTree oldTree, Value newValue, Value oldValue) - Specified by:
- utreeDidUpdatein interface- UTreeDelegate
 
 
- 
 
-