IBatis Tutorial Part 3 – SQLMapConfig.xml optional settings

August 8th, 2008 by admin Leave a reply »

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

Advertisement

9 comments

  1. Dinesh says:

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

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

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

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

  3. 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 3

  4. Troy Vorse says:

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

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

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

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

  6. Bob Gogerty says:

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

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

  7. 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

  8. 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