org.springframework.batch.sample.domain.trade.internal
Class HibernateCreditDao
java.lang.Object
org.springframework.batch.sample.domain.trade.internal.HibernateCreditDao
- All Implemented Interfaces:
- org.springframework.batch.repeat.RepeatListener, CustomerCreditDao
public class HibernateCreditDao
- extends Object
- implements CustomerCreditDao, org.springframework.batch.repeat.RepeatListener
- Author:
- Lucas Ward, Dave Syer
|
Method Summary |
void |
after(org.springframework.batch.repeat.RepeatContext context,
org.springframework.batch.repeat.RepeatStatus result)
|
void |
before(org.springframework.batch.repeat.RepeatContext context)
|
void |
close(org.springframework.batch.repeat.RepeatContext context)
|
List<Throwable> |
getErrors()
Public accessor for the errors property. |
void |
onError(org.springframework.batch.repeat.RepeatContext context,
Throwable e)
|
void |
open(org.springframework.batch.repeat.RepeatContext context)
|
void |
setFailOnFlush(int failOnFlush)
Public setter for the failOnFlush property. |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
|
void |
write(Object output)
|
void |
writeCredit(CustomerCredit customerCredit)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateCreditDao
public HibernateCreditDao()
setSessionFactory
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
getErrors
public List<Throwable> getErrors()
- Public accessor for the errors property.
- Returns:
- the errors - a list of Throwable instances
writeCredit
public void writeCredit(CustomerCredit customerCredit)
- Specified by:
writeCredit in interface CustomerCreditDao
write
public void write(Object output)
setFailOnFlush
public void setFailOnFlush(int failOnFlush)
- Public setter for the failOnFlush property.
- Parameters:
failOnFlush - the ID of the record you want to fail on flush (for testing)
onError
public void onError(org.springframework.batch.repeat.RepeatContext context,
Throwable e)
- Specified by:
onError in interface org.springframework.batch.repeat.RepeatListener
after
public void after(org.springframework.batch.repeat.RepeatContext context,
org.springframework.batch.repeat.RepeatStatus result)
- Specified by:
after in interface org.springframework.batch.repeat.RepeatListener
before
public void before(org.springframework.batch.repeat.RepeatContext context)
- Specified by:
before in interface org.springframework.batch.repeat.RepeatListener
close
public void close(org.springframework.batch.repeat.RepeatContext context)
- Specified by:
close in interface org.springframework.batch.repeat.RepeatListener
open
public void open(org.springframework.batch.repeat.RepeatContext context)
- Specified by:
open in interface org.springframework.batch.repeat.RepeatListener
Copyright © 2013. All Rights Reserved.