Coverage Summary for Class: KronosAtomicActionTask (com.kotlinorm.beans.task)

Class Class, % Method, % Branch, % Line, % Instruction, %
KronosAtomicActionTask 100% (1/1) 50% (1/2) 83.3% (5/6) 86.7% (39/45)


 /**
  * Copyright 2022-2025 kronos-orm
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 
 package com.kotlinorm.beans.task
 
 import com.kotlinorm.beans.parser.NamedParameterUtils.parseSqlStatement
 import com.kotlinorm.enums.KOperationType
 import com.kotlinorm.interfaces.KActionInfo
 import com.kotlinorm.interfaces.KAtomicActionTask
 
 /**
  * Kronos Atomic Task
  *
  * Atomic execution task for Insert、Update、Delete
  *
  * @author OUSC
  */
 data class KronosAtomicActionTask(
     override var sql: String,
     override val paramMap: Map<String, Any?> = mapOf(),
     override val operationType: KOperationType = KOperationType.UPDATE,
     override val actionInfo: KActionInfo? = null,
     override val stash: MutableMap<String, Any?> = mutableMapOf()
 ) : KAtomicActionTask {
 
     /**
      * Parses the SQL statement and returns a pair of JDBC SQL and a list of JDBC parameter lists.
      *
      * @return a pair of JDBC SQL and a list of JDBC parameter lists. If paramMapArr is null, an empty array is used.
      */
     override fun parsed() = parseSqlStatement(sql, paramMap)
 }