Java Doc for SqlMapExecutorDelegate.java in  » Database-ORM » iBATIS » com » ibatis » sqlmap » engine » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » iBATIS » com.ibatis.sqlmap.engine.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate

SqlMapExecutorDelegate
public class SqlMapExecutorDelegate (Code)
The workhorse that really runs the SQL


Field Summary
final public static  intDEFAULT_MAX_REQUESTS
    
final public static  intDEFAULT_MAX_SESSIONS
    
final public static  intDEFAULT_MAX_TRANSACTIONS
    
protected  SqlExecutorsqlExecutor
    

Constructor Summary
public  SqlMapExecutorDelegate()
    

Method Summary
public  voidaddCacheModel(CacheModel model)
    
public  voidaddMappedStatement(MappedStatement ms)
    
public  voidaddParameterMap(ParameterMap map)
    
public  voidaddResultMap(ResultMap map)
    
protected  voidautoCommitTransaction(SessionScope session, boolean autoStart)
    
protected  voidautoEndTransaction(SessionScope session, boolean autoStart)
    
protected  TransactionautoStartTransaction(SessionScope session, boolean autoStart, Transaction trans)
    
public  voidcommitTransaction(SessionScope session)
    
public  intdelete(SessionScope session, String id, Object param)
    
public  voidendTransaction(SessionScope session)
    
public  booleanequals(Object obj)
    
public  intexecuteBatch(SessionScope session)
    
public  ListexecuteBatchDetailed(SessionScope session)
     Execute a batch for a session
Parameters:
  session - - the session - a List of BatchResult objects (may be null if no batchhas been initiated).
public  voidflushDataCache()
    
public  voidflushDataCache(String id)
    
public  CacheModelgetCacheModel(String id)
    
public  IteratorgetCacheModelNames()
    
public  DataExchangeFactorygetDataExchangeFactory()
    
public  DataSourcegetDataSource()
    
public  MappedStatementgetMappedStatement(String id)
    
public  IteratorgetMappedStatementNames()
    
public  intgetMaxRequests()
    
public  intgetMaxSessions()
    
public  intgetMaxTransactions()
    
public  ParameterMapgetParameterMap(String id)
    
public  IteratorgetParameterMapNames()
    
public  ResultMapgetResultMap(String id)
    
public  IteratorgetResultMapNames()
    
public  ResultObjectFactorygetResultObjectFactory()
    
public  SqlExecutorgetSqlExecutor()
    
public  TransactiongetTransaction(SessionScope session)
    
public  TransactionManagergetTxManager()
    
public  TypeHandlerFactorygetTypeHandlerFactory()
    
public  inthashCode()
    
public  Objectinsert(SessionScope session, String id, Object param)
    
public  booleanisCacheModelsEnabled()
    
public  booleanisEnhancementEnabled()
    
public  booleanisLazyLoadingEnabled()
    
public  booleanisStatementCacheEnabled()
    
protected  RequestScopepopRequest(SessionScope session, MappedStatement mappedStatement)
    
protected  SessionScopepopSession()
    
protected  voidpushRequest(RequestScope request)
    
protected  voidpushSession(SessionScope session)
    
public  ListqueryForList(SessionScope session, String id, Object paramObject)
    
public  ListqueryForList(SessionScope session, String id, Object paramObject, int skip, int max)
    
public  MapqueryForMap(SessionScope session, String id, Object paramObject, String keyProp)
     Execute a query for a map.
public  MapqueryForMap(SessionScope session, String id, Object paramObject, String keyProp, String valueProp)
     Execute a query for a map.
public  ObjectqueryForObject(SessionScope session, String id, Object paramObject)
    
public  ObjectqueryForObject(SessionScope session, String id, Object paramObject, Object resultObject)
    
public  PaginatedListqueryForPaginatedList(SessionScope session, String id, Object paramObject, int pageSize)
    
public  voidqueryWithRowHandler(SessionScope session, String id, Object paramObject, RowHandler rowHandler)
     Execute a query with a row handler.
public  voidsetCacheModelsEnabled(boolean cacheModelsEnabled)
    
public  voidsetEnhancementEnabled(boolean enhancementEnabled)
    
public  voidsetLazyLoadingEnabled(boolean lazyLoadingEnabled)
    
public  voidsetMaxRequests(int maxRequests)
    
public  voidsetMaxSessions(int maxSessions)
    
