org.openxava.model.impl
Class MapFacadeBean

java.lang.Object
  extended by org.openxava.model.impl.MapFacadeBean
All Implemented Interfaces:
IMapFacadeImpl

public class MapFacadeBean
extends java.lang.Object
implements IMapFacadeImpl

Implement the logic of MapFacade.

Author:
Javier Paniza

Constructor Summary
MapFacadeBean()
           
 
Method Summary
 void addCollectionElement(java.lang.String user, java.lang.String modelName, java.util.Map keyValues, java.lang.String collectionName, java.util.Map collectionElementKeyValues)
           
 void commit(java.lang.String user)
           
 java.lang.Object create(java.lang.String user, java.lang.String modelName, java.util.Map values)
           
 java.lang.Object createAggregate(java.lang.String user, java.lang.String modelName, java.util.Map containerKeyValues, int counter, java.util.Map values)
           
 java.lang.Object createAggregate(java.lang.String user, java.lang.String modelName, java.lang.Object container, int counter, java.util.Map values)
           
 java.util.Map createAggregateReturningKey(java.lang.String user, java.lang.String modelName, java.util.Map containerKeyValues, int counter, java.util.Map values)
           
 java.util.Map createReturningKey(java.lang.String user, java.lang.String modelName, java.util.Map values)
           
 java.util.Map createReturningValues(java.lang.String user, java.lang.String modelName, java.util.Map values)
           
 void delete(java.lang.String user, java.lang.String modelName, java.util.Map keyValues)
           
 void ejbActivate()
           
 void ejbCreate()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 java.lang.Object findEntity(java.lang.String user, java.lang.String modelName, java.util.Map keyValues)
           
 java.lang.Object getKey(MetaModel metaModel, java.util.Map keyValues)
           
 java.util.Map getKeyValues(java.lang.String user, java.lang.String modelName, java.lang.Object entity)
           
 javax.ejb.SessionContext getSessionContext()
           
 java.util.Map getValues(java.lang.String user, java.lang.String modelName, java.util.Map keyValues, java.util.Map membersNames)
           
 java.util.Map getValues(java.lang.String user, java.lang.String modelName, java.lang.Object modelObject, java.util.Map memberNames)
           
 java.util.Map getValuesByAnyProperty(java.lang.String user, java.lang.String modelName, java.util.Map searchingValues, java.util.Map membersNames)
           
 void reassociate(java.lang.Object entity)
           
 void removeCollectionElement(java.lang.String user, java.lang.String modelName, java.util.Map keyValues, java.lang.String collectionName, java.util.Map collectionElementKeyValues)
           
 void setSessionContext(javax.ejb.SessionContext ctx)
           
 void setValues(java.lang.String user, java.lang.String modelName, java.util.Map keyValues, java.util.Map values)
           
 Messages validate(java.lang.String user, java.lang.String modelName, java.util.Map values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapFacadeBean

public MapFacadeBean()
Method Detail

create

public java.lang.Object create(java.lang.String user,
                               java.lang.String modelName,
                               java.util.Map values)
                        throws CreateException,
                               XavaException,
                               ValidationException,
                               java.rmi.RemoteException
Specified by:
create in interface IMapFacadeImpl
Throws:
CreateException
XavaException
ValidationException
java.rmi.RemoteException

commit

public void commit(java.lang.String user)
Specified by:
commit in interface IMapFacadeImpl

getValues

public java.util.Map getValues(java.lang.String user,
                               java.lang.String modelName,
                               java.util.Map keyValues,
                               java.util.Map membersNames)
                        throws FinderException,
                               XavaException,
                               java.rmi.RemoteException
Specified by:
getValues in interface IMapFacadeImpl
Throws:
FinderException
XavaException
java.rmi.RemoteException

getValuesByAnyProperty

public java.util.Map getValuesByAnyProperty(java.lang.String user,
                                            java.lang.String modelName,
                                            java.util.Map searchingValues,
                                            java.util.Map membersNames)
                                     throws FinderException,
                                            XavaException,
                                            java.rmi.RemoteException
Specified by:
getValuesByAnyProperty in interface IMapFacadeImpl
Throws:
FinderException
XavaException
java.rmi.RemoteException

delete

public void delete(java.lang.String user,
                   java.lang.String modelName,
                   java.util.Map keyValues)
            throws RemoveException,
                   ValidationException,
                   XavaException,
                   java.rmi.RemoteException
Specified by:
delete in interface IMapFacadeImpl
Throws:
RemoveException
ValidationException
XavaException
java.rmi.RemoteException

setValues

public void setValues(java.lang.String user,
                      java.lang.String modelName,
                      java.util.Map keyValues,
                      java.util.Map values)
               throws FinderException,
                      ValidationException,
                      XavaException,
                      java.rmi.RemoteException
Specified by:
setValues in interface IMapFacadeImpl
Throws:
FinderException
ValidationException
XavaException
java.rmi.RemoteException

findEntity

public java.lang.Object findEntity(java.lang.String user,
                                   java.lang.String modelName,
                                   java.util.Map keyValues)
                            throws FinderException,
                                   java.rmi.RemoteException
Specified by:
findEntity in interface IMapFacadeImpl
Throws:
FinderException
java.rmi.RemoteException

createReturningValues

public java.util.Map createReturningValues(java.lang.String user,
                                           java.lang.String modelName,
                                           java.util.Map values)
                                    throws CreateException,
                                           XavaException,
                                           ValidationException,
                                           java.rmi.RemoteException
Specified by:
createReturningValues in interface IMapFacadeImpl
Throws:
CreateException
XavaException
ValidationException
java.rmi.RemoteException

createReturningKey

public java.util.Map createReturningKey(java.lang.String user,
                                        java.lang.String modelName,
                                        java.util.Map values)
                                 throws CreateException,
                                        XavaException,
                                        ValidationException,
                                        java.rmi.RemoteException
Specified by:
createReturningKey in interface IMapFacadeImpl
Throws:
CreateException
XavaException
ValidationException
java.rmi.RemoteException

createAggregate

public java.lang.Object createAggregate(java.lang.String user,
                                        java.lang.String modelName,
                                        java.util.Map containerKeyValues,
                                        int counter,
                                        java.util.Map values)
                                 throws CreateException,
                                        ValidationException,
                                        XavaException,
                                        java.rmi.RemoteException
Specified by:
createAggregate in interface IMapFacadeImpl
Throws:
CreateException
ValidationException
XavaException
java.rmi.RemoteException

createAggregate

public java.lang.Object createAggregate(java.lang.String user,
                                        java.lang.String modelName,
                                        java.lang.Object container,
                                        int counter,
                                        java.util.Map values)
                                 throws CreateException,
                                        ValidationException,
                                        XavaException,
                                        java.rmi.RemoteException
Specified by:
createAggregate in interface IMapFacadeImpl
Throws:
CreateException
ValidationException
XavaException
java.rmi.RemoteException

createAggregateReturningKey

public java.util.Map createAggregateReturningKey(java.lang.String user,
                                                 java.lang.String modelName,
                                                 java.util.Map containerKeyValues,
                                                 int counter,
                                                 java.util.Map values)
                                          throws CreateException,
                                                 ValidationException,
                                                 XavaException,
                                                 java.rmi.RemoteException
Specified by:
createAggregateReturningKey in interface IMapFacadeImpl
Throws:
CreateException
ValidationException
XavaException
java.rmi.RemoteException

getValues

public java.util.Map getValues(java.lang.String user,
                               java.lang.String modelName,
                               java.lang.Object modelObject,
                               java.util.Map memberNames)
                        throws XavaException,
                               java.rmi.RemoteException
Specified by:
getValues in interface IMapFacadeImpl
Throws:
XavaException
java.rmi.RemoteException

validate

public Messages validate(java.lang.String user,
                         java.lang.String modelName,
                         java.util.Map values)
                  throws XavaException,
                         java.rmi.RemoteException
Specified by:
validate in interface IMapFacadeImpl
Throws:
XavaException
java.rmi.RemoteException

removeCollectionElement

public void removeCollectionElement(java.lang.String user,
                                    java.lang.String modelName,
                                    java.util.Map keyValues,
                                    java.lang.String collectionName,
                                    java.util.Map collectionElementKeyValues)
                             throws FinderException,
                                    ValidationException,
                                    XavaException,
                                    RemoveException,
                                    java.rmi.RemoteException
Specified by:
removeCollectionElement in interface IMapFacadeImpl
Throws:
FinderException
ValidationException
XavaException
RemoveException
java.rmi.RemoteException

addCollectionElement

public void addCollectionElement(java.lang.String user,
                                 java.lang.String modelName,
                                 java.util.Map keyValues,
                                 java.lang.String collectionName,
                                 java.util.Map collectionElementKeyValues)
                          throws FinderException,
                                 ValidationException,
                                 XavaException,
                                 java.rmi.RemoteException
Specified by:
addCollectionElement in interface IMapFacadeImpl
Throws:
FinderException
ValidationException
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(java.lang.String user,
                                  java.lang.String modelName,
                                  java.lang.Object entity)
                           throws java.rmi.RemoteException,
                                  XavaException
Specified by:
getKeyValues in interface IMapFacadeImpl
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
Specified by:
getKey in interface IMapFacadeImpl
Throws:
XavaException
java.rmi.RemoteException

reassociate

public void reassociate(java.lang.Object entity)
                 throws java.rmi.RemoteException
Specified by:
reassociate in interface IMapFacadeImpl
Throws:
java.rmi.RemoteException