All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sxtanna.database.task.builder.WhereBuilder.kt Maven / Gradle / Ivy

There is a newer version: 3.0-beta
Show newest version
package com.sxtanna.database.task.builder

import com.sxtanna.database.struct.obj.Target
import com.sxtanna.database.type.Targeted
import com.sxtanna.database.type.base.SqlObject

abstract class WhereBuilder> : Targeted {

	override val where = mutableListOf()


	@JvmName("inStartsWith")
	infix fun String.startsWith(value : Any) = startsWith(this, value, false)

	infix fun String.startsNotWith(value : Any) = startsWith(this, value, true)


	@JvmName("inContains")
	infix fun String.contains(value : Any) = contains(this, value, false)

	infix fun String.containsNot(value : Any) = contains(this, value, true)


	@JvmName("inEndsWith")
	infix fun String.endWith(value : Any) = endWith(this, value, false)

	infix fun String.endNotWith(value : Any) = endWith(this, value, true)


	@JvmName("inEquals")
	infix fun String.equals(value : Any) = equals(this, value, false)

	infix fun String.equalsNot(value : Any) = equals(this, value, true)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy