congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SqlMapClientImpl.queryForList
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.ibatis/ibatis-sqlmap

protected static Object getResult(SqlMapClientImpl client, String statementName, Object parameterObject, Class targetType) throws SQLException {
 Object value = null;
 if (DomCollectionTypeMarker.class.isAssignableFrom(targetType)) {
  value = client.queryForList(statementName, parameterObject);
 } else if (Set.class.isAssignableFrom(targetType)) {
  value = new HashSet(client.queryForList(statementName, parameterObject));
 } else if (Collection.class.isAssignableFrom(targetType)) {
  value = client.queryForList(statementName, parameterObject);
 } else if (targetType.isArray()) {
  List list = client.queryForList(statementName, parameterObject);
  value = listToArray(list, targetType.getComponentType());
 } else {
  value = client.queryForObject(statementName, parameterObject);
 }
 return value;
}
origin: org.apache.ibatis/com.springsource.com.ibatis

protected static Object getResult(SqlMapClientImpl client, String statementName, Object parameterObject, Class targetType) throws SQLException {
 Object value = null;
 if (DomCollectionTypeMarker.class.isAssignableFrom(targetType)) {
  value = client.queryForList(statementName, parameterObject);
 } else if (Set.class.isAssignableFrom(targetType)) {
  value = new HashSet(client.queryForList(statementName, parameterObject));
 } else if (Collection.class.isAssignableFrom(targetType)) {
  value = client.queryForList(statementName, parameterObject);
 } else if (targetType.isArray()) {
  List list = client.queryForList(statementName, parameterObject);
  value = listToArray(list, targetType.getComponentType());
 } else {
  value = client.queryForObject(statementName, parameterObject);
 }
 return value;
}
com.ibatis.sqlmap.engine.implSqlMapClientImplqueryForList

Popular methods of SqlMapClientImpl

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

Popular in Java

  • Making http post requests using okhttp
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Menu (java.awt)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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