Package org.openxava.model.impl
Class MapFacadeBean
- java.lang.Object
-
- org.openxava.model.impl.MapFacadeBean
-
public class MapFacadeBean extends java.lang.Object
Implement the logic of MapFacade.The Bean suffix is because until 6.x it was a SessionBean.
- Author:
- Javier Paniza
-
-
Constructor Summary
Constructors Constructor Description MapFacadeBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCollectionElement(UserInfo userInfo, java.lang.String modelName, java.util.Map keyValues, java.lang.String collectionName, java.util.Map collectionElementKeyValues)
void
commit(UserInfo userInfo)
java.lang.Object
create(UserInfo userInfo, java.lang.String modelName, java.util.Map values)
java.lang.Object
createAggregate(UserInfo userInfo, java.lang.String modelName, java.lang.Object container, int counter, java.util.Map values)
java.lang.Object
createAggregate(UserInfo userInfo, java.lang.String modelName, java.util.Map containerKeyValues, int counter, java.util.Map values)
java.lang.Object
createAggregate(UserInfo userInfo, java.lang.String modelName, java.util.Map containerKeyValues, java.lang.String collectionName, java.util.Map values)
java.util.Map
createAggregateReturningKey(UserInfo userInfo, java.lang.String modelName, java.util.Map containerKeyValues, int counter, java.util.Map values)
java.util.Map
createAggregateReturningKey(UserInfo userInfo, java.lang.String modelName, java.util.Map containerKeyValues, java.lang.String collectionName, java.util.Map values)
java.util.Map
createNotValidatingCollections(UserInfo userInfo, java.lang.String modelName, java.util.Map values)
java.util.Map
createReturningKey(UserInfo userInfo, java.lang.String modelName, java.util.Map values)
java.util.Map
createReturningValues(UserInfo userInfo, java.lang.String modelName, java.util.Map values)
void
delete(UserInfo userInfo, java.lang.String modelName, java.util.Map keyValues)
void
ejbActivate()
void
ejbCreate()
void
ejbPassivate()
void
ejbRemove()
java.lang.Object
findEntity(UserInfo userInfo, java.lang.String modelName, java.util.Map keyValues)
java.lang.Object
getKey(MetaModel metaModel, java.util.Map keyValues)
java.util.Map
getKeyValues(UserInfo userInfo, java.lang.String modelName, java.lang.Object entity)
javax.ejb.SessionContext
getSessionContext()
java.util.Map
getValues(UserInfo userInfo, java.lang.String modelName, java.lang.Object modelObject, java.util.Map memberNames)
java.util.Map
getValues(UserInfo userInfo, java.lang.String modelName, java.util.Map keyValues, java.util.Map membersNames)
java.util.Map
getValuesByAnyProperty(UserInfo userInfo, java.lang.String modelName, java.util.Map searchingValues, java.util.Map membersNames)
void
moveCollectionElement(UserInfo userInfo, java.lang.String modelName, java.util.Map keyValues, java.lang.String collectionName, int from, int to)
void
moveCollectionElementToAnotherCollection(UserInfo userInfo, java.lang.String sourceModelName, java.util.Map sourceKeyValues, java.lang.String sourceCollectionName, java.lang.String targetModelName, java.util.Map targetKeyValues, java.lang.String targetCollectionName, java.util.Map collectionElementKeyValues)
void
reassociate(java.lang.Object entity)
void
removeCollectionElement(UserInfo userInfo, java.lang.String modelName, java.util.Map keyValues, java.lang.String collectionName, java.util.Map collectionElementKeyValues)
void
setSessionContext(javax.ejb.SessionContext ctx)
void
setValues(UserInfo userInfo, java.lang.String modelName, java.util.Map keyValues, java.util.Map values)
void
setValuesNotTracking(UserInfo userInfo, java.lang.String modelName, java.util.Map keyValues, java.util.Map values)
Messages
validate(UserInfo userInfo, java.lang.String modelName, java.util.Map values)
Messages
validateIncludingMissingRequired(UserInfo userInfo, java.lang.String modelName, java.util.Map values, java.lang.String containerReference)
-
-
-
Method Detail
-
create
public java.lang.Object create(UserInfo userInfo, java.lang.String modelName, java.util.Map values) throws javax.ejb.CreateException, XavaException, ValidationException, java.rmi.RemoteException
- Throws:
javax.ejb.CreateException
XavaException
ValidationException
java.rmi.RemoteException
-
commit
public void commit(UserInfo userInfo)
-
getValues
public java.util.Map getValues(UserInfo userInfo, java.lang.String modelName, java.util.Map keyValues, java.util.Map membersNames) throws javax.ejb.FinderException, XavaException, java.rmi.RemoteException
- Throws:
javax.ejb.FinderException
XavaException
java.rmi.RemoteException
-
getValuesByAnyProperty
public java.util.Map getValuesByAnyProperty(UserInfo userInfo, java.lang.String modelName, java.util.Map searchingValues, java.util.Map membersNames) throws javax.ejb.FinderException, XavaException, java.rmi.RemoteException
- Throws:
javax.ejb.FinderException
XavaException
java.rmi.RemoteException
-
delete
public void delete(UserInfo userInfo, java.lang.String modelName, java.util.Map keyValues) throws javax.ejb.RemoveException, ValidationException, XavaException, java.rmi.RemoteException
- Throws:
javax.ejb.RemoveException
ValidationException
XavaException
java.rmi.RemoteException
-
setValues
public void setValues(UserInfo userInfo, java.lang.String modelName, java.util.Map keyValues, java.util.Map values) throws javax.ejb.FinderException, ValidationException, XavaException, java.rmi.RemoteException
- Throws:
javax.ejb.FinderException
ValidationException
XavaException
java.rmi.RemoteException
-
setValuesNotTracking
public void setValuesNotTracking(UserInfo userInfo, java.lang.String modelName, java.util.Map keyValues, java.util.Map values) throws javax.ejb.FinderException, ValidationException, XavaException, java.rmi.RemoteException
- Throws:
javax.ejb.FinderException
ValidationException
XavaException
java.rmi.RemoteException
-
findEntity
public java.lang.Object findEntity(UserInfo userInfo, java.lang.String modelName, java.util.Map keyValues) throws javax.ejb.FinderException, java.rmi.RemoteException
- Throws:
javax.ejb.FinderException
java.rmi.RemoteException
-
createReturningValues
public java.util.Map createReturningValues(UserInfo userInfo, java.lang.String modelName, java.util.Map values) throws javax.ejb.CreateException, XavaException, ValidationException, java.rmi.RemoteException
- Throws:
javax.ejb.CreateException
XavaException
ValidationException
java.rmi.RemoteException
-
createReturningKey
public java.util.Map createReturningKey(UserInfo userInfo, java.lang.String modelName, java.util.Map values) throws javax.ejb.CreateException, XavaException, ValidationException, java.rmi.RemoteException
- Throws:
javax.ejb.CreateException
XavaException
ValidationException
java.rmi.RemoteException
-
createNotValidatingCollections
public java.util.Map createNotValidatingCollections(UserInfo userInfo, java.lang.String modelName, java.util.Map values) throws javax.ejb.CreateException, XavaException, ValidationException, java.rmi.RemoteException
- Throws:
javax.ejb.CreateException
XavaException
ValidationException
java.rmi.RemoteException
-
createAggregate
public java.lang.Object createAggregate(UserInfo userInfo, java.lang.String modelName, java.util.Map containerKeyValues, java.lang.String collectionName, java.util.Map values) throws javax.ejb.CreateException, ValidationException, XavaException, java.rmi.RemoteException
- Throws:
javax.ejb.CreateException
ValidationException
XavaException
java.rmi.RemoteException
-
createAggregate
public java.lang.Object createAggregate(UserInfo userInfo, java.lang.String modelName, java.util.Map containerKeyValues, int counter, java.util.Map values) throws javax.ejb.CreateException, ValidationException, XavaException, java.rmi.RemoteException
- Throws:
javax.ejb.CreateException
ValidationException
XavaException
java.rmi.RemoteException
-
createAggregate
public java.lang.Object createAggregate(UserInfo userInfo, java.lang.String modelName, java.lang.Object container, int counter, java.util.Map values) throws javax.ejb.CreateException, ValidationException, XavaException, java.rmi.RemoteException
- Throws:
javax.ejb.CreateException
ValidationException
XavaException
java.rmi.RemoteException
-
createAggregateReturningKey
public java.util.Map createAggregateReturningKey(UserInfo userInfo, java.lang.String modelName, java.util.Map containerKeyValues, int counter, java.util.Map values) throws javax.ejb.CreateException, ValidationException, XavaException, java.rmi.RemoteException
- Throws:
javax.ejb.CreateException
ValidationException
XavaException
java.rmi.RemoteException
-
createAggregateReturningKey
public java.util.Map createAggregateReturningKey(UserInfo userInfo, java.lang.String modelName, java.util.Map containerKeyValues, java.lang.String collectionName, java.util.Map values) throws javax.ejb.CreateException, ValidationException, XavaException, java.rmi.RemoteException
- Throws:
javax.ejb.CreateException
ValidationException
XavaException
java.rmi.RemoteException
-
getValues
public java.util.Map getValues(UserInfo userInfo, java.lang.String modelName, java.lang.Object modelObject, java.util.Map memberNames) throws XavaException, java.rmi.RemoteException
- Throws:
XavaException
java.rmi.RemoteException
-
validate
public Messages validate(UserInfo userInfo, java.lang.String modelName, java.util.Map values) throws XavaException, java.rmi.RemoteException
- Throws:
XavaException
java.rmi.RemoteException
-
validateIncludingMissingRequired
public Messages validateIncludingMissingRequired(UserInfo userInfo, java.lang.String modelName, java.util.Map values, java.lang.String containerReference) throws XavaException, java.rmi.RemoteException
- Throws:
XavaException
java.rmi.RemoteException
-
removeCollectionElement
public void removeCollectionElement(UserInfo userInfo, java.lang.String modelName, java.util.Map keyValues, java.lang.String collectionName, java.util.Map collectionElementKeyValues) throws javax.ejb.FinderException, ValidationException, XavaException, javax.ejb.RemoveException, java.rmi.RemoteException
- Throws:
javax.ejb.FinderException
ValidationException
XavaException
javax.ejb.RemoveException
java.rmi.RemoteException
-
addCollectionElement
public void addCollectionElement(UserInfo userInfo, java.lang.String modelName, java.util.Map keyValues, java.lang.String collectionName, java.util.Map collectionElementKeyValues) throws javax.ejb.FinderException, ValidationException, XavaException, java.rmi.RemoteException
- Throws:
javax.ejb.FinderException
ValidationException
XavaException
java.rmi.RemoteException
-
moveCollectionElementToAnotherCollection
public void moveCollectionElementToAnotherCollection(UserInfo userInfo, java.lang.String sourceModelName, java.util.Map sourceKeyValues, java.lang.String sourceCollectionName, java.lang.String targetModelName, java.util.Map targetKeyValues, java.lang.String targetCollectionName, java.util.Map collectionElementKeyValues) throws javax.ejb.FinderException, ValidationException, XavaException, java.rmi.RemoteException
- Throws:
javax.ejb.FinderException
ValidationException
XavaException
java.rmi.RemoteException
-
moveCollectionElement
public void moveCollectionElement(UserInfo userInfo, java.lang.String modelName, java.util.Map keyValues, java.lang.String collectionName, int from, int to) throws javax.ejb.FinderException, XavaException, java.rmi.RemoteException
- Throws:
javax.ejb.FinderException
XavaException
java.rmi.RemoteException
-
ejbActivate
public void ejbActivate() throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
-
ejbCreate
public void ejbCreate() throws javax.ejb.CreateException, java.rmi.RemoteException
- Throws:
javax.ejb.CreateException
java.rmi.RemoteException
-
ejbPassivate
public void ejbPassivate() throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
-
ejbRemove
public void ejbRemove() throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
-
getSessionContext
public javax.ejb.SessionContext getSessionContext()
-
getKeyValues
public java.util.Map getKeyValues(UserInfo userInfo, java.lang.String modelName, java.lang.Object entity) throws java.rmi.RemoteException, XavaException
- Throws:
java.rmi.RemoteException
XavaException
-
setSessionContext
public void setSessionContext(javax.ejb.SessionContext ctx) throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
-
getKey
public java.lang.Object getKey(MetaModel metaModel, java.util.Map keyValues) throws XavaException, java.rmi.RemoteException
- Throws:
XavaException
java.rmi.RemoteException
-
reassociate
public void reassociate(java.lang.Object entity) throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
-
-