public class DValueHelper extends Object
| Constructor and Description |
|---|
DValueHelper() |
| Modifier and Type | Method and Description |
|---|---|
static DValue |
cloneField(DValue inner) |
static boolean |
fieldExists(DType dtype,
String fieldName) |
static List<TypePair> |
findAllUniqueFieldPair(DType inner) |
static TypePair |
findField(DType dtype,
String fieldName) |
static DType |
findFieldType(DType dtype,
String fieldName) |
static String |
findMatchingRelation(DStructType dtype,
DStructType relType) |
static TypePair |
findPrimaryKeyFieldPair(DType inner) |
static String |
findUniqueField(DType inner) |
static DType |
findUniqueFieldType(DType inner) |
static DValue |
getFieldValue(DValue dval,
String fieldName) |
static DValue |
mergeOne(DValue dvalPartial,
DValue existingDVal)
Return a new DValue that combines dvalPartial into existingDVal
|
static void |
throwIfFieldNotExist(String msgPrefix,
String fieldName,
DValue dval) |
static boolean |
typeHasSerialPrimaryKey(DType dtype) |
public static DValue mergeOne(DValue dvalPartial, DValue existingDVal)
dvalPartial - value contains some of the type's fieldsexistingDVal - DValue that we are merging intopublic static String findMatchingRelation(DStructType dtype, DStructType relType)
public static void throwIfFieldNotExist(String msgPrefix, String fieldName, DValue dval)
public static boolean typeHasSerialPrimaryKey(DType dtype)
Copyright © 2020. All rights reserved.