Interface IDataEntityDAO

All Known Implementing Classes:
DataEntityDAO

public interface IDataEntityDAO
IDataEntityDAO Interface
  • Method Details

    • insert

      void insert(DataEntity entity)
      Insert a new record in the table.
      Parameters:
      entity - instance of the Entity object to insert
    • insertIfAbsent

      boolean insertIfAbsent(DataEntity entity)
      Atomically inserts a new record only if no record with the same primary key already exists. Relies on the database-level primary key uniqueness constraint, which makes the operation safe under concurrent calls from multiple application instances (multi-instance deployment).

      Portable across SQL databases (MariaDB, PostgreSQL, Oracle, H2...) — does not use vendor-specific syntax like ON CONFLICT or INSERT IGNORE.

      Parameters:
      entity - instance of the Entity object to insert
      Returns:
      true if the row was inserted, false if a row with the same key already existed
      Since:
      8.0
    • store

      void store(DataEntity entity)
      Update the record in the table
      Parameters:
      entity - the reference of the Entity
    • delete

      void delete(String strKey)
      Delete a record from the table
      Parameters:
      strKey - The identifier of the Entity to delete
    • load

      DataEntity load(String strKey)
      Load the data from the table
      Parameters:
      strKey - The identifier of the property
      Returns:
      The instance of the property
    • selectEntitiesList

      List<DataEntity> selectEntitiesList()
      Load the data of all entities and returns them as a List
      Returns:
      The List which contains the data of all the property objects
    • selectEntitiesByPrefix

      List<DataEntity> selectEntitiesByPrefix(String strPrefix)
      Load the data of all the entity objects whose key share a prefix
      Parameters:
      strPrefix - the prefix
      Returns:
      the list which contains the data of all the entity objects whose key share a prefix
      Since:
      7.0.17