- java.lang.Object
-
- swim.store.mem.ValueDataModel
-
- All Implemented Interfaces:
ValueData<Value>
,DataBinding
,ValueDataBinding
public class ValueDataModel extends Object implements ValueDataBinding
-
-
Field Summary
Fields Modifier and Type Field Description protected ValueDataContext
dataContext
protected Value
name
protected StoreBinding
storeBinding
protected Value
value
-
Constructor Summary
Constructors Constructor Description ValueDataModel(Value name, Value value)
-
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()
<T> T
unwrapData(Class<T> dataClass)
<V2> ValueData<V2>
valueClass(Class<V2> valueClass)
Form<Value>
valueForm()
<V2> ValueData<V2>
valueForm(Form<V2> valueForm)
-
-
-
Field Detail
-
name
protected final Value name
-
value
protected volatile Value value
-
dataContext
protected ValueDataContext dataContext
-
storeBinding
protected StoreBinding storeBinding
-
-
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>
-
-