|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProxySessionFactory
Proxy for the SessionFactory that handles dynamically creating new SessionFactories under the covers with added mappings.
Method Summary | |
---|---|
void |
addClass(java.lang.Class<?> ejbClass)
Add a new mapping for the specified class to the SessionFactory. |
void |
addClasses(java.lang.Class<?>[] ejbClasses)
Add new mappings for the specified classes to the SessionFactory. |
void |
addURL(java.net.URL url)
Add a new mapping to the SessionFactory. |
void |
addURLs(java.net.URL[] urls)
Add new mappings to the SessionFactory. |
boolean |
isClassRegistered(java.lang.Class<?> pojoClass)
Determine if the specified class registered already with the ProxySessionFactory. |
void |
removeClass(java.lang.Class<?> ejbClass)
Remove a mapping from the SessionFactory if the refcount is 0. |
void |
removeClasses(java.lang.Class<?>[] ejbClasses)
Remove classes from the SessionFactory if the refcount reaches 0. |
void |
removeURL(java.net.URL url)
Remove a mapping from the SessionFactory if the refcount is 0. |
void |
removeURLs(java.net.URL[] urls)
Remove mappings from the SessionFactory if the refcount reaches 0. |
void |
setNamingStrategy(NamingStrategy namingStrategy)
Set the naming strategy to use for the Hibernate SessionFactory. |
Method Detail |
---|
void addURL(java.net.URL url) throws InvalidMappingException
url
- non-null URL to mapping.
InvalidMappingException
- If the mapping for the class has already been registered with this ProxySessionFactory.void addURLs(java.net.URL[] urls)
urls
- non-null array of URLs to mappings.void addClass(java.lang.Class<?> ejbClass) throws InvalidMappingException
ejbClass
- the class to add.
InvalidMappingException
- If the mapping for the class has already been registered with this ProxySessionFactory.void addClasses(java.lang.Class<?>[] ejbClasses) throws InvalidMappingException
ejbClasses
- array of classes to add.
InvalidMappingException
- If the mapping for any of the classes have already been registered with this ProxySessionFactory.boolean isClassRegistered(java.lang.Class<?> pojoClass)
pojoClass
- the non-null class to check
void removeURL(java.net.URL url) throws InvalidMappingException
url
- non-null URL to mapping.
InvalidMappingException
- If the mapping for the class has already been registered with this ProxySessionFactory.void removeClass(java.lang.Class<?> ejbClass) throws InvalidMappingException
ejbClass
- the class to add.
InvalidMappingException
- If the mapping for the class has already been registered with this ProxySessionFactory.void removeURLs(java.net.URL[] urls)
urls
- non-null array of URLs to mappings.void removeClasses(java.lang.Class<?>[] ejbClasses)
urls
- non-null array of URLs to mappings.void setNamingStrategy(NamingStrategy namingStrategy)
namingStrategy
- non-null naming strategy.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |