Module storm

Class AbstractRef<T extends Record>

java.lang.Object
st.orm.template.impl.AbstractRef<T>
Type Parameters:
T - record type.
All Implemented Interfaces:
Ref<T>

public abstract class AbstractRef<T extends Record> extends Object implements Ref<T>
Abstract implementation of Ref to have consistent implementations of hashCode(), equals(Object).
Since:
1.3
  • Constructor Details

    • AbstractRef

      public AbstractRef()
  • Method Details

    • type

      protected abstract Class<T> type()
      The type of the record.
      Returns:
      the type of the record.
    • isFetched

      protected abstract boolean isFetched()
      Returns true if the record has been fetched, false otherwise.
      Returns:
      true if fetched, false otherwise.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object