Java Reference
In-Depth Information
Table 3.3 Built-in type alias definitions that save you from having to type some of these very
long class names (continued)
Alias
Type
Data types (continued)
list
java.util.List
arraylist
java.util.ArrayList
collection
java.util.Collection
iterator
java.util.Iterator
Data source factory types
SIMPLE
com.ibatis.sqlmap.engine.datasource.SimpleDataSourceFactory
DBCP
com.ibatis.sqlmap.engine.datasource.DbcpDataSourceFactory
JNDI
com.ibatis.sqlmap.engine.datasource.JndiDataSourceFactory
Cache controller types
FIFO
com.ibatis.sqlmap.engine.cache.fifo.FifoCacheController
LRU
com.ibatis.sqlmap.engine.cache.lru.LruCacheController
MEMORY
com.ibatis.sqlmap.engine.cache.memory.MemoryCacheController
OSCACHE
com.ibatis.sqlmap.engine.cache.oscache.OSCacheController
XML result types
Dom
com.ibatis.sqlmap.engine.type.DomTypeMarker
domCollection
com.ibatis.sqlmap.engine.type.DomCollectionTypeMarker
Xml
com.ibatis.sqlmap.engine.type.XmlTypeMarker
XmlCollection
com.ibatis.sqlmap.engine.type.XmlCollectionTypeMarker
The built-in type aliases are real time-savers, but remember that you can also
define your own to simplify things even more.
3.6.5
The <transactionManager> element
Because i BATIS is about making database access simpler, it will deal with database
transactions for you. While transaction management will be discussed in greater
detail in chapter 8, what it means for now is that when you are using i BATIS , some
sort of transaction manager implementation is required. There are several pre-
defined transaction managers that you can choose from. The type attribute of the
<transactionManager> element is used to specify which transaction manager should
be used. Several implementations are provided out of the box, as listed in table 3.4.
Search WWH ::




Custom Search