• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mybatis / scala / 444

29 Mar 2025 10:33PM CUT coverage: 0.0%. Remained the same
444

push

github

web-flow
Update ci.yaml

drop jdk 22 and 23-ea, add jdk 24

0 of 476 branches covered (0.0%)

0 of 996 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/mybatis-scala-core/src/main/scala/org/mybatis/scala/config/package.scala
1
/*
2
 *    Copyright 2011-2015 the original author or authors.
3
 *
4
 *    Licensed under the Apache License, Version 2.0 (the "License");
5
 *    you may not use this file except in compliance with the License.
6
 *    You may obtain a copy of the License at
7
 *
8
 *       https://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 *    Unless required by applicable law or agreed to in writing, software
11
 *    distributed under the License is distributed on an "AS IS" BASIS,
12
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *    See the License for the specific language governing permissions and
14
 *    limitations under the License.
15
 */
16
package org.mybatis.scala
17

18
/** Provides main configuration classes.
19
  * == Basic usage ==
20
  * Usual steps are:
21
  *  - Load the configuration from an external XML file
22
  *  - Add one or more configuration spaces with mapped statements
23
  *  - Create the persistenceContext
24
  *
25
  * == Code sample ==
26
  * {{{
27
  * val config = Configuration("META-INF/mybatis.xml")
28
  * config.addSpace("ns") { space =>
29
  *   space ++= MyDAO
30
  * }
31
  * val persistenceContext = config.createPersistenceContext
32
  * }}}
33
  *
34
  * == Another example without external XML file and with default namespace ==
35
  * {{{
36
  * val config = Configuration(
37
  *  Environment(
38
  *    "default",
39
  *    new JdbcTransactionFactory(),
40
  *    new PooledDataSource(
41
  *      "org.hsqldb.jdbcDriver",
42
  *      "jdbc:hsqldb:mem:scala",
43
  *      "sa",
44
  *      ""
45
  *    )
46
  *  )
47
  * )
48
  * config ++= MyDAO
49
  *
50
  * val persistenceContext = config.createPersistenceContext
51
  * }}}
52
  */
53
package object config {
×
54

55
  type TransactionFactory = org.apache.ibatis.transaction.TransactionFactory
56
  type JdbcTransactionFactory = org.apache.ibatis.transaction.jdbc.JdbcTransactionFactory
57
  type ManagedTransactionFactory = org.apache.ibatis.transaction.managed.ManagedTransactionFactory
58

59
  type PooledDataSource = org.apache.ibatis.datasource.pooled.PooledDataSource
60
  type UnpooledDataSource = org.apache.ibatis.datasource.unpooled.UnpooledDataSource
61
  type JndiDataSourceFactory = org.apache.ibatis.datasource.jndi.JndiDataSourceFactory
62

63
  type ObjectFactory = org.apache.ibatis.reflection.factory.ObjectFactory
64
  type ObjectWrapperFactory = org.apache.ibatis.reflection.wrapper.ObjectWrapperFactory
65
  type DatabaseIdProvider = org.apache.ibatis.mapping.DatabaseIdProvider
66
  type LanguageDriver = org.apache.ibatis.scripting.LanguageDriver
67

68
  sealed abstract class LocalCacheScope {
×
69
    val unwrap : org.apache.ibatis.session.LocalCacheScope
70
    case object SESSION extends LocalCacheScope { val unwrap = org.apache.ibatis.session.LocalCacheScope.SESSION }
×
71
    case object STATEMENT extends LocalCacheScope { val unwrap = org.apache.ibatis.session.LocalCacheScope.STATEMENT }
×
72
  }
73

74
  sealed abstract class AutoMappingBehavior {
×
75
    val unwrap : org.apache.ibatis.session.AutoMappingBehavior
76
    case object FULL extends AutoMappingBehavior { val unwrap = org.apache.ibatis.session.AutoMappingBehavior.FULL }
×
77
    case object NONE extends AutoMappingBehavior { val unwrap = org.apache.ibatis.session.AutoMappingBehavior.NONE }
×
78
    case object PARTIAL extends AutoMappingBehavior { val unwrap = org.apache.ibatis.session.AutoMappingBehavior.PARTIAL }
×
79
  }
80

81
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc