/**
   * 키 컬럼의의 조건을 relational type을 분석합니다.
   *
   * <p>상대방 컬럼이 NULL을 허용하면 자신은 없을수도 있음.
   *
   * @param soCol source table
   * @rapap taCol target table
   * @return
   */
  public static RelationKind calcRelationCol(Column soCol, Column taCol) {
    if ("YES".equals(taCol.getNull()) || "YES".equals(soCol.getNull())) {

      if (PublicTadpoleDefine.isPK(soCol.getKey())) return RelationKind.ZERO_OR_ONE;
      else return RelationKind.ZERO_OR_MANY;

    } else {

      if (PublicTadpoleDefine.isPK(soCol.getKey())) return RelationKind.ONLY_ONE;
      else return RelationKind.ONE_OR_MANY;
    }
  }