public abstract class AbstractWork extends Object implements Work, WorkExecutorVisitable<Void>
Workthat accepts a
WorkExecutorvisitor for executing a discrete piece of work. This class is intended to be used for work that does not return a value when executed.
|Constructor and Description|
|Modifier and Type||Method and Description|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Void accept(WorkExecutor<Void> executor, Connection connection) throws SQLException
WorkExecutorvisitor for executing the discrete work encapsulated by this work instance using the supplied connection. Because
Workdoes not return a value when executed (via
Work.execute(java.sql.Connection), this method always returns null.
connection- The connection on which to perform the work.
executor- The visitor that executes the work.
SQLException- Thrown during execution of the underlying JDBC interaction.
HibernateException- Generally indicates a wrapped SQLException.
Copyright © 2021 JBoss by Red Hat. All rights reserved.