Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » engine » profile » [javadoc | source]
org.hibernate.engine.profile
public class: FetchProfile [javadoc | source]
java.lang.Object
   org.hibernate.engine.profile.FetchProfile
A 'fetch profile' allows a user to dynamically modify the fetching strategy used for particular associations at runtime, whereas that information was historically only statically defined in the metadata.
Constructor:
 public FetchProfile(String name) 
    Parameters:
    name - The name under which we are bound in the sessionFactory
Method from org.hibernate.engine.profile.FetchProfile Summary:
addFetch,   addFetch,   addFetch,   getFetchByRole,   getFetches,   getName,   isContainsJoinFetchedBag,   isContainsJoinFetchedCollection
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.engine.profile.FetchProfile Detail:
 public  void addFetch(Fetch fetch) 
    Add a fetch to the profile.
 public  void addFetch(Association association,
    String fetchStyleName) 
    Add a fetch to the profile.
 public  void addFetch(Association association,
    Fetch.Style style) 
    Add a fetch to the profile.
 public Fetch getFetchByRole(String role) 
 public Map getFetches() 
    Getter for property 'fetches'. Map of Fetch instances, keyed by associaion role
 public String getName() 
    Getter for property 'name'.
 public boolean isContainsJoinFetchedBag() 
    Getter for property 'containsJoinFetchedBag', which flags whether this fetch profile contained any bag join fetches
 public boolean isContainsJoinFetchedCollection() 
    Getter for property 'containsJoinFetchedCollection', which flags whether this fetch profile contained any collection join fetches.