Class DatatableDTO

    • Constructor Detail

      • DatatableDTO

        public DatatableDTO​(Datatable datatable)
        Constructor.
        Parameters:
        datatable - datatable entity
      • DatatableDTO

        public DatatableDTO()
    • Method Detail

      • entityChanged

        public void entityChanged​(Datatable datatable)
        Updates this DTO with respect to a changed entity.
        Parameters:
        datatable - entity
      • deleteFormElementModel

        public void deleteFormElementModel​(FormElementModel formElementModel)
        Deletes a form element model.
        Parameters:
        formElementModel - form element model
      • addFormElementModel

        public void addFormElementModel()
        Adds a form element model.
      • isSystemDatabase

        public boolean isSystemDatabase()
        Determines, whether the table is to be stored in the system database.
        Returns:
        true, if system database
      • hasConfigChanged

        public boolean hasConfigChanged()
        Determines, whether configuration has changed.
        Returns:
        true, if changed
      • hasNameChanged

        public boolean hasNameChanged()
        Determines, whether the datatable name has changed. Used to perform table rename.
        Returns:
        true, if changed
      • getRenameTable

        public Optional<DatatableDTO.RenameTable> getRenameTable()
        Retrieves the old datatable name, if present.
        Returns:
        Pair of old and new table name
      • isNew

        public boolean isNew()
        Determines, whether this is a new datatable.
        Returns:
        true, if new
      • getTableName

        public String getTableName()
        Returns the datatable's table name.
        Returns:
        table name
      • getId

        public Long getId()
        ID of corresponding entity
      • getLockingVersion

        public int getLockingVersion()
        Locking version
      • getName

        public String getName()
        Datatable name
      • getEntity

        public Datatable getEntity()
        The backing entity
      • setId

        public void setId​(Long id)
        ID of corresponding entity
      • setLockingVersion

        public void setLockingVersion​(int lockingVersion)
        Locking version
      • setName

        public void setName​(String name)
        Datatable name
      • setDbConnection

        public void setDbConnection​(DatenbankZugriff dbConnection)
        DB connection
      • setEntity

        public void setEntity​(Datatable entity)
        The backing entity
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object