- 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 ValueDataContext
dataContext
protected Value
name
protected StoreBinding
storeBinding
protected UTreeValue
tree
-
Constructor Summary
Constructors Constructor Description ValueDataModel(Value name, UTreeValue tree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ValueDataContext
dataContext()
long
dataSize()
Value
get()
boolean
isResident()
ValueDataBinding
isResident(boolean isResident)
boolean
isTransient()
ValueDataBinding
isTransient(boolean isTransient)
Value
name()
Value
set(Value newValue)
void
setDataContext(ValueDataContext dataContext)
void
setStoreBinding(StoreBinding storeBinding)
StoreBinding
storeBinding()
void
treeDidChange(Tree newTree, Tree oldTree)
void
treeDidClear(Tree newTree, Tree oldTree)
void
treeDidCommit(Tree newTree, Tree oldTree)
void
treeDidLoadPage(Page page)
<T> T
unwrapData(Class<T> dataClass)
void
utreeDidUpdate(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:
dataContext
in interfaceDataBinding
- Specified by:
dataContext
in interfaceValueDataBinding
-
setDataContext
public void setDataContext(ValueDataContext dataContext)
- Specified by:
setDataContext
in interfaceValueDataBinding
-
storeBinding
public StoreBinding storeBinding()
- Specified by:
storeBinding
in interfaceDataBinding
-
setStoreBinding
public void setStoreBinding(StoreBinding storeBinding)
- Specified by:
setStoreBinding
in interfaceDataBinding
-
unwrapData
public <T> T unwrapData(Class<T> dataClass)
- Specified by:
unwrapData
in interfaceDataBinding
-
name
public Value name()
- Specified by:
name
in interfaceDataBinding
- Specified by:
name
in interfaceValueData<Value>
-
dataSize
public long dataSize()
- Specified by:
dataSize
in interfaceDataBinding
-
valueClass
public <V2> ValueData<V2> valueClass(Class<V2> valueClass)
- Specified by:
valueClass
in interfaceValueData<Value>
-
isResident
public boolean isResident()
- Specified by:
isResident
in interfaceDataBinding
- Specified by:
isResident
in interfaceValueData<Value>
-
isResident
public ValueDataBinding isResident(boolean isResident)
- Specified by:
isResident
in interfaceDataBinding
- Specified by:
isResident
in interfaceValueData<Value>
- Specified by:
isResident
in interfaceValueDataBinding
-
isTransient
public boolean isTransient()
- Specified by:
isTransient
in interfaceDataBinding
- Specified by:
isTransient
in interfaceValueData<Value>
-
isTransient
public ValueDataBinding isTransient(boolean isTransient)
- Specified by:
isTransient
in interfaceDataBinding
- Specified by:
isTransient
in interfaceValueData<Value>
- Specified by:
isTransient
in interfaceValueDataBinding
-
close
public void close()
- Specified by:
close
in interfaceDataBinding
- Specified by:
close
in interfaceValueData<Value>
-
treeDidLoadPage
public void treeDidLoadPage(Page page)
- Specified by:
treeDidLoadPage
in interfaceTreeDelegate
-
treeDidChange
public void treeDidChange(Tree newTree, Tree oldTree)
- Specified by:
treeDidChange
in interfaceTreeDelegate
-
treeDidCommit
public void treeDidCommit(Tree newTree, Tree oldTree)
- Specified by:
treeDidCommit
in interfaceTreeDelegate
-
treeDidClear
public void treeDidClear(Tree newTree, Tree oldTree)
- Specified by:
treeDidClear
in interfaceTreeDelegate
-
utreeDidUpdate
public void utreeDidUpdate(UTree newTree, UTree oldTree, Value newValue, Value oldValue)
- Specified by:
utreeDidUpdate
in interfaceUTreeDelegate
-
-