积分充值
 首页
前端开发
AngularDartElectronFlutterHTML/CSSJavaScriptReactSvelteTypeScriptVue.js构建工具
后端开发
.NetC#C++C语言DenoffmpegGoIdrisJavaJuliaKotlinLeanMakefilenimNode.jsPascalPHPPythonRISC-VRubyRustSwiftUML其它语言区块链开发测试微服务敏捷开发架构设计汇编语言
数据库
Apache DorisApache HBaseCassandraClickHouseFirebirdGreenplumMongoDBMySQLPieCloudDBPostgreSQLRedisSQLSQLiteTiDBVitess数据库中间件数据库工具数据库设计
系统运维
AndroidDevOpshttpdJenkinsLinuxPrometheusTraefikZabbix存储网络与安全
云计算&大数据
Apache APISIXApache FlinkApache KarafApache KyuubiApache OzonedaprDockerHadoopHarborIstioKubernetesOpenShiftPandasrancherRocketMQServerlessService MeshVirtualBoxVMWare云原生CNCF机器学习边缘计算
综合其他
BlenderGIMPKiCadKritaWeblate产品与服务人工智能亿图数据可视化版本控制笔试面试
文库资料
前端
AngularAnt DesignBabelBootstrapChart.jsCSS3EchartsElectronHighchartsHTML/CSSHTML5JavaScriptJerryScriptJestReactSassTypeScriptVue前端工具小程序
后端
.NETApacheC/C++C#CMakeCrystalDartDenoDjangoDubboErlangFastifyFlaskGinGoGoFrameGuzzleIrisJavaJuliaLispLLVMLuaMatplotlibMicronautnimNode.jsPerlPHPPythonQtRPCRubyRustR语言ScalaShellVlangwasmYewZephirZig算法
移动端
AndroidAPP工具FlutterFramework7HarmonyHippyIoniciOSkotlinNativeObject-CPWAReactSwiftuni-appWeex
数据库
ApacheArangoDBCassandraClickHouseCouchDBCrateDBDB2DocumentDBDorisDragonflyDBEdgeDBetcdFirebirdGaussDBGraphGreenPlumHStreamDBHugeGraphimmudbIndexedDBInfluxDBIoTDBKey-ValueKitDBLevelDBM3DBMatrixOneMilvusMongoDBMySQLNavicatNebulaNewSQLNoSQLOceanBaseOpenTSDBOracleOrientDBPostgreSQLPrestoDBQuestDBRedisRocksDBSequoiaDBServerSkytableSQLSQLiteTiDBTiKVTimescaleDBYugabyteDB关系型数据库数据库数据库ORM数据库中间件数据库工具时序数据库
云计算&大数据
ActiveMQAerakiAgentAlluxioAntreaApacheApache APISIXAPISIXBFEBitBookKeeperChaosChoerodonCiliumCloudStackConsulDaprDataEaseDC/OSDockerDrillDruidElasticJobElasticSearchEnvoyErdaFlinkFluentGrafanaHadoopHarborHelmHudiInLongKafkaKnativeKongKubeCubeKubeEdgeKubeflowKubeOperatorKubernetesKubeSphereKubeVelaKumaKylinLibcloudLinkerdLonghornMeiliSearchMeshNacosNATSOKDOpenOpenEBSOpenKruiseOpenPitrixOpenSearchOpenStackOpenTracingOzonePaddlePaddlePolicyPulsarPyTorchRainbondRancherRediSearchScikit-learnServerlessShardingSphereShenYuSparkStormSupersetXuperChainZadig云原生CNCF人工智能区块链数据挖掘机器学习深度学习算法工程边缘计算
UI&美工&设计
BlenderKritaSketchUI设计
网络&系统&运维
AnsibleApacheAWKCeleryCephCI/CDCurveDevOpsGoCDHAProxyIstioJenkinsJumpServerLinuxMacNginxOpenRestyPrometheusServertraefikTrafficUnixWindowsZabbixZipkin安全防护系统内核网络运维监控
综合其它
文章资讯
 上传文档  发布文章  登录账户
IT文库
  • 综合
  • 文档
  • 文章

无数据

分类

