Record Class QueryTypes.Include

java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.QueryTypes.Include
Enclosing class:
QueryTypes

public static record QueryTypes.Include(String relation, String type, String table, String foreignKey, String primaryKey, String through, String throughForeignKey, String throughRelatedKey, List<String> select, Map<String,Object> where, Object orderBy, Integer limit, Object include) extends Record
IInclude — type is DatabaseTypes.RelationshipType.wire() or TS string literal form.
  • Constructor Details

    • Include

      public Include(String relation, String type, String table, String foreignKey, String primaryKey, String through, String throughForeignKey, String throughRelatedKey, List<String> select, Map<String,Object> where, Object orderBy, Integer limit, Object include)
      Creates an instance of a Include record class.
      Parameters:
      relation - the value for the relation record component
      type - the value for the type record component
      table - the value for the table record component
      foreignKey - the value for the foreignKey record component
      primaryKey - the value for the primaryKey record component
      through - the value for the through record component
      throughForeignKey - the value for the throughForeignKey record component
      throughRelatedKey - the value for the throughRelatedKey record component
      select - the value for the select record component
      where - the value for the where record component
      orderBy - the value for the orderBy record component
      limit - the value for the limit record component
      include - the value for the include record component
  • Method Details

    • toMap

      public Map<String,Object> toMap()
    • 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.
    • relation

      public String relation()
      Returns the value of the relation record component.
      Returns:
      the value of the relation record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • table

      public String table()
      Returns the value of the table record component.
      Returns:
      the value of the table record component
    • foreignKey

      public String foreignKey()
      Returns the value of the foreignKey record component.
      Returns:
      the value of the foreignKey record component
    • primaryKey

      public String primaryKey()
      Returns the value of the primaryKey record component.
      Returns:
      the value of the primaryKey record component
    • through

      public String through()
      Returns the value of the through record component.
      Returns:
      the value of the through record component
    • throughForeignKey

      public String throughForeignKey()
      Returns the value of the throughForeignKey record component.
      Returns:
      the value of the throughForeignKey record component
    • throughRelatedKey

      public String throughRelatedKey()
      Returns the value of the throughRelatedKey record component.
      Returns:
      the value of the throughRelatedKey record component
    • select

      public List<String> select()
      Returns the value of the select record component.
      Returns:
      the value of the select record component
    • where

      public Map<String,Object> where()
      Returns the value of the where record component.
      Returns:
      the value of the where record component
    • orderBy

      public Object orderBy()
      Returns the value of the orderBy record component.
      Returns:
      the value of the orderBy record component
    • limit

      public Integer limit()
      Returns the value of the limit record component.
      Returns:
      the value of the limit record component
    • include

      public Object include()
      Returns the value of the include record component.
      Returns:
      the value of the include record component