ItemWriters Flashcards

(9 cards)

1
Q

What is a FlatFileItemWriter?

A

It writes data to a flat file like CSV or TXT.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you configure a JdbcBatchItemWriter?

A

By setting a DataSource, sql query, and ItemPreparedStatementSetter.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a JpaItemWriter?

A

An ItemWriter that persists data using JPA.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How can you write an XML file in Spring Batch?

A

Using StaxEventItemWriter with a Marshaller.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is MulteResourceItemWriter?

A

A writer that writes output to multiple files based on logic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you write to a NoSQL database like MongoDB?

A

Using MongoItemWriter?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you write to a REST API in Spring Batch?

A

By implementing a custom ItemWriter that makes HTTP requests.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How can you use FlatFileItemWriter with dynamic filenames?

A

By using a ResourceSuffixCreator?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is JdbcBatchItemWriter used for?

A

Writing records to a database using batch SQL inserts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly