#Design Pattern Template Method

1 messages ยท Page 1 of 1 (latest)

nocturne ferry
#

I'm a not really a creative person and I would like to ask if someone knows a good example for the use of the Template Method? It should have a technical use like for example a sorting algorithm and not be very basic like a burger maker. Thank you in advance! ๐Ÿ™‚

unique bobcatBOT
#

โŒ› This post has been reserved for your question.

Hey @nocturne ferry! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

glacial compass
#

good example would be JDBC template

#

where it goes through same steps: acquires connection from pool (or creates, if no connection pool), creates Statement according to sql query, executes the query. And all you need is to provide RowMapper object, that will map each row of result to the java object.

#

(in case that sql query selecting something)

#

@nocturne ferry

nocturne ferry
#

hmm, not a bad idea

#

thank you ๐Ÿ™‚

unique bobcatBOT
# nocturne ferry thank you ๐Ÿ™‚

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.

glacial compass
#

you're welcome ๐Ÿ˜‰

unique bobcatBOT
#

๐Ÿ’ค Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.