public class UniqueValueUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
UNIQUE_VALUE_VIOLATION |
Constructor and Description |
---|
UniqueValueUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
createUniqueValue(String type,
String... uniqueCombination)
Create unique value.
|
static void |
deleteUniqueValue(String type,
String... uniqueCombination)
Delete unique value.
|
static void |
updateUniqueValue(String type,
String oldValue,
String newValue,
String... uniqueContext)
Update unique value.
|
static void |
validateUniqueValue(String type,
String... uniqueCombination)
Validate unique value.
|
public static final String UNIQUE_VALUE_VIOLATION
public static void createUniqueValue(String type, String... uniqueCombination)
type
- the typeuniqueCombination
- the unique combinationpublic static void deleteUniqueValue(String type, String... uniqueCombination)
type
- the typeuniqueCombination
- the unique combinationpublic static void updateUniqueValue(String type, String oldValue, String newValue, String... uniqueContext)
type
- the typeoldValue
- the old valuenewValue
- the new valueuniqueContext
- the unique contextCopyright © 2017. All rights reserved.