Class UniqueKeyHelper
java.lang.Object
com.kingsrook.qqq.backend.core.actions.tables.helpers.UniqueKeyHelper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
To make a list of unique key values here behave like they do in an RDBMS (which is what we're trying to mimic - which is - 2 null values in a field aren't considered the same, so they don't violate a unique key) (at least, that's how some RDBMS's work, right??) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map
<List<Serializable>, Serializable> getExistingKeys
(QBackendTransaction transaction, QTableMetaData table, List<QRecord> recordList, UniqueKey uniqueKey) static Map
<List<Serializable>, Serializable> getExistingKeys
(QBackendTransaction transaction, QTableMetaData table, List<QRecord> recordList, UniqueKey uniqueKey, boolean allowNullKeyValuesToEqual) static Optional
<List<Serializable>> getKeyValues
(QTableMetaData table, UniqueKey uniqueKey, QRecord record) static Optional
<List<Serializable>> getKeyValues
(QTableMetaData table, UniqueKey uniqueKey, QRecord record, boolean allowNullKeyValuesToEqual) static Integer
Getter for pageSizestatic void
setPageSize
(Integer pageSize) Setter for pageSize
-
Constructor Details
-
UniqueKeyHelper
public UniqueKeyHelper()
-
-
Method Details
-
getExistingKeys
public static Map<List<Serializable>,Serializable> getExistingKeys(QBackendTransaction transaction, QTableMetaData table, List<QRecord> recordList, UniqueKey uniqueKey, boolean allowNullKeyValuesToEqual) throws QException - Throws:
QException
-
getExistingKeys
public static Map<List<Serializable>,Serializable> getExistingKeys(QBackendTransaction transaction, QTableMetaData table, List<QRecord> recordList, UniqueKey uniqueKey) throws QException - Throws:
QException
-
getKeyValues
public static Optional<List<Serializable>> getKeyValues(QTableMetaData table, UniqueKey uniqueKey, QRecord record, boolean allowNullKeyValuesToEqual) -
getKeyValues
public static Optional<List<Serializable>> getKeyValues(QTableMetaData table, UniqueKey uniqueKey, QRecord record) -
getPageSize
Getter for pageSize -
setPageSize
Setter for pageSize
-