Home » tapestry-src-5.0.19 » org.apache.tapestry5.hibernate » [javadoc | source]
org.apache.tapestry5.hibernate
public class: HibernateModule [javadoc | source]
java.lang.Object
   org.apache.tapestry5.hibernate.HibernateModule
Method from org.apache.tapestry5.hibernate.HibernateModule Summary:
bind,   buildHibernateEntityPackageManager,   buildHibernateSessionManager,   buildHibernateSessionSource,   buildSession,   contributeAlias,   contributeComponentClassTransformWorker,   contributeFactoryDefaults,   contributeHibernateEntityPackageManager,   contributeHibernateSessionSource,   contributePersistentFieldManager,   contributeValueEncoderSource
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tapestry5.hibernate.HibernateModule Detail:
 public static  void bind(ServiceBinder binder) 
 public static HibernateEntityPackageManager buildHibernateEntityPackageManager(Collection<String> packageNames) 
 public static HibernateSessionManager buildHibernateSessionManager(HibernateSessionSource sessionSource,
    PerthreadManager perthreadManager) 
    The session manager manages sessions on a per-thread/per-request basis. A org.hibernate.Transaction is created initially, and is committed at the end of the request.
 public static HibernateSessionSource buildHibernateSessionSource(Logger logger,
    List<HibernateConfigurer> config,
    RegistryShutdownHub hub) 
 public static Session buildSession(HibernateSessionManager sessionManager,
    PropertyShadowBuilder propertyShadowBuilder) 
 public static  void contributeAlias(Configuration<AliasContribution> configuration,
    Session session) 
 public static  void contributeComponentClassTransformWorker(OrderedConfiguration<ComponentClassTransformWorker> configuration,
    ObjectLocator locator) 
 public static  void contributeFactoryDefaults(MappedConfiguration<String, String> configuration) 
 public static  void contributeHibernateEntityPackageManager(Configuration<String> configuration,
    String appRootPackage) 
    Contributes the package "<root>.entities" to the configuration, so that it will be scanned for annotated entity classes.
 public static  void contributeHibernateSessionSource(OrderedConfiguration<HibernateConfigurer> config,
    HibernateConfigurer defaultHibernateConfigurer,
    ObjectLocator locator) 
    Adds the following configurers:
    Default
    performs default hibernate configuration
    PackageName
    loads entities by package name
 public static  void contributePersistentFieldManager(MappedConfiguration<String, PersistentFieldStrategy> configuration,
    ObjectLocator locator) 
    Contributes the following:
    entity
    Stores the id of the entity and reloads from the Session
 public static  void contributeValueEncoderSource(MappedConfiguration<Class, ValueEncoderFactory> configuration,
    boolean provideEncoders,
    HibernateSessionSource sessionSource,
    Session session,
    TypeCoercer typeCoercer,
    PropertyAccess propertyAccess,
    LoggerSource loggerSource) 
    Contributes ValueEncoderFactory s for all registered Hibernate entity classes. Encoding and decoding are based on the id property value of the entity using type coercion. Hence, if the id can be coerced to a String and back then the entity can be coerced.