Package com.blazebit.persistence
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 Summary
Modifier and TypeMethodDescription<T> ReturningDeleteCriteriaBuilder<T,
X> Likedelete(java.lang.Class, java.lang.String)
but with the alias equivalent to the camel cased result of whatClass.getSimpleName()
of the delete class returns.<T> ReturningDeleteCriteriaBuilder<T,
X> Creates a new delete criteria builder for the given entity class.<T> ReturningDeleteCriteriaBuilder<T,
X> deleteCollection
(Class<T> deleteOwnerClass, String collectionName) LikedeleteCollection(java.lang.Class, java.lang.String, java.lang.String)
but with the alias equivalent to the camel cased result of whatClass.getSimpleName()
of the delete owner class returns.<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.<T> ReturningInsertCriteriaBuilder<T,
X> Creates a new insert criteria builder for the given entity class.<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.<T> ReturningUpdateCriteriaBuilder<T,
X> Likeupdate(java.lang.Class, java.lang.String)
but with the alias equivalent to the camel cased result of whatClass.getSimpleName()
of the update class returns.<T> ReturningUpdateCriteriaBuilder<T,
X> Creates a new update criteria builder for the given entity class.<T> ReturningUpdateCriteriaBuilder<T,
X> updateCollection
(Class<T> updateOwnerClass, String collectionName) LikeCriteriaBuilderFactory.updateCollection(javax.persistence.EntityManager, java.lang.Class, java.lang.String, java.lang.String)
but with the alias equivalent to the camel cased result of whatClass.getSimpleName()
of the delete owner class returns.<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.
-
Method Details
-
delete
Likedelete(java.lang.Class, java.lang.String)
but with the alias equivalent to the camel cased result of whatClass.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
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 criteriaalias
- 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) LikedeleteCollection(java.lang.Class, java.lang.String, java.lang.String)
but with the alias equivalent to the camel cased result of whatClass.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 criteriacollectionName
- 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 criteriaalias
- The alias that should be used for the entitycollectionName
- The name of the collection contained in the owner entity class- Returns:
- A new delete criteria builder
- Since:
- 1.2.0
-
update
Likeupdate(java.lang.Class, java.lang.String)
but with the alias equivalent to the camel cased result of whatClass.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
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 criteriaalias
- 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) LikeCriteriaBuilderFactory.updateCollection(javax.persistence.EntityManager, java.lang.Class, java.lang.String, java.lang.String)
but with the alias equivalent to the camel cased result of whatClass.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 criteriacollectionName
- 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 criteriaalias
- The alias that should be used for the entitycollectionName
- The name of the collection contained in the owner entity class- Returns:
- A new update criteria builder
- Since:
- 1.2.0
-
insert
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 criteriacollectionName
- The name of the collection contained in the owner entity class- Returns:
- A new insert criteria builder
- Since:
- 1.2.0
-