EquinoxItemsHelper

abstract class EquinoxItemsHelper

The EquinoxItemsHelper class is useful to manage all the EquinoxItem database operations

Author

N7ghtm4r3 - Tecknobit

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
interface BatchQuery<V>
The BatchQuery interface is useful to manage the batch queries to insert or delete values in batch
Link copied to clipboard
The ComplexBatchItem interface is useful to execute the syncBatch method with complex custom object with different values to synchronize.
Link copied to clipboard
InsertCommand list of supported commands to insert records in the batch queries
Link copied to clipboard
interface SyncBatchModel
The SyncBatchModel interface is useful to execute the syncBatch method to synchronize the data.

Properties

Link copied to clipboard
private val _IN_CLAUSE_: String = " IN "
IN_CLAUSE in clause query part
Link copied to clipboard
val _VALUES_: String = " VALUES "
VALUES values query part
Link copied to clipboard
val _WHERE_: String = " WHERE "
WHERE where query part
Link copied to clipboard
CLOSED_ROUND_BRACKET closed round bracket character
Link copied to clipboard
val COMMA: String = ","
COMMA comma character
Link copied to clipboard
val DELETE_FROM_: String = "DELETE FROM "
DELETE_FROM_ delete from query command
Link copied to clipboard
protected open var entityManager: EntityManager
entityManager entity manager helper
Link copied to clipboard
OPENED_ROUND_BRACKET opened round bracket character
Link copied to clipboard
QUESTION_MARK question mark character
Link copied to clipboard
val SINGLE_QUOTE: String = "'"
SINGLE_QUOTE single quote character

Functions

Link copied to clipboard
protected open fun batchDelete(table: String, values: Collection<out Any>, @NotNull columns: Array<@NotNull String>)
Method used to execute a batch delete of a single list of data simultaneously
Link copied to clipboard
protected open fun <V> batchInsert(    command: EquinoxItemsHelper.InsertCommand,     table: String,     batchQuery: EquinoxItemsHelper.BatchQuery<V>)
Method used to execute a batch insert of a list of data simultaneously
Link copied to clipboard
private open fun formatColumns(columns: Array<String>): String
Method used to format the columns value for the query
Link copied to clipboard
private open fun formatComplexBatchItemInClause(columns: Int, inValues: Collection<out Any>): String
Method used to format the in clause for the query with ComplexBatchItem values
Link copied to clipboard
private open fun formatInClause(columns: Int, inValues: Collection<out Any>): String
Method used to format the in clause for the query
Link copied to clipboard
private open fun formatPlaceholder(columns: Array<String>): String
Method used to format the placeholder value for the query
Link copied to clipboard
private open fun formatValuesForQuery(start: String, values: Collection<out Any>, formatter: String, isToClose: Boolean): String
Method used to format a list of values for the query
Link copied to clipboard
protected open fun <V> syncBatch(model: EquinoxItemsHelper.SyncBatchModel, table: String, batchQuery: EquinoxItemsHelper.BatchQuery<V>)
protected open fun <V> syncBatch(    model: EquinoxItemsHelper.SyncBatchModel,     command: EquinoxItemsHelper.InsertCommand,     table: String,     batchQuery: EquinoxItemsHelper.BatchQuery<V>)
Method used to execute a batch synchronization of a list of data simultaneously