All Superinterfaces:
org.eclipse.edc.sql.statement.SqlStatements
All Known Implementing Classes:
BaseSqlDialectStatements, PostgresDialectStatements

@ExtensionPoint public interface AssetStatements extends org.eclipse.edc.sql.statement.SqlStatements
Defines queries used by the SqlAssetIndexServiceExtension.
  • Method Details

    • getAssetTable

      default String getAssetTable()
      The asset table name.
    • getAssetIdColumn

      default String getAssetIdColumn()
      The asset table ID column.
    • getPropertiesColumn

      default String getPropertiesColumn()
    • getPrivatePropertiesColumn

      default String getPrivatePropertiesColumn()
    • getDataAddressColumn

      default String getDataAddressColumn()
    • getDataAddressTable

      default String getDataAddressTable()
      The data address table name.
    • getDataAddressPropertiesColumn

      default String getDataAddressPropertiesColumn()
      The data address table properties column.
    • getAssetPropertyTable

      default String getAssetPropertyTable()
      The asset property table name.
    • getAssetPropertyNameColumn

      default String getAssetPropertyNameColumn()
      The asset property name column.
    • getAssetPropertyValueColumn

      default String getAssetPropertyValueColumn()
      The asset property value column.
    • getAssetPropertyTypeColumn

      default String getAssetPropertyTypeColumn()
      The asset property type column.
    • getAssetPropertyIsPrivateColumn

      default String getAssetPropertyIsPrivateColumn()
      The asset property is private column.
    • getDataAddressAssetIdFkColumn

      default String getDataAddressAssetIdFkColumn()
    • getPropertyAssetIdFkColumn

      default String getPropertyAssetIdFkColumn()
    • getCreatedAtColumn

      default String getCreatedAtColumn()
    • getInsertAssetTemplate

      String getInsertAssetTemplate()
      INSERT clause for assets.
    • getUpdateAssetTemplate

      String getUpdateAssetTemplate()
      UPDATE clause for assets.
    • getCountAssetByIdClause

      String getCountAssetByIdClause()
      SELECT COUNT clause for assets.
    • getSelectAssetTemplate

      String getSelectAssetTemplate()
      SELECT clause for all assets.
    • getDeleteAssetByIdTemplate

      String getDeleteAssetByIdTemplate()
      DELETE clause for assets.
    • getCountVariableName

      String getCountVariableName()
      The COUNT variable used in SELECT COUNT queries.
    • createQuery

      org.eclipse.edc.sql.translation.SqlQueryStatement createQuery(org.eclipse.edc.spi.query.QuerySpec query)
      Generates a SQL query using sub-select statements out of the query spec.
      Returns:
      A SqlQueryStatement that contains the SQL and statement parameters
    • createQuery

      org.eclipse.edc.sql.translation.SqlQueryStatement createQuery(List<org.eclipse.edc.spi.query.Criterion> query)
      Generates a SQL query using sub-select statements out of the criterion.
      Returns:
      A SqlQueryStatement that contains the SQL and statement parameters