nbcp.myoql.db.comm.EventResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ktmyoql Show documentation
Show all versions of ktmyoql Show documentation
kotlin orm -- mysql,mongo , just like ktorm
The newest version!
package nbcp.myoql.db.comm
import nbcp.myoql.db.mongo.event.*
/**
* 更新或删除事件执行的结果
*/
data class EventResult @JvmOverloads constructor(
/**
* 执行结果 ,返回 false 将停止后面的执行。
*/
var result: Boolean = true,
/**
* 传递给后续操作的额外数据。
*/
var extData: Any? = null,
var dataSource: String = "",
var tableName: String = ""
)
class QueryEventResult(var event: IMongoEntityQuery, var result: EventResult)
class InsertEventResult(var event: IMongoEntityInsert, var result: EventResult)
class DeleteEventResult(var event: IMongoEntityDelete, var result: EventResult)
class UpdateEventResult(var event: IMongoEntityUpdate, var result: EventResult)
class AggregateEventResult(var event: IMongoEntityAggregate, var result: EventResult)