全部数据库(9)数据库中间件(7)TiDB(2)

语言

全部中文(简体)(6)英语(3)

格式

全部PDF文档 PDF(9)
 
本次搜索耗时 0.318 秒,为您找到相关结果约 9 个.
  • 全部
  • 数据库
  • 数据库中间件
  • TiDB
  • 全部
  • 中文(简体)
  • 英语
  • 全部
  • PDF文档 PDF
  • 默认排序
  • 最新排序
  • 页数排序
  • 大小排序
  • 全部时间
  • 最近一天
  • 最近一周
  • 最近一个月
  • 最近三个月
  • 最近半年
  • 最近一年
  • pdf文档 传智播客 mybatis 框架课程讲义

    SqlMapConfig.xml 中加载。 2、 通过 mybatis 环境等配置信息构造 SqlSessionFactory 即会话工厂 3、 由会话工厂创建 sqlSession 即会话,操作数据库需要通过 sqlSession 进行。 4、 mybatis 底层自定义了 Executor 执行器接口操作数据库,Executor 接口有两个实现,一个 是基本执行器、一个是缓存执行器。 5、 testFindUserById() { // 数据库会话实例 SqlSession sqlSession = null; try { // 创建数据库会话实例sqlSession sqlSession = sqlSessionFactory.openSession(); // 查询单个记录,根据用户id查询用户信息 User user = sqlSession.selectOne("test.findUserById" { if (sqlSession != null) { sqlSession.close(); } } } // 根据用户名称模糊查询用户信息 @Test public void testFindUserByUsername() { // 数据库会话实例 SqlSession sqlSession = null; try { // 创建数据库会话实例sqlSession sqlSession
    0 码力 | 75 页 | 1.16 MB | 1 年前
    3
  • pdf文档 Mybatis 3.3.0 中文用户指南

    SqlSessionFactory 中获取 中获取 SqlSession 既然有了 SqlSessionFactory ,顾名思义,我们就可以从中获得 SqlSession 的实例了。SqlSession 完全包含了面向数据库执行 SQL 命令所需的所有方法。你可以通过 SqlSession 实例来直接执行已映射的 SQL 语句。例如: SqlSession session = sqlSessionFactory 定 语句能够合理描述参数和返回值的接口(比如说BlogMapper.class),你现在不但可以执行更清晰和类型安全的代码,而且还不用担 心易错的字符串字面值以及强制类型转换。 例如: SqlSession session = sqlSessionFactory.openSession(); try { BlogMapper mapper = session.getMapper(BlogMapper PDFmyURL - the best online web to pdf conversion service 探究已映射的 探究已映射的 SQL 语句 语句 现在,或许你很想知道 SqlSession 和 Mapper 到底执行了什么操作,而 SQL 语句映射是个相当大的话题,可能会占去文档的大部分 篇幅。不过为了让你能够了解个大概,这里会给出几个例子。 在上面提到的两个例子中,一个语句应该是通过
    0 码力 | 98 页 | 2.03 MB | 1 年前
    3
  • pdf文档 尚硅谷 “玩转”Java 系列 - MyBatis

    getResourceAsReader(resource); //构建 sqlSession 的工厂 SqlSessionFactory sessionFactory = new SqlSessionFactoryBuilder().build(reader); //创建能执行映射文件中 sql 的 sqlSession SqlSession session = sessionFactory.openSession(); Android 资料下载,可访问尚硅谷(中国)官网 www.atguigu.com 下载区】 3). 在 dao 中调用: public User getUserById(int id) { SqlSession session = sessionFactory.openSession(); User user = session.selectOne(URI+".selectUser", id); return Android 资料下载,可访问尚硅谷(中国)官网 www.atguigu.com 下载区】 3). 在 dao 类中调用 public User getUserById(int id) { SqlSession session = sessionFactory.openSession(); UserMapper mapper = session.getMapper(UserMapper.class);
    0 码力 | 27 页 | 322.51 KB | 1 年前
    3
  • pdf文档 MYBATIS Quick Guide

    You can invoke the ‘insert’ mapped query using Java API as shown below − //Assume session is an SqlSession object. session.insert("Student.insert", student); Update To update values of an existing record You can invoke the update mapped query using Java API as shown below − //Assume session is an SqlSession object. session.update("Student.update",student); Delete To delete the values of an existing the delete mapped query using the delete method of SqlSession interface provided by MyBatis Java API as shown below − //Assume session is an SqlSession object. session.delete("Student.deleteById", 18);
    0 码力 | 34 页 | 301.72 KB | 1 年前
    3
  • pdf文档 MyBatis 框架尚硅谷 java 研究院版本:V 1.0

    = new SqlSessionFactoryBuilder().build(inputStream); System.out.println(sqlSessionFactory); SqlSession session = sqlSessionFactory.openSession(); try { JAVAEE 课程系列 ————————————————————————————— SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder() .build(inputStream); SqlSession session = sqlSessionFactory.openSession(); try { //Mapper接口:获取Mapper接口的 代理实现类对象 EmployeeMapper 默认情况下,只有一级缓存(SqlSession 级别的缓存,也称为本地缓存)开启。 4) 二级缓存需要手动开启和配置,他是基于 namespace 级别的缓存。 5) 为了提高扩展性。MyBatis 定义了缓存接口 Cache。我们可以通过实现 Cache 接口来自 定义二级缓存 6.2 一级缓存的使用 1) 一级缓存(local cache), 即本地缓存, 作用域默认为 sqlSession。当 Session
    0 码力 | 44 页 | 926.54 KB | 1 年前
    3
  • pdf文档 Mybatis 框架课程第二天

    MybastisCRUDTest { private InputStream in ; private SqlSessionFactory factory; private SqlSession session; private IUserDao userDao; @Test public void testFindOne() { SqlSessionFactoryBuilder builder = new SqlSessionFactoryBuilder(); //3.创建 SqlSession 工厂对象 factory = builder.build(in); //4.创建 SqlSession 对象 session = factory.openSession(); //5.创建 Dao 的代理对象 this.factory = factory; } @Override public List findAll() { SqlSession session = factory.openSession(); List users = session.selectList("com.itheima.dao.IUserDao
    0 码力 | 27 页 | 1.21 MB | 1 年前
    3
  • pdf文档 MYBATIS Dynamic SQL

    import java.util.List; import org.apache.ibatis.io.Resources; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; import org.apache.ibatis.session.SqlSessionFactoryBuilder; SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(reader); SqlSession session = sqlSessionFactory.openSession(); Student stud = new Student(); stud.setName(req_name);
    0 码力 | 5 页 | 69.51 KB | 1 年前
    3
  • pdf文档 TiDB v6.1 Documentation

    pingcap.model.Player; import com.pingcap.model.PlayerMapperEx; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; 204 import java.util.List; import java.util actory sessionFactory, Function< �→ PlayerMapperEx, Object> fn) { Object resultObject = null; SqlSession session = null; try { // open a session with autoCommit is false session = sessionFactory.openSession(false);
    0 码力 | 4487 页 | 84.44 MB | 1 年前
    3
  • pdf文档 TiDB v6.1 中文手册

    pingcap.model.Player; import com.pingcap.model.PlayerMapperEx; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; import java.util.List; import java.util ctory sessionFactory, Function fn) { Object resultObject = null; SqlSession session = null; try { // open a session with autoCommit is false session = sessionFactory.openSession(false);
    0 码力 | 3572 页 | 84.36 MB | 1 年前
    3
共 9 条
  • 1
前往
页
相关搜索词
传智播mybatis框架课程讲义Mybatis3.3中文用户指南硅谷玩转Java系列MyBatisMYBATISQuickGuidejava研究研究院版本1.0第二二天第二天DynamicSQLTiDBv6Documentation手册
IT文库
关于我们 文库协议 联系我们 意见反馈 免责声明
本站文档数据由用户上传或本站整理自互联网,不以营利为目的,供所有人免费下载和学习使用。如侵犯您的权益,请联系我们进行删除。
IT文库 ©1024 - 2025 | 站点地图
Powered By MOREDOC AI v3.3.0-beta.70
  • 关注我们的公众号【刻舟求荐】,给您不一样的精彩
    关注我们的公众号【刻舟求荐】,给您不一样的精彩