public ClassMapping[] getIndependentTypeMappings() { ClassMapping rel = getTypeMapping(); if (rel == null) return ClassMapping.EMPTY_MAPPINGS; if (_poly != POLY_TRUE) { if (!rel.isMapped()) return ClassMapping.EMPTY_MAPPINGS; if (_typeArr == null) _typeArr = new ClassMapping[]{ rel }; return _typeArr; } return rel.getIndependentAssignableMappings(); }
public ClassMapping[] getIndependentTypeMappings() { ClassMapping rel = getTypeMapping(); if (rel == null) return ClassMapping.EMPTY_MAPPINGS; if (_poly != POLY_TRUE) { if (!rel.isMapped()) return ClassMapping.EMPTY_MAPPINGS; if (_typeArr == null) _typeArr = new ClassMapping[]{ rel }; return _typeArr; } return rel.getIndependentAssignableMappings(); }
public ClassMapping[] getIndependentTypeMappings() { ClassMapping rel = getTypeMapping(); if (rel == null) return ClassMapping.EMPTY_MAPPINGS; if (_poly != POLY_TRUE) { if (!rel.isMapped()) return ClassMapping.EMPTY_MAPPINGS; if (_typeArr == null) _typeArr = new ClassMapping[]{ rel }; return _typeArr; } return rel.getIndependentAssignableMappings(); }
public ClassMapping[] getIndependentTypeMappings() { ClassMapping rel = getTypeMapping(); if (rel == null) return ClassMapping.EMPTY_MAPPINGS; if (_poly != POLY_TRUE) { if (!rel.isMapped()) return ClassMapping.EMPTY_MAPPINGS; if (_typeArr == null) _typeArr = new ClassMapping[]{ rel }; return _typeArr; } return rel.getIndependentAssignableMappings(); }
public ClassMapping[] getIndependentTypeMappings() { ClassMapping rel = getTypeMapping(); if (rel == null) return ClassMapping.EMPTY_MAPPINGS; if (_poly != POLY_TRUE) { if (!rel.isMapped()) return ClassMapping.EMPTY_MAPPINGS; if (_typeArr == null) _typeArr = new ClassMapping[]{ rel }; return _typeArr; } return rel.getIndependentAssignableMappings(); }
public int getSelectSubclasses() { ClassMapping rel = getTypeMapping(); if (rel == null || !rel.isMapped()) return -1; switch (_poly) { case POLY_FALSE: return (_criteria) ? Select.SUBS_NONE : Select.SUBS_EXACT; case POLY_TRUE: ClassMapping[] assign = rel.getIndependentAssignableMappings(); if (assign.length != 1 || assign[0] != rel) return -1; // no break case POLY_JOINABLE: return (_criteria) ? Select.SUBS_JOINABLE : Select.SUBS_ANY_JOINABLE; default: throw new InternalException(); } }
public int getSelectSubclasses() { ClassMapping rel = getTypeMapping(); if (rel == null || !rel.isMapped()) return -1; switch (_poly) { case POLY_FALSE: return (_criteria) ? Select.SUBS_NONE : Select.SUBS_EXACT; case POLY_TRUE: ClassMapping[] assign = rel.getIndependentAssignableMappings(); if (assign.length != 1 || assign[0] != rel) return -1; // no break case POLY_JOINABLE: return (_criteria) ? Select.SUBS_JOINABLE : Select.SUBS_ANY_JOINABLE; default: throw new InternalException(); } }
public int getSelectSubclasses() { ClassMapping rel = getTypeMapping(); if (rel == null || !rel.isMapped()) return -1; switch (_poly) { case POLY_FALSE: return (_criteria) ? Select.SUBS_NONE : Select.SUBS_EXACT; case POLY_TRUE: ClassMapping[] assign = rel.getIndependentAssignableMappings(); if (assign.length != 1 || assign[0] != rel) return -1; // no break case POLY_JOINABLE: return (_criteria) ? Select.SUBS_JOINABLE : Select.SUBS_ANY_JOINABLE; default: throw new InternalException(); } }
public int getSelectSubclasses() { ClassMapping rel = getTypeMapping(); if (rel == null || !rel.isMapped()) return -1; switch (_poly) { case POLY_FALSE: return (_criteria) ? Select.SUBS_NONE : Select.SUBS_EXACT; case POLY_TRUE: ClassMapping[] assign = rel.getIndependentAssignableMappings(); if (assign.length != 1 || assign[0] != rel) return -1; // no break case POLY_JOINABLE: return (_criteria) ? Select.SUBS_JOINABLE : Select.SUBS_ANY_JOINABLE; default: throw new InternalException(); } }
public int getSelectSubclasses() { ClassMapping rel = getTypeMapping(); if (rel == null || !rel.isMapped()) return -1; switch (_poly) { case POLY_FALSE: return (_criteria) ? Select.SUBS_NONE : Select.SUBS_EXACT; case POLY_TRUE: ClassMapping[] assign = rel.getIndependentAssignableMappings(); if (assign.length != 1 || assign[0] != rel) return -1; // no break case POLY_JOINABLE: return (_criteria) ? Select.SUBS_JOINABLE : Select.SUBS_ANY_JOINABLE; default: throw new InternalException(); } }