public  voidsetMaxTransactions(int maxTransactions)
    
public  voidsetResultObjectFactory(ResultObjectFactory resultObjectFactory)
    
public  voidsetStatementCacheEnabled(boolean statementCacheEnabled)
    
public  voidsetTxManager(TransactionManager txManager)
    
public  voidsetUserProvidedTransaction(SessionScope session, Connection userConnection)
    
public  voidstartBatch(SessionScope session)
    
public  voidstartTransaction(SessionScope session)
    
public  voidstartTransaction(SessionScope session, int transactionIsolation)
     Start a transaction on the session with the specified isolation level.
public  intupdate(SessionScope session, String id, Object param)
    

Field Detail
DEFAULT_MAX_REQUESTS
final public static int DEFAULT_MAX_REQUESTS(Code)
The default maximum number of requests



DEFAULT_MAX_SESSIONS
final public static int DEFAULT_MAX_SESSIONS(Code)
The default maximum number of sessions



DEFAULT_MAX_TRANSACTIONS
final public static int DEFAULT_MAX_TRANSACTIONS(Code)
The default maximum number of transactions



sqlExecutor
protected SqlExecutor sqlExecutor(Code)




Constructor Detail
SqlMapExecutorDelegate
public SqlMapExecutorDelegate()(Code)
Default constructor




Method Detail
addCacheModel
public void addCacheModel(CacheModel model)(Code)
Add a cache model
Parameters:
  model - - the model to add



addMappedStatement
public void addMappedStatement(MappedStatement ms)(Code)
Add a mapped statement
Parameters:
  ms - - the mapped statement to add



addParameterMap
public void addParameterMap(ParameterMap map)(Code)
Add a parameter map
Parameters:
  map - - the map to add



addResultMap
public void addResultMap(ResultMap map)(Code)
Add a result map
Parameters:
  map - - the result map to add



autoCommitTransaction
protected void autoCommitTransaction(SessionScope session, boolean autoStart) throws SQLException(Code)



autoEndTransaction
protected void autoEndTransaction(SessionScope session, boolean autoStart) throws SQLException(Code)



autoStartTransaction
protected Transaction autoStartTransaction(SessionScope session, boolean autoStart, Transaction trans) throws SQLException(Code)



commitTransaction
public void commitTransaction(SessionScope session) throws SQLException(Code)
Commit the transaction on a session
Parameters:
  session - - the session
throws:
  SQLException - - if the transaction could not be committed



delete
public int delete(SessionScope session, String id, Object param) throws SQLException(Code)
Execute a delete statement
Parameters:
  session - - the session scope
Parameters:
  id - - the statement ID
Parameters:
  param - - the parameter object - the number of rows deleted
throws:
  SQLException - - if the delete fails



endTransaction
public void endTransaction(SessionScope session) throws SQLException(Code)
End the transaction on a session
Parameters:
  session - - the session
throws:
  SQLException - - if the transaction could not be ended



equals
public boolean equals(Object obj)(Code)



executeBatch
public int executeBatch(SessionScope session) throws SQLException(Code)
Execute a batch for a session
Parameters:
  session - - the session - the number of rows impacted by the batch
throws:
  SQLException - - if the batch fails



executeBatchDetailed
public List executeBatchDetailed(SessionScope session) throws SQLException, BatchException(Code)
Execute a batch for a session
Parameters:
  session - - the session - a List of BatchResult objects (may be null if no batchhas been initiated). There will be one BatchResult object in thelist for each sub-batch executed
throws:
  SQLException - if a database access error occurs, or the drivedoes not support batch statements
throws:
  BatchException - if the driver throws BatchUpdateException



flushDataCache
public void flushDataCache()(Code)
Flush all of the data caches



flushDataCache
public void flushDataCache(String id)(Code)
Flush a single cache by ID
Parameters:
  id - - the ID



getCacheModel
public CacheModel getCacheModel(String id)(Code)
Get a cache model by ID
Parameters:
  id - - the ID - the cache model



getCacheModelNames
public Iterator getCacheModelNames()(Code)
Get an iterator of the cache models - the cache models



getDataExchangeFactory
public DataExchangeFactory getDataExchangeFactory()(Code)
Getter for the DataExchangeFactory - the DataExchangeFactory



getDataSource
public DataSource getDataSource()(Code)
Get the DataSource for the session - the DataSource



