Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.dao.engine.builder.xml
Class XmlDaoManagerBuilder  view XmlDaoManagerBuilder download XmlDaoManagerBuilder.java

java.lang.Object
  extended bycom.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder

public class XmlDaoManagerBuilder
extends java.lang.Object

NOT THREAD SAFE. USE SEPARATE INSTANCES PER THREAD.


Nested Class Summary
private static class XmlDaoManagerBuilder.SimpleErrorHandler
          ********************************** ******* SimpleErrorHandler ******* **********************************
 
Field Summary
private static java.lang.String CONTEXT_ELEMENT
           
private static java.lang.String DAO_CONFIG_ELEMENT
           
private static java.lang.String DAO_ELEMENT
           
private  java.util.Properties properties
           
private static java.lang.String PROPERTIES_ELEMENT
           
private static java.lang.String PROPERTY_ELEMENT
           
private static java.lang.String TRANS_MGR_ELEMENT
           
private  java.util.Map typeAliases
           
private  boolean validationEnabled
           
 
Constructor Summary
XmlDaoManagerBuilder()
           
 
Method Summary
 com.ibatis.dao.client.DaoManager buildDaoManager(java.io.Reader reader)
           
 com.ibatis.dao.client.DaoManager buildDaoManager(java.io.Reader reader, java.util.Properties props)
           
private  org.w3c.dom.Document getDoc(java.io.Reader reader)
           
 boolean isValidationEnabled()
           
private  java.util.Properties parseAttributes(org.w3c.dom.Node n)
           
private  com.ibatis.dao.engine.impl.DaoContext parseContext(org.w3c.dom.Element contextElement, com.ibatis.dao.engine.impl.StandardDaoManager daoManager)
           
private  com.ibatis.dao.engine.impl.DaoImpl parseDao(org.w3c.dom.Element element, com.ibatis.dao.engine.impl.StandardDaoManager daoManager, com.ibatis.dao.engine.impl.DaoContext daoContext)
           
private  java.util.Properties parsePropertyElements(org.w3c.dom.Element propsParentElement)
           
private  java.lang.String parsePropertyTokens(java.lang.String string)
           
private  com.ibatis.dao.engine.transaction.DaoTransactionManager parseTransactionManager(org.w3c.dom.Element transPoolElement)
           
private  java.lang.String resolveAlias(java.lang.String string)
           
 void setValidationEnabled(boolean validationEnabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DAO_CONFIG_ELEMENT

private static final java.lang.String DAO_CONFIG_ELEMENT
See Also:
Constant Field Values

PROPERTIES_ELEMENT

private static final java.lang.String PROPERTIES_ELEMENT
See Also:
Constant Field Values

CONTEXT_ELEMENT

private static final java.lang.String CONTEXT_ELEMENT
See Also:
Constant Field Values

TRANS_MGR_ELEMENT

private static final java.lang.String TRANS_MGR_ELEMENT
See Also:
Constant Field Values

PROPERTY_ELEMENT

private static final java.lang.String PROPERTY_ELEMENT
See Also:
Constant Field Values

DAO_ELEMENT

private static final java.lang.String DAO_ELEMENT
See Also:
Constant Field Values

properties

private java.util.Properties properties

validationEnabled

private boolean validationEnabled

typeAliases

private java.util.Map typeAliases
Constructor Detail

XmlDaoManagerBuilder

public XmlDaoManagerBuilder()
Method Detail

buildDaoManager

public com.ibatis.dao.client.DaoManager buildDaoManager(java.io.Reader reader,
                                                        java.util.Properties props)
                                                 throws com.ibatis.dao.client.DaoException

buildDaoManager

public com.ibatis.dao.client.DaoManager buildDaoManager(java.io.Reader reader)
                                                 throws com.ibatis.dao.client.DaoException

isValidationEnabled

public boolean isValidationEnabled()

setValidationEnabled

public void setValidationEnabled(boolean validationEnabled)

parseContext

private com.ibatis.dao.engine.impl.DaoContext parseContext(org.w3c.dom.Element contextElement,
                                                           com.ibatis.dao.engine.impl.StandardDaoManager daoManager)
                                                    throws com.ibatis.dao.client.DaoException

parseTransactionManager

private com.ibatis.dao.engine.transaction.DaoTransactionManager parseTransactionManager(org.w3c.dom.Element transPoolElement)
                                                                                 throws com.ibatis.dao.client.DaoException

parseDao

private com.ibatis.dao.engine.impl.DaoImpl parseDao(org.w3c.dom.Element element,
                                                    com.ibatis.dao.engine.impl.StandardDaoManager daoManager,
                                                    com.ibatis.dao.engine.impl.DaoContext daoContext)

parsePropertyElements

private java.util.Properties parsePropertyElements(org.w3c.dom.Element propsParentElement)

parseAttributes

private java.util.Properties parseAttributes(org.w3c.dom.Node n)

parsePropertyTokens

private java.lang.String parsePropertyTokens(java.lang.String string)

getDoc

private org.w3c.dom.Document getDoc(java.io.Reader reader)

resolveAlias

private java.lang.String resolveAlias(java.lang.String string)