From: Vance K. <va...@us...> - 2006-01-03 01:16:00
|
User: vancek Date: 06/01/02 17:15:54 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3 EJB3Globals.java Log: added session and security related constants Revision Changes Path 1.2 +158 -28 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3Globals.java Index: EJB3Globals.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3Globals.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- EJB3Globals.java 28 Dec 2005 00:32:56 -0000 1.1 +++ EJB3Globals.java 3 Jan 2006 01:15:54 -0000 1.2 @@ -3,16 +3,161 @@ /** * Stores Globals specific to the EJB3 cartridge. * - * @author Chad Brandon + * @author Vance Karimi */ public class EJB3Globals { /** - * Stores the default EJB transaction type. + * The property that stores the persistence container name. + */ + public static final String PERSISTENCE_CONTAINER = "persistenceContainerName"; + + /** + * The property that stores the default EJB transaction type. */ public static final String TRANSACTION_TYPE = "transactionType"; /** + * The pattern to use for determining the package name for EJBs. + */ + public static final String JNDI_NAME_PREFIX = "jndiNamePrefix"; + + /** + * The property that stores the default entity ID generator type + */ + public static final String ENTITY_DEFAULT_GENERATOR_TYPE = "entityDefaultGeneratorType"; + + /** + * The property that stores the default generator initial value + */ + public static final String ENTITY_DEFAULT_GENERATOR_INITIAL_VALUE = "entityDefaultGeneratorInitialValue"; + + /** + * The property that stores the default generator allocation size for incrementing ids + */ + public static final String ENTITY_DEFAULT_GENERATOR_ALLOCATION_SIZE = "entityDefaultGeneratorAllocationSize"; + + /** + * The property that stores the default entity association optional attribute for Many-to-One and One-to-One + */ + public static final String ENTITY_DEFAULT_ASSOCIATION_OPTIONAL = "entityDefaultAssociationOptional"; + + /** + * Stores whether or not named parameters should be used in EJB queries. + */ + public static final String QUERY_USE_NAMED_PARAMETERS = "queryUseNamedParameters"; + + /** + * The default composite association cascade property + */ + public static final String ENTITY_DEFAULT_COMPOSITE_CASCADE = "entityCompositeCascade"; + + /** + * The default aggregation association cascade property + */ + public static final String ENTITY_DEFAULT_AGGREGATION_CASCADE = "entityAggergationCascade"; + + /** + * The default view type accessability for an entity POJO bean + */ + public static final String ENTITY_DEFAULT_VIEW_TYPE = "entityViewType"; + + /** + * The default view type accessability for the session bean + */ + public static final String SESSION_DEFAULT_VIEW_TYPE = "serviceViewType"; + + /** + * Represents the eager fetch type + */ + public static final String FETCH_TYPE_EAGER = "EAGER"; + + /** + * Represents the lazy fetch type + */ + public static final String FETCH_TYPE_LAZY = "LAZY"; + + /** + * Represents the clob lob type + */ + public static final String LOB_TYPE_CLOB = "CLOB"; + + /** + * Represents the blob lob type + */ + public static final String LOB_TYPE_BLOB = "BLOB"; + + /** + * Represents the table generator type + */ + public static final String GENERATOR_TYPE_TABLE = "TABLE"; + + /** + * Represents the sequence generator type + */ + public static final String GENERATOR_TYPE_SEQUENCE = "SEQUENCE"; + + /** + * Represents the identity generator type + */ + public static final String GENERATOR_TYPE_IDENTITY = "IDENTITY"; + + /** + * Represents the auto generator type + */ + public static final String GENERATOR_TYPE_AUTO = "AUTO"; + + /** + * Represents the none generator type + */ + public static final String GENERATOR_TYPE_NONE = "NONE"; + + /** + * Represents the date temporal type + */ + public static final String TEMPORAL_TYPE_DATE = "DATE"; + + /** + * Represents the time temporal type + */ + public static final String TEMPORAL_TYPE_TIME = "TIME"; + + /** + * Represents the timestamp temporal type + */ + public static final String TEMPORAL_TYPE_TIMESTAMP = "TIMESTAMP"; + + /** + * Represents the none temporal type + */ + public static final String TEMPORAL_TYPE_NONE = "NONE"; + + /** + * Represents the finder method index type on the parameter + */ + public static final String FINDER_RESULT_TYPE_FIRST = "First"; + + /** + * Represents the finder method max count on the parameter + */ + public static final String FINDER_RESULT_TYPE_MAX = "Max"; + + /** + * Represents the view type for the entity POJO as both remote and local + */ + public static final String VIEW_TYPE_BOTH = "both"; + + /** + * Represents the local view type for the entity POJO + */ + public static final String VIEW_TYPE_LOCAL = "local"; + + /** + * Represents the remote view type for the entity POJO + */ + public static final String VIEW_TYPE_REMOTE = "remote"; + + /** * Represents the mandatory transaction type */ public static final String TRANSACTION_TYPE_MANDATORY = "Manadatory"; @@ -43,42 +188,27 @@ public static final String TRANSACTION_TYPE_SUPPORTS = "Supports"; /** - * The pattern to use for determining the package name for EJBs. - */ - public static final String JNDI_NAME_PREFIX = "jndiNamePrefix"; - - /** - * The property that stores the default entity ID generator type - */ - public static final String ENTITY_DEFAULT_GENERATOR_TYPE = "entityDefaultGeneratorType"; - - /** - * The property that stores the default generator initial value - */ - public static final String ENTITY_DEFAULT_GENERATOR_INITIAL_VALUE = "entityDefaultGeneratorInitialValue"; - - /** - * The property that stores the default generator allocation size for incrementing ids + * Represents the stateless session bean */ - public static final String ENTITY_DEFAULT_GENERATOR_ALLOCATION_SIZE = "entityDefaultGeneratorAllocationSize"; + public static final String SERVICE_TYPE_STATELESS = "Stateless"; /** - * The property that stores the default entity association optional attribute for Many-to-One and One-to-One + * Represents the stateful session bean */ - public static final String ENTITY_DEFAULT_ASSOCIATION_OPTIONAL = "entityDefaultAssociationOptional"; + public static final String SERVICE_TYPE_STATEFUL = "Stateful"; /** - * Stores whether or not named parameters should be used in EJB queries. + * Represents the JBoss persistence container constant */ - public static final String QUERY_USE_NAMED_PARAMETERS = "queryUseNamedParameters"; + public static final String PERSISTENCE_CONTAINER_JBOSS = "jboss"; /** - * The default composite association cascade property + * Represents the Weblogic persistence container contant */ - public static final String ENTITY_DEFAULT_COMPOSITE_CASCADE = "entityCompositeCascade"; + public static final String PERSISTENCE_CONTAINER_WEBLOGIC = "weblogic"; /** - * The default aggregation association cascade property + * Represents the default security domain */ - public static final String ENTITY_DEFAULT_AGGREGATION_CASCADE = "entityAggergationCascade"; + public static final String SECURITY_DOMAIN = "securityDomain"; } |