public class DRuleHelper extends Object
| Constructor and Description |
|---|
DRuleHelper() |
public static TypePair findMatchingPair(DStructType structType, String fieldName)
public static TypePair findMatchingRelByType(DStructType dtype, DType targetType)
public static boolean isParentRelation(DStructType structType, TypePair pair)
public static RelationInfo findMatchingRuleInfo(DStructType structType, TypePair pair)
public static RelationOneRule findOneRule(String typeName, DTypeRegistry registry)
public static RelationManyRule findManyRule(String typeName, DTypeRegistry registry)
public static boolean isOtherSideOne(DType otherSide, DStructType structType)
public static RelationInfo findOtherSideOne(DType otherSide, DStructType structType)
public static RelationInfo findOtherSideMany(DType otherSide, DStructType structType)
public static RelationInfo findOtherSideOneOrMany(DType otherSide, DStructType structType)
public static RelationInfo findOtherSideOneOrManyForField(DType structType, String fieldName)
public static boolean isManyToManyRelation(TypePair pair, DStructType dtype)
public static RelationInfo findManyToManyRelation(TypePair pair, DStructType dtype)
Copyright © 2020. All rights reserved.