EquinoxItemsHelper
The EquinoxItemsHelper
class is useful to manage all the EquinoxItem database operations
Author
N7ghtm4r3 - Tecknobit
Inheritors
Types
Link copied to clipboard
The
BatchQuery
interface is useful to manage the batch queries to insert or delete values in batchLink copied to clipboard
interface ComplexBatchItem
The
ComplexBatchItem
interface is useful to execute the syncBatch method with complex custom object with different values to synchronize.Link copied to clipboard
enum InsertCommand
InsertCommand
list of supported commands to insert records in the batch queriesLink copied to clipboard
interface SyncBatchModel
The
SyncBatchModel
interface is useful to execute the syncBatch method to synchronize the data.Properties
Link copied to clipboard
IN_CLAUSE
in clause query partLink copied to clipboard
CLOSED_ROUND_BRACKET
closed round bracket characterLink copied to clipboard
DELETE_FROM_
delete from query commandLink copied to clipboard
entityManager
entity manager helperLink copied to clipboard
OPENED_ROUND_BRACKET
opened round bracket characterLink copied to clipboard
QUESTION_MARK
question mark characterLink copied to clipboard
SINGLE_QUOTE
single quote characterFunctions
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
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
Method used to format the in clause for the query
Link copied to clipboard
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