Package swim.store.db

Class ValueDataModel

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.ValueDataContext
     
    protected final swim.structure.Value
     
    protected swim.store.StoreBinding
     
    protected final swim.db.UTreeValue
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ValueDataModel(swim.structure.Value name, swim.db.UTreeValue tree)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    swim.store.ValueDataContext
     
    long
     
    swim.structure.Value
    get()
     
    boolean
     
    swim.store.ValueDataBinding
    isResident(boolean isResident)
     
    boolean
     
    swim.store.ValueDataBinding
    isTransient(boolean isTransient)
     
    swim.structure.Value
     
    swim.structure.Value
    set(swim.structure.Value newValue)
     
    void
    setDataContext(swim.store.ValueDataContext dataContext)
     
    void
    setStoreBinding(swim.store.StoreBinding storeBinding)
     
    swim.store.StoreBinding
     
    void
    treeDidChange(swim.db.Tree newTree, swim.db.Tree oldTree)
     
    void
    treeDidClear(swim.db.Tree newTree, swim.db.Tree oldTree)
     
    void
    treeDidCommit(swim.db.Tree newTree, swim.db.Tree oldTree)
     
    void
    treeDidLoadPage(swim.db.Page page)
     
    <T> T
    unwrapData(Class<T> dataClass)
     
    void
    utreeDidUpdate(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>
     
    <V2> swim.api.data.ValueData<V2>
    valueForm(swim.structure.Form<V2> valueForm)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • name

      protected final swim.structure.Value name
    • tree

      protected final swim.db.UTreeValue tree
    • dataContext

      protected swim.store.ValueDataContext dataContext
    • storeBinding

      protected swim.store.StoreBinding storeBinding
  • Constructor Details

    • ValueDataModel

      public ValueDataModel(swim.structure.Value name, swim.db.UTreeValue tree)
  • Method Details

    • dataContext

      public swim.store.ValueDataContext dataContext()
      Specified by:
      dataContext in interface swim.store.DataBinding
      Specified by:
      dataContext in interface swim.store.ValueDataBinding
    • setDataContext

      public void setDataContext(swim.store.ValueDataContext dataContext)
      Specified by:
      setDataContext in interface swim.store.ValueDataBinding
    • storeBinding

      public swim.store.StoreBinding storeBinding()
      Specified by:
      storeBinding in interface swim.store.DataBinding
    • setStoreBinding

      public void setStoreBinding(swim.store.StoreBinding storeBinding)
      Specified by:
      setStoreBinding in interface swim.store.DataBinding
    • unwrapData

      public <T> T unwrapData(Class<T> dataClass)
      Specified by:
      unwrapData in interface swim.store.DataBinding
    • name

      public swim.structure.Value name()
      Specified by:
      name in interface swim.store.DataBinding
      Specified by:
      name in interface swim.api.data.ValueData<swim.structure.Value>
    • dataSize

      public long dataSize()
      Specified by:
      dataSize in interface swim.store.DataBinding
    • valueForm

      public swim.structure.Form<swim.structure.Value> valueForm()
      Specified by:
      valueForm in interface swim.api.data.ValueData<swim.structure.Value>
    • valueForm

      public <V2> swim.api.data.ValueData<V2> valueForm(swim.structure.Form<V2> valueForm)
      Specified by:
      valueForm in interface swim.api.data.ValueData<swim.structure.Value>
    • valueClass

      public <V2> swim.api.data.ValueData<V2> valueClass(Class<V2> valueClass)
      Specified by:
      valueClass in interface swim.api.data.ValueData<swim.structure.Value>
    • isResident

      public boolean isResident()
      Specified by:
      isResident in interface swim.store.DataBinding
      Specified by:
      isResident in interface swim.api.data.ValueData<swim.structure.Value>
    • isResident

      public swim.store.ValueDataBinding isResident(boolean isResident)
      Specified by:
      isResident in interface swim.store.DataBinding
      Specified by:
      isResident in interface swim.api.data.ValueData<swim.structure.Value>
      Specified by:
      isResident in interface swim.store.ValueDataBinding
    • isTransient

      public boolean isTransient()
      Specified by:
      isTransient in interface swim.store.DataBinding
      Specified by:
      isTransient in interface swim.api.data.ValueData<swim.structure.Value>
    • isTransient

      public swim.store.ValueDataBinding isTransient(boolean isTransient)
      Specified by:
      isTransient in interface swim.store.DataBinding
      Specified by:
      isTransient in interface swim.api.data.ValueData<swim.structure.Value>
      Specified by:
      isTransient in interface swim.store.ValueDataBinding
    • get

      public swim.structure.Value get()
      Specified by:
      get in interface swim.api.data.ValueData<swim.structure.Value>
    • set

      public swim.structure.Value set(swim.structure.Value newValue)
      Specified by:
      set in interface swim.api.data.ValueData<swim.structure.Value>
    • close

      public void close()
      Specified by:
      close in interface swim.store.DataBinding
      Specified by:
      close in interface swim.api.data.ValueData<swim.structure.Value>
    • treeDidLoadPage

      public void treeDidLoadPage(swim.db.Page page)
      Specified by:
      treeDidLoadPage in interface swim.db.TreeDelegate
    • treeDidChange

      public void treeDidChange(swim.db.Tree newTree, swim.db.Tree oldTree)
      Specified by:
      treeDidChange in interface swim.db.TreeDelegate
    • treeDidCommit

      public void treeDidCommit(swim.db.Tree newTree, swim.db.Tree oldTree)
      Specified by:
      treeDidCommit in interface swim.db.TreeDelegate
    • treeDidClear

      public void treeDidClear(swim.db.Tree newTree, swim.db.Tree oldTree)
      Specified by:
      treeDidClear in interface swim.db.TreeDelegate
    • utreeDidUpdate

      public void utreeDidUpdate(swim.db.UTree newTree, swim.db.UTree oldTree, swim.structure.Value newValue, swim.structure.Value oldValue)
      Specified by:
      utreeDidUpdate in interface swim.db.UTreeDelegate