class EJBMetafacadeUtils extends Object
Constructor and Description |
---|
EJBMetafacadeUtils() |
Modifier and Type | Method and Description |
---|---|
(package private) static boolean |
allowSyntheticCreateMethod(ClassifierFacade classifier)
Returns true/false based on whether or not synthetic or auto generated create methods should be allowed.
|
(package private) static List |
getAllInstanceAttributes(ClassifierFacade classifier)
Gets all instance attributes including those instance attributes belonging to the
classifier and any
inherited ones. |
(package private) static Collection |
getConstants(ClassifierFacade classifier,
boolean follow)
Gets all constants for the specified
classifier . |
(package private) static Collection<OperationFacade> |
getCreateMethods(ClassifierFacade classifier,
boolean follow)
Gets all create methods for the given
classifier . |
(package private) static Collection |
getEnvironmentEntries(ClassifierFacade classifier,
boolean follow)
Gets all environment entries for the specified
classifier . |
(package private) static String |
getHomeInterfaceName(ClassifierFacade classifier)
Gets the interface name for the passed in
classifier . |
(package private) static List |
getInheritedInstanceAttributes(ClassifierFacade classifier)
Gets all the inherited instance attributes, excluding the instance attributes directory from this
classifier . |
(package private) static String |
getViewType(ClassifierFacade classifier)
Gets the view type for the passed in
classifier . |
EJBMetafacadeUtils()
static Collection<OperationFacade> getCreateMethods(ClassifierFacade classifier, boolean follow)
classifier
.classifier
- follow
- if true, all super type create methods are also retrievedstatic String getHomeInterfaceName(ClassifierFacade classifier)
classifier
. Returns 'LocalHome' if the mode element has
the entity stereotype, returns 'Home' otherwise.classifier
- static String getViewType(ClassifierFacade classifier)
classifier
. Returns 'local' if the model element has the entity
stereotype, also checks the ejb tagged value and if there is no value defined, returns 'remote'.classifier
- static List getInheritedInstanceAttributes(ClassifierFacade classifier)
classifier
.classifier
- the ClassifierFacade from which to retrieve the inherited attributes.static List getAllInstanceAttributes(ClassifierFacade classifier)
classifier
and any
inherited ones.classifier
- the ClassifierFacade from which to retrieve the instance attributes.static Collection getEnvironmentEntries(ClassifierFacade classifier, boolean follow)
classifier
. If follow
is true, then a
search up the inheritance hierarchy will be performed and all super type environment entries will also be
retrieved.classifier
- the classifier from which to retrieve the env-entriesfollow
- true/false on whether or not to 'follow' the inheritance hierarchy when retrieving the
env-entries.static Collection getConstants(ClassifierFacade classifier, boolean follow)
classifier
. If follow
is true, then a search up
the inheritance hierarchy will be performed and all super type constants will also be retrieved.classifier
- the classifier from which to retrieve the constantsfollow
- true/false on whether or not to 'follow' the inheritance hierarchy when retrieving the
constants.static boolean allowSyntheticCreateMethod(ClassifierFacade classifier)
classifier
- the entity or session EJB.Copyright © 2003–2014 AndroMDA.org. All rights reserved.