fr.improve.xdi.mapping.hibernate
Class EnterpriseContextImpl
java.lang.Object
fr.improve.xdi.mapping.AbstractEnterpriseContext
fr.improve.xdi.mapping.hibernate.EnterpriseContextImpl
- All Implemented Interfaces:
- EnterpriseContext, java.io.Serializable
- public class EnterpriseContextImpl
- extends AbstractEnterpriseContext
EnterpriseContext implementation for Hibernate
Equivalent object : SessionFactory
NOTE :
Actually you must extends hibernate database objects with EnterpriseContextImpl
It will change in future version
- Author:
- Sébastien Letélié
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAPPING_PACKAGE
public static java.lang.String MAPPING_PACKAGE
ENTERPRISE_PACKAGE
public static java.lang.String ENTERPRISE_PACKAGE
EnterpriseContextImpl
public EnterpriseContextImpl()
throws EnterpriseContextException
EnterpriseContextImpl
public EnterpriseContextImpl(java.net.URL in_url)
throws EnterpriseContextException
setEnterprisePackage
public static void setEnterprisePackage(java.lang.String in_package)
setMappingPackage
public static void setMappingPackage(java.lang.String in_package)
configure
public static void configure(java.net.URL in_url)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
getSessionFactory
public net.sf.hibernate.SessionFactory getSessionFactory()
getSession
public net.sf.hibernate.Session getSession()
throws net.sf.hibernate.HibernateException
- Throws:
net.sf.hibernate.HibernateException
createInstance
public EnterpriseObject createInstance(java.lang.String in_className)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
createAndInsertInstance
public EnterpriseObject createAndInsertInstance(java.lang.String in_className)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
objectWithID
public EnterpriseObject objectWithID(java.lang.String in_name,
java.lang.Object in_primaryKey)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
objectsWithClassNamed
public java.util.Collection objectsWithClassNamed(java.lang.String in_name)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
objectsWithClassNamed
public java.util.Collection objectsWithClassNamed(java.lang.String in_name,
java.util.Set in_orders)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
objectsWithClassNamedBindingValue
public java.util.Collection objectsWithClassNamedBindingValue(java.lang.String in_name,
java.lang.String in_key,
java.lang.Object in_value)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
objectsWithClassNamedBindingValues
public java.util.Collection objectsWithClassNamedBindingValues(java.lang.String in_name,
java.util.Map in_values)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
objectsWithClassNamedBindingValues
public java.util.Collection objectsWithClassNamedBindingValues(java.lang.String in_name,
java.util.Map in_values,
java.util.Set in_orders)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
objectsWithClassNamedBindingLikeValues
public java.util.Collection objectsWithClassNamedBindingLikeValues(java.lang.String in_name,
java.util.Map in_values)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
getClassWithName
public static java.lang.Class getClassWithName(java.lang.String in_className)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
beginTransaction
public void beginTransaction()
throws EnterpriseContextException
- Throws:
EnterpriseContextException
endTransaction
public void endTransaction()
throws EnterpriseContextException
- Throws:
EnterpriseContextException
insert
public void insert(EnterpriseObject in_object)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
update
public void update(EnterpriseObject in_object)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
delete
public void delete(EnterpriseObject in_object)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
saveChanges
public void saveChanges()
throws EnterpriseContextException
- Throws:
EnterpriseContextException
invalidateAllObjects
public void invalidateAllObjects()
throws EnterpriseContextException
- Throws:
EnterpriseContextException
finalize
public void finalize()
sortOrderings
public java.util.Set sortOrderings(java.lang.String in_key,
int in_type)
sortOrderings
public java.util.Set sortOrderings(java.util.Map in_keyTypes)
Copyright © 2004-2005 Improve. All Rights Reserved.