Package org.hibernate.jdbc
Abstracts certain very specific aspects of the low-level interaction between Hibernate
and JDBC.
Defines Work
, ReturningWork
and
Expectation
, along with some exceptions
-
Interface Summary Interface Description Expectation Defines an expected DML operation outcome.ReturningWork<T> A discrete piece of work following the lines ofWork
but returning a result.Work Contract for performing a discrete piece of JDBC work.WorkExecutorVisitable<T> This interface provides a way to execute unrelated "work" objects using polymorphism. -
Class Summary Class Description AbstractReturningWork<T> An abstract implementation ofReturningWork
that accepts aWorkExecutor
visitor for executing a discrete piece of work and returning a result.AbstractWork An abstract implementation ofWork
that accepts aWorkExecutor
visitor for executing a discrete piece of work.Expectations Holds various often usedExpectation
definitions.Expectations.BasicExpectation Expectations.BasicParamExpectation WorkExecutor<T> A visitor used for executing a discrete piece of work encapsulated in aWork
orReturningWork
instance.. -
Exception Summary Exception Description BatchedTooManyRowsAffectedException Much likeTooManyRowsAffectedException
, indicates that more rows than what we were expecting were affected.BatchFailedException Indicates a failed batch entry (-3 return).TooManyRowsAffectedException Indicates that more rows were affected then we were expecting to be.