fr.improve.xdi.mapping
Interface EnterpriseContext
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- AbstractEnterpriseContext
- public interface EnterpriseContext
- extends java.io.Serializable
Interface implemented for each mapping tool
Represents the context of the database
Used to call requests, commit, rollback, create, insert or delete database objects
- Author:
- Sébastien Letélié
setEnterpriseContextHandler
public void setEnterpriseContextHandler(EnterpriseContextHandler in_handler)
enterpriseContextHandler
public EnterpriseContextHandler enterpriseContextHandler()
createAndInsertInstance
public EnterpriseObject createAndInsertInstance(java.lang.String in_entityName)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
createInstance
public EnterpriseObject createInstance(java.lang.String in_entityName)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
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)
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_entityName)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
objectsWithClassNamed
public java.util.Collection objectsWithClassNamed(java.lang.String in_entityName,
java.util.Set in_orders)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
objectsWithClassNamedBindingValue
public java.util.Collection objectsWithClassNamedBindingValue(java.lang.String in_entityName,
java.lang.String in_key,
java.lang.Object in_value)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
objectsWithClassNamedBindingValues
public java.util.Collection objectsWithClassNamedBindingValues(java.lang.String in_entityName,
java.util.Map in_bindings)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
objectsWithClassNamedBindingValues
public java.util.Collection objectsWithClassNamedBindingValues(java.lang.String in_entityName,
java.util.Map in_bindings,
java.util.Set in_orders)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
objectsWithClassNamedBindingLikeValues
public java.util.Collection objectsWithClassNamedBindingLikeValues(java.lang.String in_entityName,
java.util.Map in_bindings)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
beginTransaction
public void beginTransaction()
throws EnterpriseContextException
- Throws:
EnterpriseContextException
endTransaction
public void endTransaction()
throws EnterpriseContextException
- Throws:
EnterpriseContextException
insert
public void insert(EnterpriseObject in_enterpriseObject)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
update
public void update(EnterpriseObject in_enterpriseObject)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
delete
public void delete(EnterpriseObject in_enterpriseObject)
throws EnterpriseContextException
- Throws:
EnterpriseContextException
saveChanges
public void saveChanges()
throws EnterpriseContextException
- Throws:
EnterpriseContextException
invalidateAllObjects
public void invalidateAllObjects()
throws EnterpriseContextException
- Throws:
EnterpriseContextException
Copyright © 2004-2005 Improve. All Rights Reserved.