Tabnine Logo
SqlMapClientImpl.isLazyLoadingEnabled
Code IndexAdd Tabnine to your IDE (free)

How to use
isLazyLoadingEnabled
method
in
com.ibatis.sqlmap.engine.impl.SqlMapClientImpl

Best Java code snippets using com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.isLazyLoadingEnabled (Showing top 2 results out of 315)

origin: org.apache.ibatis/com.springsource.com.ibatis

/**
 * Loads a result lazily
 *
 * @param client          - the client creating the object
 * @param statementName   - the name of the statement to be used
 * @param parameterObject - the parameters for the statement
 * @param targetType      - the target type of the result
 * @return the loaded result
 * @throws SQLException
 */
public static Object loadResult(SqlMapClientImpl client, String statementName, Object parameterObject, Class targetType)
  throws SQLException {
 Object value = null;
 if (client.isLazyLoadingEnabled()) {
  if (client.isEnhancementEnabled()) {
   EnhancedLazyResultLoader lazy = new EnhancedLazyResultLoader(client, statementName, parameterObject, targetType);
   value = lazy.loadResult();
  } else {
   LazyResultLoader lazy = new LazyResultLoader(client, statementName, parameterObject, targetType);
   value = lazy.loadResult();
  }
 } else {
  value = getResult(client, statementName, parameterObject, targetType);
 }
 return value;
}
origin: org.apache.ibatis/ibatis-sqlmap

/**
 * Loads a result lazily
 *
 * @param client          - the client creating the object
 * @param statementName   - the name of the statement to be used
 * @param parameterObject - the parameters for the statement
 * @param targetType      - the target type of the result
 * @return the loaded result
 * @throws SQLException
 */
public static Object loadResult(SqlMapClientImpl client, String statementName, Object parameterObject, Class targetType)
  throws SQLException {
 Object value = null;
 if (client.isLazyLoadingEnabled()) {
  if (client.isEnhancementEnabled()) {
   EnhancedLazyResultLoader lazy = new EnhancedLazyResultLoader(client, statementName, parameterObject, targetType);
   value = lazy.loadResult();
  } else {
   LazyResultLoader lazy = new LazyResultLoader(client, statementName, parameterObject, targetType);
   value = lazy.loadResult();
  }
 } else {
  value = getResult(client, statementName, parameterObject, targetType);
 }
 return value;
}
com.ibatis.sqlmap.engine.implSqlMapClientImplisLazyLoadingEnabled

Popular methods of SqlMapClientImpl

  • getDelegate
  • getMappedStatement
  • openSession
  • <init>
    Constructor to supply a delegate
  • getCurrentConnection
  • getLocalSqlMapSession
  • getResultObjectFactory
  • getSqlExecutor
  • isEnhancementEnabled
  • queryForList
  • queryForObject
  • getSession
    TODO : DEPRECATED
  • queryForObject,
  • getSession

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now