getMappedStatement
public MappedStatement getMappedStatement(String id)(Code)
Get a mappedstatement by its ID
Parameters:
  id - - the statement ID - the mapped statement



getMappedStatementNames
public Iterator getMappedStatementNames()(Code)
Get an iterator of the mapped statements - the iterator



getMaxRequests
public int getMaxRequests()(Code)
Getter for the maximum number of requests - the maximum number of requests



getMaxSessions
public int getMaxSessions()(Code)
Getter for the maximum number of sessions - the maximum number of sessions



getMaxTransactions
public int getMaxTransactions()(Code)
Getter for the the maximum number of transactions - the maximum number of transactions



getParameterMap
public ParameterMap getParameterMap(String id)(Code)
Get a parameter map by ID
Parameters:
  id - - the ID - the parameter map



getParameterMapNames
public Iterator getParameterMapNames()(Code)
Get an iterator of all of the parameter maps - the parameter maps



getResultMap
public ResultMap getResultMap(String id)(Code)
Get a result map by ID
Parameters:
  id - - the ID - the result map



getResultMapNames
public Iterator getResultMapNames()(Code)
Get an iterator of the result maps - the result maps



getResultObjectFactory
public ResultObjectFactory getResultObjectFactory()(Code)



getSqlExecutor
public SqlExecutor getSqlExecutor()(Code)
Getter for the SqlExecutor the SqlExecutor



getTransaction
public Transaction getTransaction(SessionScope session)(Code)
Get a transaction for the session
Parameters:
  session - - the session - the transaction



getTxManager
public TransactionManager getTxManager()(Code)
Getter for the transaction manager - the transaction manager



getTypeHandlerFactory
public TypeHandlerFactory getTypeHandlerFactory()(Code)
Getter for the TypeHandlerFactory - the TypeHandlerFactory



hashCode
public int hashCode()(Code)



insert
public Object insert(SessionScope session, String id, Object param) throws SQLException(Code)
Call an insert statement by ID
Parameters:
  session - - the session
Parameters:
  id - - the statement ID
Parameters:
  param - - the parameter object - the generated key (or null)
throws:
  SQLException - - if the insert fails



isCacheModelsEnabled
public boolean isCacheModelsEnabled()(Code)
Getter for the status of caching - the status



isEnhancementEnabled
public boolean isEnhancementEnabled()(Code)
Getter for the status of CGLib enhancements - the status



isLazyLoadingEnabled
public boolean isLazyLoadingEnabled()(Code)
Getter for the status of lazy loading - the status



isStatementCacheEnabled
public boolean isStatementCacheEnabled()(Code)



popRequest
protected RequestScope popRequest(SessionScope session, MappedStatement mappedStatement)(Code)



popSession
protected SessionScope popSession()(Code)



pushRequest
protected void pushRequest(RequestScope request)(Code)



pushSession
protected void pushSession(SessionScope session)(Code)



queryForList
public List queryForList(SessionScope session, String id, Object paramObject) throws SQLException(Code)
Execute a query for a list
Parameters:
  session - - the session scope
Parameters:
  id - - the statement ID
Parameters:
  paramObject - - the parameter object - the data list
throws:
  SQLException - - if the query fails



queryForList
public List queryForList(SessionScope session, String id, Object paramObject, int skip, int max) throws SQLException(Code)
Execute a query for a list
Parameters:
  session - - the session scope
Parameters:
  id - - the statement ID
Parameters:
  paramObject - - the parameter object
Parameters:
  skip - - the number of rows to skip
Parameters:
  max - - the maximum number of rows to return - the data list
throws:
  SQLException - - if the query fails



queryForMap
public Map queryForMap(SessionScope session, String id, Object paramObject, String keyProp) throws SQLException(Code)
Execute a query for a map. The map has the table key as the key, and the results as the map data
Parameters:
  session - - the session scope
Parameters:
  id - - the statement ID
Parameters:
  paramObject - - the parameter object
Parameters:
  keyProp - - the key property (from the results for the map) - the Map
throws:
  SQLException - - if the query fails



queryForMap
public Map queryForMap(SessionScope session, String id, Object paramObject, String keyProp, String valueProp) throws SQLException(Code)
Execute a query for a map. The map has the table key as the key, and a property from the results as the map data
Parameters:
  session - - the session scope
Parameters:
  id - - the statement ID
