public static String where(ManyToMany manyToMany, final FieldNameConverter fnc) { return where(manyToMany.where(), fnc); }
public static String where(OneToOne oneToOne, final FieldNameConverter fnc) { return where(oneToOne.where(), fnc); }
public static String where(OneToMany oneToMany, final FieldNameConverter fnc) { return where(oneToMany.where(), fnc); }
public static String where(ManyToMany manyToMany, final FieldNameConverter fnc) { return where(manyToMany.where(), fnc); }
public static String where(OneToOne oneToOne, final FieldNameConverter fnc) { return where(oneToOne.where(), fnc); }
public static String where(OneToMany oneToMany, final FieldNameConverter fnc) { return where(oneToMany.where(), fnc); }
/** * @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[] 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]; }
/** * @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)); }
final EntityInfo entityInfo = manager.resolveEntityInfo(remoteType); final String remotePrimaryKeyFieldName = Common.getPrimaryKeyField(remoteType, getFieldNameConverter()); final String whereClause = where(annotation, getFieldNameConverter()); final Preload preloadAnnotation = (Preload) remoteType.getAnnotation(Preload.class); final Method remoteMethod = remoteType.getMethod(annotation.reverse());
final EntityInfo entityInfo = manager.resolveEntityInfo(remoteType); final String remotePrimaryKeyFieldName = Common.getPrimaryKeyField(remoteType, getFieldNameConverter()); final String whereClause = where(annotation, getFieldNameConverter()); final Preload preloadAnnotation = (Preload) remoteType.getAnnotation(Preload.class); final Method remoteMethod = remoteType.getMethod(annotation.reverse());
final EntityInfo entityInfo = manager.resolveEntityInfo(remoteType); final String remotePrimaryKeyFieldName = Common.getPrimaryKeyField(remoteType, getFieldNameConverter()); final String whereClause = Common.where(annotation, getFieldNameConverter()); final Method remoteMethod = remoteType.getMethod(annotation.reverse()); final String remotePolymorphicTypeFieldName = getPolymorphicTypeFieldName(remoteMethod);
private RawEntity[] fetchManyToMany(final Method method, final ManyToMany annotation) throws SQLException, NoSuchMethodException { final Class remoteType = method.getReturnType().getComponentType(); final Class throughType = annotation.value(); final String whereClause = Common.where(annotation, getFieldNameConverter()); final Preload preloadAnnotation = (Preload) remoteType.getAnnotation(Preload.class); final Method reverseMethod = throughType.getMethod(annotation.reverse());
private RawEntity[] fetchManyToMany(final Method method, final ManyToMany annotation) throws SQLException, NoSuchMethodException { final Class remoteType = method.getReturnType().getComponentType(); final Class throughType = annotation.value(); final String whereClause = Common.where(annotation, getFieldNameConverter()); final Preload preloadAnnotation = (Preload) remoteType.getAnnotation(Preload.class); final Method reverseMethod = throughType.getMethod(annotation.reverse());
final EntityInfo entityInfo = manager.resolveEntityInfo(remoteType); final String remotePrimaryKeyFieldName = Common.getPrimaryKeyField(remoteType, getFieldNameConverter()); final String whereClause = Common.where(annotation, getFieldNameConverter()); final Method remoteMethod = remoteType.getMethod(annotation.reverse()); final String remotePolymorphicTypeFieldName = getPolymorphicTypeFieldName(remoteMethod);