Class DbQueryOutputField

java.lang.Object
tech.ailef.dbadmin.external.dbmapping.query.DbQueryOutputField

public class DbQueryOutputField extends Object
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Returns the column name of the field
      Returns:
    • getTable

      public String getTable()
      Returns the table name of the field
      Returns:
    • isPrimaryKey

      public boolean isPrimaryKey()
      Returns true if this field is a primary key
      Returns:
    • isForeignKey

      public boolean isForeignKey()
      Returns true if this field is a foreign key, only in the case the field has been mapped to a table
    • isExportable

      public boolean isExportable()
    • getConnectedType

      public Class<?> getConnectedType()
    • isBinary

      public boolean isBinary()
      Returns true if this field is a binary field (BLOB, etc.), only in the case the field has been mapped to a table
      Returns:
    • isMapped

      public boolean isMapped()
      Returns true if this field is mapped to a table
      Returns:
    • getType

      public String getType()
      Returns the type of the field. If the field has been mapped to a table column returns the type of the column, otherwise tries to parse the field field type from the raw value returned by the database.
      Returns:
    • getJavaName

      public String getJavaName()
      Returns the Java name of the field, if mapped to a table column
      Returns:
    • getEntityClassName

      public String getEntityClassName()
      Returns the Java class of the field, if mapped to a table column
      Returns:
    • setResult

      public void setResult(DbQueryResultRow result)
      Sets the row object this field belongs to
      Parameters:
      result -
    • hashCode

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

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