|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.orm.hibernate3.support.HibernateDaoSupport org.springframework.batch.sample.domain.trade.internal.HibernateCreditDao
public class HibernateCreditDao
Field Summary |
---|
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
HibernateCreditDao()
|
Method Summary | |
---|---|
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. even after an exception). |
List<Throwable> |
getErrors()
Public accessor for the errors property. |
void |
onError(RepeatContext context,
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 |
write(Object output)
|
void |
writeCredit(CustomerCredit customerCredit)
|
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateCreditDao()
Method Detail |
---|
public List<Throwable> getErrors()
public void writeCredit(CustomerCredit customerCredit)
writeCredit
in interface CustomerCreditDao
public void write(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, Throwable e)
RepeatListener
onError
in interface RepeatListener
context
- the current batch contexte
- the error that was encountered in an item callback.public void after(RepeatContext context, RepeatStatus result)
RepeatListener
after
in interface RepeatListener
context
- the current batch contextresult
- the result of the callbackpublic void before(RepeatContext context)
RepeatListener
before
in interface RepeatListener
context
- the current batch context.public void close(RepeatContext context)
RepeatListener
close
in interface RepeatListener
context
- the current batch context.public void open(RepeatContext context)
RepeatListener
open
in interface RepeatListener
context
- the current batch context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |