public class HibernateCreditDao extends java.lang.Object implements CustomerCreditDao, RepeatListener
| Constructor and Description |
|---|
HibernateCreditDao() |
| Modifier and Type | Method and Description |
|---|---|
void |
after(RepeatContext context,
RepeatStatus result)
Called by the framework after each item has been processed, unless the
item processing results in an exception.
|
void |
before(RepeatContext context)
Called by the framework before each batch item.
|
void |
close(RepeatContext context)
Called once at the end of a complete batch, after normal or abnormal
completion (i.e.
|
java.util.List<java.lang.Throwable> |
getErrors()
Public accessor for the errors property.
|
void |
onError(RepeatContext context,
java.lang.Throwable e)
Called when a repeat callback fails by throwing an exception.
|
void |
open(RepeatContext context)
Called once at the start of a complete batch, before any items are
processed.
|
void |
setFailOnFlush(int failOnFlush)
Public setter for the failOnFlush property.
|
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory) |
void |
write(java.lang.Object output) |
void |
writeCredit(CustomerCredit customerCredit) |
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public java.util.List<java.lang.Throwable> getErrors()
public void writeCredit(CustomerCredit customerCredit)
writeCredit in interface CustomerCreditDaopublic void write(java.lang.Object output)
public void setFailOnFlush(int failOnFlush)
failOnFlush - the ID of the record you want to fail on flush (for testing)public void onError(RepeatContext context, java.lang.Throwable e)
RepeatListeneronError in interface RepeatListenercontext - the current batch contexte - the error that was encountered in an item callback.public void after(RepeatContext context, RepeatStatus result)
RepeatListenerafter in interface RepeatListenercontext - the current batch contextresult - the result of the callbackpublic void before(RepeatContext context)
RepeatListenerbefore in interface RepeatListenercontext - the current batch context.public void close(RepeatContext context)
RepeatListenerclose in interface RepeatListenercontext - the current batch context.public void open(RepeatContext context)
RepeatListeneropen in interface RepeatListenercontext - the current batch context