Record Class PdoCachePreloadContent<T extends PersistentDomainObject<T>>

java.lang.Object
java.lang.Record
org.tentackle.pdo.PdoCachePreloadContent<T>
Type Parameters:
T - the PDO type
Record Components:
pdoClass - the PDO interface
pdoList - the cache content
tableInfo - the table information

@TripDeduplicatable("NEVER") @TripReferencable("NEVER") public record PdoCachePreloadContent<T extends PersistentDomainObject<T>>(Class<T extends PersistentDomainObject<T>> pdoClass, List<T extends PersistentDomainObject<T>> pdoList, PdoCachePreloadContent.TableInfo<T extends PersistentDomainObject<T>>[] tableInfo) extends Record
DTO holding the cache content for a PDO-type.
Used when preloading a cache from a remote server.
  • Constructor Details

    • PdoCachePreloadContent

      public PdoCachePreloadContent(Class<T> pdoClass, List<T> pdoList, PdoCachePreloadContent.TableInfo<T>[] tableInfo)
      Creates an instance of a PdoCachePreloadContent record class.
      Parameters:
      pdoClass - the value for the pdoClass record component
      pdoList - the value for the pdoList record component
      tableInfo - the value for the tableInfo record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • pdoClass

      public Class<T> pdoClass()
      Returns the value of the pdoClass record component.
      Returns:
      the value of the pdoClass record component
    • pdoList

      public List<T> pdoList()
      Returns the value of the pdoList record component.
      Returns:
      the value of the pdoList record component
    • tableInfo

      public PdoCachePreloadContent.TableInfo<T>[] tableInfo()
      Returns the value of the tableInfo record component.
      Returns:
      the value of the tableInfo record component