From: Vance K. <va...@us...> - 2006-01-25 03:03:37
|
User: vancek Date: 06/01/24 19:03:30 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3SessionFacadeLogicImpl.java Log: moved PERSISTENCE_CONTAINER and SESSION_DEFAULT_VIEW_TYPE from EJB3Globals to here Revision Changes Path 1.7 +12 -3 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionFacadeLogicImpl.java Index: EJB3SessionFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionFacadeLogicImpl.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -w -r1.6 -r1.7 --- EJB3SessionFacadeLogicImpl.java 18 Jan 2006 09:22:21 -0000 1.6 +++ EJB3SessionFacadeLogicImpl.java 25 Jan 2006 03:03:30 -0000 1.7 @@ -60,11 +60,20 @@ private static final String SERVICE_DELEGATE_NAME_PATTERN = "serviceDelegateNamePattern"; /** + * The property that stores the persistence container name. + */ + public static final String PERSISTENCE_CONTAINER = "persistenceContainerName"; + + /** * The property which stores the persistence context unit name associated with the default * Entity Manager. */ private static final String PERSISTENCE_CONTEXT_UNIT_NAME = "persistenceContextUnitName"; + /** + * The default view type accessability for the session bean + */ + public static final String SESSION_DEFAULT_VIEW_TYPE = "serviceViewType"; // ---------------- constructor ------------------------------- @@ -195,7 +204,7 @@ protected java.lang.String handleGetViewType() { return EJB3MetafacadeUtils.getViewType(this, - String.valueOf(this.getConfiguredProperty(EJB3Globals.SESSION_DEFAULT_VIEW_TYPE))); + String.valueOf(this.getConfiguredProperty(SESSION_DEFAULT_VIEW_TYPE))); } /** @@ -516,7 +525,7 @@ protected String handleGetPersistenceContainer() { return StringUtils.trimToEmpty( - ObjectUtils.toString(this.getConfiguredProperty(EJB3Globals.PERSISTENCE_CONTAINER))); + ObjectUtils.toString(this.getConfiguredProperty(PERSISTENCE_CONTAINER))); } /** |