Package com.querydsl.jpa.hibernate
Class HibernateInsertClause
java.lang.Object
com.querydsl.jpa.hibernate.HibernateInsertClause
- All Implemented Interfaces:
DMLClause<HibernateInsertClause>,InsertClause<HibernateInsertClause>,StoreClause<HibernateInsertClause>
UpdateClause implementation for Hibernate
- Author:
- tiwe
-
Constructor Summary
ConstructorsConstructorDescriptionHibernateInsertClause(SessionHolder session, EntityPath<?> entity, JPQLTemplates templates) HibernateInsertClause(org.hibernate.Session session, EntityPath<?> entity) HibernateInsertClause(org.hibernate.Session session, EntityPath<?> entity, JPQLTemplates templates) HibernateInsertClause(org.hibernate.StatelessSession session, EntityPath<?> entity) -
Method Summary
Modifier and TypeMethodDescriptionlongexecute()booleanisEmpty()select(SubQueryExpression<?> sq) set(Path<T> path, Expression<? extends T> expression) setLockMode(Path<?> path, org.hibernate.LockMode lockMode) Set the lock mode for the given path.toString()
-
Constructor Details
-
HibernateInsertClause
-
HibernateInsertClause
-
HibernateInsertClause
public HibernateInsertClause(org.hibernate.Session session, EntityPath<?> entity, JPQLTemplates templates) -
HibernateInsertClause
-
-
Method Details
-
execute
public long execute()- Specified by:
executein interfaceDMLClause<HibernateInsertClause>
-
columns
- Specified by:
columnsin interfaceInsertClause<HibernateInsertClause>
-
select
- Specified by:
selectin interfaceInsertClause<HibernateInsertClause>
-
setLockMode
Set the lock mode for the given path.- Returns:
- the current object
-
toString
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceStoreClause<HibernateInsertClause>
-
set
- Specified by:
setin interfaceStoreClause<HibernateInsertClause>
-
set
- Specified by:
setin interfaceStoreClause<HibernateInsertClause>
-
setNull
- Specified by:
setNullin interfaceStoreClause<HibernateInsertClause>
-
values
- Specified by:
valuesin interfaceInsertClause<HibernateInsertClause>
-