Links Base Service

@Service
abstract class LinksBaseService<T : RefyLink?> : EquinoxItemsHelper, RefyItemRetriever<T>

The LinksBaseHelper class is useful to manage all the links database operations

Author

N7ghtm4r3 - Tecknobit

See also

EquinoxItemsHelper

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
private val _IN_CLAUSE_: String = " IN "
Link copied to clipboard
val _VALUES_: String = " VALUES "
Link copied to clipboard
val _WHERE_: String = " WHERE "
Link copied to clipboard
Link copied to clipboard
val COMMA: String = ","
Link copied to clipboard
val DELETE_FROM_: String = "DELETE FROM "
Link copied to clipboard
protected open var entityManager: EntityManager
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val SINGLE_QUOTE: String = "'"

Functions

Link copied to clipboard
protected open fun batchDelete(table: String, values: Collection<out Any>, columns: Array<@NotNull String>)
Link copied to clipboard
protected open fun <V> batchInsert(    command: EquinoxItemsHelper.InsertCommand,     table: String,     batchQuery: EquinoxItemsHelper.BatchQuery<V>)
Link copied to clipboard
abstract fun deleteLink(linkId: String)
Method to delete a link
Link copied to clipboard
abstract fun getItemIfAllowed(userId: String, itemId: String): T
Method used to get an item if the user is authorized
Link copied to clipboard
protected open fun <V> syncBatch(model: EquinoxItemsHelper.SyncBatchModel, table: String, batchQuery: EquinoxItemsHelper.BatchQuery<V>)