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

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

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

origin: alibaba/druid

public void setLocal(String id, SqlMapExecutor executor) {
  IbatisStatementInfo stmtInfo = statementInfoMap.get(id);
  if (stmtInfo != null) {
    JdbcSqlStat.setContextSqlName(stmtInfo.getId());
    JdbcSqlStat.setContextSqlFile(stmtInfo.getResource());
    return;
  }
  Object statement = null;
  if (executor instanceof SqlMapSessionImpl) {
    statement = ((SqlMapSessionImpl) executor).getMappedStatement(id);
  }
  if (executor instanceof SqlMapClientImpl) {
    statement = ((SqlMapClientImpl) executor).getMappedStatement(id);
  }
  if (statement == null) {
    return;
  }
  String stmtId = IbatisUtils.getId(statement);
  String stmtResource = IbatisUtils.getResource(statement);
  stmtInfo = new IbatisStatementInfo(stmtId, stmtResource);
  statementInfoMap.putIfAbsent(id, stmtInfo);
  
  JdbcSqlStat.setContextSqlName(stmtId);
  JdbcSqlStat.setContextSqlFile(stmtResource);
}
origin: com.alibaba/druid

public void setLocal(String id, SqlMapExecutor executor) {
  IbatisStatementInfo stmtInfo = statementInfoMap.get(id);
  if (stmtInfo != null) {
    JdbcSqlStat.setContextSqlName(stmtInfo.getId());
    JdbcSqlStat.setContextSqlFile(stmtInfo.getResource());
    return;
  }
  Object statement = null;
  if (executor instanceof SqlMapSessionImpl) {
    statement = ((SqlMapSessionImpl) executor).getMappedStatement(id);
  }
  if (executor instanceof SqlMapClientImpl) {
    statement = ((SqlMapClientImpl) executor).getMappedStatement(id);
  }
  if (statement == null) {
    return;
  }
  String stmtId = IbatisUtils.getId(statement);
  String stmtResource = IbatisUtils.getResource(statement);
  stmtInfo = new IbatisStatementInfo(stmtId, stmtResource);
  statementInfoMap.putIfAbsent(id, stmtInfo);
  
  JdbcSqlStat.setContextSqlName(stmtId);
  JdbcSqlStat.setContextSqlFile(stmtResource);
}
origin: alibaba/cobarclient

protected String getSqlByStatementName(String statementName, Object parameterObject) {
  SqlMapClientImpl sqlMapClientImpl = (SqlMapClientImpl) getSqlMapClient();
  Sql sql = sqlMapClientImpl.getMappedStatement(statementName).getSql();
  if (sql instanceof StaticSql) {
    return sql.getSql(null, parameterObject);
  } else {
    logger.info("dynamic sql can only return sql id.");
    return statementName;
  }
}
origin: org.apache.ibatis/ibatis-sqlmap

SqlMapClientImpl client = (SqlMapClientImpl) statementScope.getSession().getSqlMapClient();
MappedStatement mappedStatement = client.getMappedStatement(statementName);
Class parameterType = mappedStatement.getParameterClass();
Object parameterObject = null;
origin: org.apache.ibatis/com.springsource.com.ibatis

SqlMapClientImpl client = (SqlMapClientImpl) statementScope.getSession().getSqlMapClient();
MappedStatement mappedStatement = client.getMappedStatement(statementName);
Class parameterType = mappedStatement.getParameterClass();
Object parameterObject = null;
com.ibatis.sqlmap.engine.implSqlMapClientImplgetMappedStatement

Popular methods of SqlMapClientImpl

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

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JFrame (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top 12 Jupyter Notebook extensions
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