Parameters:
  paramObject - - the parameter object
Parameters:
  keyProp - - the property for the map key
Parameters:
  valueProp - - the property for the map data - the Map
throws:
  SQLException - - if the query fails



queryForObject
public Object queryForObject(SessionScope session, String id, Object paramObject) throws SQLException(Code)
Execute a select for a single object
Parameters:
  session - - the session scope
Parameters:
  id - - the statement ID
Parameters:
  paramObject - - the parameter object - the result of the query
throws:
  SQLException - - if the query fails



queryForObject
public Object queryForObject(SessionScope session, String id, Object paramObject, Object resultObject) throws SQLException(Code)
Execute a select for a single object
Parameters:
  session - - the session scope
Parameters:
  id - - the statement ID
Parameters:
  paramObject - - the parameter object
Parameters:
  resultObject - - the result object (if not supplied or null, a new object will be created) - the result of the query
throws:
  SQLException - - if the query fails



queryForPaginatedList
public PaginatedList queryForPaginatedList(SessionScope session, String id, Object paramObject, int pageSize) throws SQLException(Code)
Execute a query and return a paginated list
Parameters:
  session - - the session scope
Parameters:
  id - - the statement ID
Parameters:
  paramObject - - the parameter object
Parameters:
  pageSize - - the page size - the data list
throws:
  SQLException - - if the query fails



queryWithRowHandler
public void queryWithRowHandler(SessionScope session, String id, Object paramObject, RowHandler rowHandler) throws SQLException(Code)
Execute a query with a row handler. The row handler is called once per row in the query results.
Parameters:
  session - - the session scope
Parameters:
  id - - the statement ID
Parameters:
  paramObject - - the parameter object
Parameters:
  rowHandler - - the row handler
throws:
  SQLException - - if the query fails



setCacheModelsEnabled
public void setCacheModelsEnabled(boolean cacheModelsEnabled)(Code)
Turn on or off caching
Parameters:
  cacheModelsEnabled - - the new state of caching



setEnhancementEnabled
public void setEnhancementEnabled(boolean enhancementEnabled)(Code)
Turn on or off CGLib enhancements
Parameters:
  enhancementEnabled - - the new state



setLazyLoadingEnabled
public void setLazyLoadingEnabled(boolean lazyLoadingEnabled)(Code)
Turn on or off lazy loading
Parameters:
  lazyLoadingEnabled - - the new state of caching



setMaxRequests
public void setMaxRequests(int maxRequests)(Code)
Setter for the maximum number of requests
Parameters:
  maxRequests - - the maximum number of requests



setMaxSessions
public void setMaxSessions(int maxSessions)(Code)
Setter for the maximum number of sessions
Parameters:
  maxSessions - - the maximum number of sessions



setMaxTransactions
public void setMaxTransactions(int maxTransactions)(Code)
Setter for the maximum number of transactions
Parameters:
  maxTransactions - - the maximum number of transactions



setResultObjectFactory
public void setResultObjectFactory(ResultObjectFactory resultObjectFactory)(Code)



setStatementCacheEnabled
public void setStatementCacheEnabled(boolean statementCacheEnabled)(Code)



setTxManager
public void setTxManager(TransactionManager txManager)(Code)
Setter for the transaction manager
Parameters:
  txManager - - the transaction manager



setUserProvidedTransaction
public void setUserProvidedTransaction(SessionScope session, Connection userConnection)(Code)
Use a user-provided transaction for a session
Parameters:
  session - - the session scope
Parameters:
  userConnection - - the user supplied connection



startBatch
public void startBatch(SessionScope session)(Code)
Start a batch for a session
Parameters:
  session - - the session



startTransaction
public void startTransaction(SessionScope session) throws SQLException(Code)
Start a transaction on the session
Parameters:
  session - - the session
throws:
  SQLException - - if the transaction could not be started



startTransaction
public void startTransaction(SessionScope session, int transactionIsolation) throws SQLException(Code)
Start a transaction on the session with the specified isolation level.
Parameters:
  session - - the session
throws:
  SQLException - - if the transaction could not be started



update
public int update(SessionScope session, String id, Object param) throws SQLException(Code)
Execute an update statement
Parameters:
  session - - the session scope
Parameters:
  id - - the statement ID
Parameters:
  param - - the parameter object - the number of rows updated
throws:
  SQLException - - if the update fails



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.