congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SqlMapClientImpl.isEnhancementEnabled
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.isEnhancementEnabled (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.implSqlMapClientImplisEnhancementEnabled

Popular methods of SqlMapClientImpl

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

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • putExtra (Intent)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • 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