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