| java.lang.Object com.uwyn.rife.database.querymanagers.generic.GenericQueryManagerRelationalUtils
GenericQueryManagerRelationalUtils | abstract public class GenericQueryManagerRelationalUtils (Code) | | Utility class to provide many-to-many and many-to-one relational
capabilities to generic query manager implementations.
author: Geert Bevin (gbevin[remove] at uwyn dot com) version: $Revision: 3760 $ since: 1.6 |
Method Summary | |
public static ManyToOneDeclaration | createManyToOneDeclaration(GenericQueryManager manager, ConstrainedProperty property, Class propertyType) | public static void | ensureSupportedManyToManyPropertyCollectionType(Class beanClass, String propertyName, Class propertyType) | public static void | ensureSupportedManyToManyPropertyValueType(Class beanClass, String propertyName, Object propertyValue) | public static void | ensureSupportedManyToOneAssociationPropertyCollectionType(Class beanClass, String propertyName, Class propertyType) | public static void | ensureSupportedManyToOneAssociationPropertyValueType(Class beanClass, String propertyName, Object propertyValue) | public static String | generateManyToManyJoinColumnName(GenericQueryManager manager) | public static String | generateManyToManyJoinTableName(ManyToManyDeclaration assocation, GenericQueryManager manager1, GenericQueryManager manager2) | public static String | generateManyToOneJoinColumnName(String mainPropertyName, ManyToOneDeclaration declaration) | public static Map<String, ManyToManyDeclaration> | obtainManyToManyDeclarations(GenericQueryManager manager, Constrained constrained, boolean includeAssociations) | public static Map<String, ManyToOneAssociationDeclaration> | obtainManyToOneAssociationDeclarations(GenericQueryManager manager, Constrained constrained) | public static Map<String, ManyToOneDeclaration> | obtainManyToOneDeclarations(GenericQueryManager manager, Constrained constrained, String fixedMainProperty, Class fixedAssocationType) | public static void | processManyToOneJoinColumns(GenericQueryManager manager, ManyToOneJoinColumnProcessor processor) | public static Object | restoreLazyManyToOneProperty(GenericQueryManager manager, Constrained constrained, String propertyName, String propertyTypeClassName) Restores a constrained many-to-one property value that is lazily loaded. | public static Object | restoreManyToOneProperty(GenericQueryManager manager, GenericQueryManager associationManager, String columnName, Class propertyType) |
restoreLazyManyToOneProperty | public static Object restoreLazyManyToOneProperty(GenericQueryManager manager, Constrained constrained, String propertyName, String propertyTypeClassName)(Code) | | Restores a constrained many-to-one property value that is lazily loaded.
Parameters: manager - the GenericQueryManager that will be used torestore the related bean instance Parameters: constrained - the constrained bean instance that contains theproperty whose value will be restored Parameters: propertyName - the name of the property value that will be restored Parameters: propertyTypeClassName - the class name of the property that will berestored the value of the property, or null if the constrained property doesn't exists or if itdidn't have the manyToOne constraint since: 1.6 |
|
|