- java.lang.Object
-
- swim.store.ValueDataProxy
-
- All Implemented Interfaces:
ValueData<Value>
,DataBinding
,DataContext
,ValueDataBinding
,ValueDataContext
public class ValueDataProxy extends Object implements ValueDataBinding, ValueDataContext
-
-
Field Summary
Fields Modifier and Type Field Description protected ValueDataBinding
dataBinding
protected ValueDataContext
dataContext
-
Constructor Summary
Constructors Constructor Description ValueDataProxy(ValueDataBinding dataBinding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ValueDataBinding
dataBinding()
ValueDataContext
dataContext()
long
dataSize()
void
didChange()
void
didCommit()
void
didSet(Value newValue, Value oldValue)
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()
<T> T
unwrapData(Class<T> dataClass)
<V> ValueData<V>
valueClass(Class<V> valueClass)
Form<Value>
valueForm()
<V> ValueData<V>
valueForm(Form<V> valueForm)
-
-
-
Field Detail
-
dataBinding
protected final ValueDataBinding dataBinding
-
dataContext
protected ValueDataContext dataContext
-
-
Constructor Detail
-
ValueDataProxy
public ValueDataProxy(ValueDataBinding dataBinding)
-
-
Method Detail
-
dataBinding
public final ValueDataBinding dataBinding()
-
dataContext
public final 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 <V> ValueData<V> valueClass(Class<V> 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>
-
didChange
public void didChange()
- Specified by:
didChange
in interfaceDataContext
-
didCommit
public void didCommit()
- Specified by:
didCommit
in interfaceDataContext
-
didSet
public void didSet(Value newValue, Value oldValue)
- Specified by:
didSet
in interfaceValueDataContext
-
-