Interface ReturningModificationCriteriaBuilderFactory<X>

Type Parameters:
X - The entity type for which this modification query is

public interface ReturningModificationCriteriaBuilderFactory<X>
A builder for modification queries that return results.
Since:
1.1.0
Author:
Christian Beikov
  • Method Details

    • delete

      <T> ReturningDeleteCriteriaBuilder<T,​X> delete​(Class<T> deleteClass)
      Like delete(java.lang.Class, java.lang.String) but with the alias equivalent to the camel cased result of what Class.getSimpleName() of the delete class returns.
      Type Parameters:
      T - The type of the entity for the delete criteria
      Parameters:
      deleteClass - The entity class for the delete criteria
      Returns:
      A new delete criteria builder
      Since:
      1.1.0
    • delete

      <T> ReturningDeleteCriteriaBuilder<T,​X> delete​(Class<T> deleteClass, String alias)
      Creates a new delete criteria builder for the given entity class.
      Type Parameters:
      T - The type of the entity for the delete criteria
      Parameters:
      deleteClass - The entity class for the delete criteria
      alias - The alias that should be used for the entity
      Returns:
      A new delete criteria builder
      Since:
      1.1.0
    • deleteCollection

      <T> ReturningDeleteCriteriaBuilder<T,​X> deleteCollection​(Class<T> deleteOwnerClass, String collectionName)
      Like deleteCollection(java.lang.Class, java.lang.String, java.lang.String) but with the alias equivalent to the camel cased result of what Class.getSimpleName() of the delete owner class returns.
      Type Parameters:
      T - The type of the entity for the delete criteria
      Parameters:
      deleteOwnerClass - The entity class owning the collection for the delete criteria
      collectionName - The name of the collection contained in the owner entity class
      Returns:
      A new delete criteria builder
      Since:
      1.2.0
    • deleteCollection

      <T> ReturningDeleteCriteriaBuilder<T,​X> deleteCollection​(Class<T> deleteOwnerClass, String alias, String collectionName)
      Creates a new delete criteria builder for the given entity class and collection name to delete elements of the entity class's collection.
      Type Parameters:
      T - The type of the entity for the delete criteria
      Parameters:
      deleteOwnerClass - The entity class owning the collection for the delete criteria
      alias - The alias that should be used for the entity
      collectionName - The name of the collection contained in the owner entity class
      Returns:
      A new delete criteria builder
      Since:
      1.2.0
    • update

      <T> ReturningUpdateCriteriaBuilder<T,​X> update​(Class<T> updateClass)
      Like update(java.lang.Class, java.lang.String) but with the alias equivalent to the camel cased result of what Class.getSimpleName() of the update class returns.
      Type Parameters:
      T - The type of the entity for the update criteria
      Parameters:
      updateClass - The entity class for the update criteria
      Returns:
      A new update criteria builder
      Since:
      1.1.0
    • update

      <T> ReturningUpdateCriteriaBuilder<T,​X> update​(Class<T> updateClass, String alias)
      Creates a new update criteria builder for the given entity class.
      Type Parameters:
      T - The type of the entity for the update criteria
      Parameters:
      updateClass - The entity class for the update criteria
      alias - The alias that should be used for the entity
      Returns:
      A new update criteria builder
      Since:
      1.1.0
    • updateCollection

      <T> ReturningUpdateCriteriaBuilder<T,​X> updateCollection​(Class<T> updateOwnerClass, String collectionName)
      Like CriteriaBuilderFactory.updateCollection(javax.persistence.EntityManager, java.lang.Class, java.lang.String, java.lang.String) but with the alias equivalent to the camel cased result of what Class.getSimpleName() of the delete owner class returns.
      Type Parameters:
      T - The type of the entity for the update criteria
      Parameters:
      updateOwnerClass - The entity class owning the collection for the update criteria
      collectionName - The name of the collection contained in the owner entity class
      Returns:
      A new update criteria builder
      Since:
      1.2.0
    • updateCollection

      <T> ReturningUpdateCriteriaBuilder<T,​X> updateCollection​(Class<T> updateOwnerClass, String alias, String collectionName)
      Creates a new update criteria builder for the given entity class and collection name to update elements of the entity class's collection.
      Type Parameters:
      T - The type of the entity for the update criteria
      Parameters:
      updateOwnerClass - The entity class owning the collection for the update criteria
      alias - The alias that should be used for the entity
      collectionName - The name of the collection contained in the owner entity class
      Returns:
      A new update criteria builder
      Since:
      1.2.0
    • insert

      <T> ReturningInsertCriteriaBuilder<T,​X> insert​(Class<T> insertClass)
      Creates a new insert criteria builder for the given entity class.
      Type Parameters:
      T - The type of the entity for the insert criteria
      Parameters:
      insertClass - The entity class for the insert criteria
      Returns:
      A new insert criteria builder
      Since:
      1.1.0
    • insertCollection

      <T> ReturningInsertCriteriaBuilder<T,​X> insertCollection​(Class<T> insertOwnerClass, String collectionName)
      Creates a new insert criteria builder for the given entity class and collection name to update elements of the entity class's collection.
      Type Parameters:
      T - The type of the entity for the insert criteria
      Parameters:
      insertOwnerClass - The entity class owning the collection for the insert criteria
      collectionName - The name of the collection contained in the owner entity class
      Returns:
      A new insert criteria builder
      Since:
      1.2.0