/** * @see <a href="https://studio.atlassian.com/browse/AO-325">AO-325</a> */ @Deprecated private RawEntity[] legacyFetchOneToMany(final RawEntity<K> proxy, final Method method, final OneToMany oneToManyAnnotation) throws SQLException { final Class<? extends RawEntity<?>> type = (Class<? extends RawEntity<?>>) method.getReturnType().getComponentType(); return retrieveRelations(proxy, new String[0], new String[]{Common.getPrimaryKeyField(type, getFieldNameConverter())}, (Class<? extends RawEntity>) type, where(oneToManyAnnotation, getFieldNameConverter()), Common.getPolymorphicFieldNames(getFieldNameConverter(), type, entityInfo.getEntityType())); }
/** * @see <a href="https://studio.atlassian.com/browse/AO-325">AO-325</a> */ @Deprecated private RawEntity[] legacyFetchManyToMany(final RawEntity<K> proxy, final Method method, final ManyToMany manyToManyAnnotation) throws SQLException { final Class<? extends RawEntity<?>> throughType = manyToManyAnnotation.value(); final Class<? extends RawEntity<?>> type = (Class<? extends RawEntity<?>>) method.getReturnType().getComponentType(); return retrieveRelations(proxy, null, Common.getMappingFields(getFieldNameConverter(), throughType, type), throughType, (Class<? extends RawEntity>) type, Common.where(manyToManyAnnotation, getFieldNameConverter()), Common.getPolymorphicFieldNames(getFieldNameConverter(), throughType, entityInfo.getEntityType()), Common.getPolymorphicFieldNames(getFieldNameConverter(), throughType, type)); }
/** * @see <a href="https://studio.atlassian.com/browse/AO-325">AO-325</a> */ @Deprecated private RawEntity[] legacyFetchManyToMany(final RawEntity<K> proxy, final Method method, final ManyToMany manyToManyAnnotation) throws SQLException { final Class<? extends RawEntity<?>> throughType = manyToManyAnnotation.value(); final Class<? extends RawEntity<?>> type = (Class<? extends RawEntity<?>>) method.getReturnType().getComponentType(); return retrieveRelations(proxy, null, Common.getMappingFields(getFieldNameConverter(), throughType, type), throughType, (Class<? extends RawEntity>) type, Common.where(manyToManyAnnotation, getFieldNameConverter()), Common.getPolymorphicFieldNames(getFieldNameConverter(), throughType, entityInfo.getEntityType()), Common.getPolymorphicFieldNames(getFieldNameConverter(), throughType, type)); }
/** * @see <a href="https://studio.atlassian.com/browse/AO-325">AO-325</a> */ @Deprecated private RawEntity[] legacyFetchOneToMany(final RawEntity<K> proxy, final Method method, final OneToMany oneToManyAnnotation) throws SQLException { final Class<? extends RawEntity<?>> type = (Class<? extends RawEntity<?>>) method.getReturnType().getComponentType(); return retrieveRelations(proxy, new String[0], new String[]{Common.getPrimaryKeyField(type, getFieldNameConverter())}, (Class<? extends RawEntity>) type, where(oneToManyAnnotation, getFieldNameConverter()), Common.getPolymorphicFieldNames(getFieldNameConverter(), type, entityInfo.getEntityType())); }
/** * @see <a href="https://studio.atlassian.com/browse/AO-325">AO-325</a> */ @Deprecated private RawEntity legacyFetchOneToOne(final RawEntity<K> proxy, final Method method, final OneToOne oneToOneAnnotation) throws SQLException { Class<? extends RawEntity<?>> type = (Class<? extends RawEntity<?>>) method.getReturnType(); final RawEntity[] back = retrieveRelations(proxy, new String[0], new String[]{Common.getPrimaryKeyField(type, getFieldNameConverter())}, (Class<? extends RawEntity>) type, Common.where(oneToOneAnnotation, getFieldNameConverter()), Common.getPolymorphicFieldNames(getFieldNameConverter(), type, entityInfo.getEntityType())); return back.length == 0 ? null : back[0]; }
/** * @see <a href="https://studio.atlassian.com/browse/AO-325">AO-325</a> */ @Deprecated private RawEntity legacyFetchOneToOne(final RawEntity<K> proxy, final Method method, final OneToOne oneToOneAnnotation) throws SQLException { Class<? extends RawEntity<?>> type = (Class<? extends RawEntity<?>>) method.getReturnType(); final RawEntity[] back = retrieveRelations(proxy, new String[0], new String[]{Common.getPrimaryKeyField(type, getFieldNameConverter())}, (Class<? extends RawEntity>) type, Common.where(oneToOneAnnotation, getFieldNameConverter()), Common.getPolymorphicFieldNames(getFieldNameConverter(), type, entityInfo.getEntityType())); return back.length == 0 ? null : back[0]; }