Print This Post

«

»

Aug
08

IBatis Tutorial Part 3 – SQLMapConfig.xml optional settings

Here are some of the options setting which are worth mentioning.


<settings

maxRequests ="120"

maxSessions ="20"

maxTransactions="10"

lazyLoadingEnabled =" true"

enhancementEnabled ="true"

cacheModelsEnabled ="true"

useStatementNamespaces ="false"

defaultStatementTimeout ="5" />

<typaAlias alias = ""employee> type ="com.Emloyee" />


Settings attributes :

maxRequests: Maximum number of threads that can execute an SQL statement at a time

maxSessions: Number of clients that can be active at any time.

maxTransactions: Maximum number of threads that can enter SqlMapClient.startTransactions at a time

Hint: Max Request>MaxSession >= maxTransactions

cacheModelsEnabled: This setting globally enables or disables all cache models for an SqlMapClient

LazyLoadingEnabled: This setting globally enables or disables all lazy loading for an SqlMapClient

enhancementEnabled: This setting enables runtime bytecode enhancements to facilitate optimized JavaBean property access as well as enhanced lazy loading

useStatementNamespaces: With this setting enabled, you must always refer to mapped statements by their fully qualified name, which is the combination of the SqlMap name and their statement name

defaultStatementTimeout: an integer value for jdbc query timeout for all statements


Type alias : used to provide an alias name for an otherwise long java class


Related Posts with Thumbnails

9 comments

  1. iBatis Tutorial Part 2 - SQLMapConfig.xml Basics - Golmuri says:

    [...] Introduction to IBatis Tutorial -Part 3 [...]

    Like or Dislike: Thumb up 0 Thumb down 2

  2. Dinesh says:

    Hidden due to low comment rating. Click here to see.

    Poorly-rated. Like or Dislike: Thumb up 1 Thumb down 4

  3. granite countertops says:

    Hidden due to low comment rating. Click here to see.

    Poorly-rated. Like or Dislike: Thumb up 0 Thumb down 4

  4. Guadalupe Armendariz says:

    Howdy. Very first I need to say that I truly like your blog, just determined it the past week but I’ve been following it constantly since then.

    I seem to consent with most of your views and opinions and this post is no different. absolutely agree with you.

    Thank you for a wonderful weblog and I hope you keep up the excellent perform. If you do I will continue to look over it.

    Have a great day.

    Like or Dislike: Thumb up 1 Thumb down 2

  5. Troy Vorse says:

    Hidden due to low comment rating. Click here to see.

    Poorly-rated. Like or Dislike: Thumb up 0 Thumb down 4

  6. Avery Dzurnak says:

    Hidden due to low comment rating. Click here to see.

    Poorly-rated. Like or Dislike: Thumb up 0 Thumb down 3

  7. Bob Gogerty says:

    That is some inspirational stuff. Never knew that opinions could be this varied. Thanks for all the enthusiasm to offer such helpful information here.

    Like or Dislike: Thumb up 0 Thumb down 2

  8. Russel Fontanini says:

    Hi….Just wanted to give my Thanks for providing this information to all of us…its geatly appeciated and i look forward to seeing any thing else you may post in the future..A+

    Like or Dislike: Thumb up 0 Thumb down 1

  9. Maygan108 says:

    Pretty nice post. I just stumbled upon your blog and wanted to say that I’ve truly enjoyed browsing your blog posts.

    Like or Dislike: Thumb up 0 Thumb down 0

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>