Class DbField

java.lang.Object
tech.ailef.dbadmin.external.dbmapping.DbField

public class DbField extends Object
Represent a field on the database, generated from an Entity class instance variable.
  • Field Details

    • dbName

      protected String dbName
      The inferred name of this field on the database
    • javaName

      protected String javaName
      The name of this field in the Java code (instance variable)
    • type

      protected DbFieldType type
      The type of this field
    • field

      protected Field field
  • Constructor Details

  • Method Details

    • getJavaName

      public String getJavaName()
    • getSchema

      public DbObjectSchema getSchema()
    • getConnectedSchema

      public DbObjectSchema getConnectedSchema()
    • setSchema

      public void setSchema(DbObjectSchema schema)
    • getPrimitiveField

      public Field getPrimitiveField()
    • setField

      public void setField(Field field)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getType

      public DbFieldType getType()
    • setType

      public void setType(DbFieldType type)
    • setPrimaryKey

      public void setPrimaryKey(boolean primaryKey)
    • isPrimaryKey

      public boolean isPrimaryKey()
    • getConnectedType

      public Class<?> getConnectedType()
    • setConnectedType

      public void setConnectedType(Class<?> connectedType)
    • isForeignKey

      public boolean isForeignKey()
    • isNullable

      public boolean isNullable()
    • setNullable

      public void setNullable(boolean nullable)
    • isBinary

      public boolean isBinary()
    • isImage

      public boolean isImage()
    • getFormat

      public String getFormat()
    • isText

      public boolean isText()
    • getFragmentName

      public String getFragmentName()
      Returns the name of the Thymeleaf fragment used to render the input for this field.
      Returns:
    • isFilterable

      public boolean isFilterable()
    • isFilterableCategorical

      public boolean isFilterableCategorical()
    • isReadOnly

      public boolean isReadOnly()
    • isToOne

      public boolean isToOne()
    • isSettable

      public boolean isSettable()
      Returns if this field is settable with a raw value, i.e. a field that is not a relationship to another entity;
      Returns:
    • isExportable

      public boolean isExportable()
      Returns whether this field is exportable into a CSV file.
      Returns:
    • isGeneratedValue

      public boolean isGeneratedValue()
    • getAllValues

      public Set<DbFieldValue> getAllValues()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

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

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