| java.lang.Object org.andromda.cartridges.ejb.metafacades.EJBMetafacadeUtils
EJBMetafacadeUtils | class EJBMetafacadeUtils (Code) | | Contains utilities for use with EJB metafacades.
author: Chad Brandon |
Method Summary | |
static boolean | allowSyntheticCreateMethod(ClassifierFacade classifier) Returns true/false based on whether or not synthetic or auto generated create methods should be allowed.
Parameters: classifier - the entity or session EJB. | static List | getAllInstanceAttributes(ClassifierFacade classifier) Gets all instance attributes including those instance attributes belonging to the classifier and any
inherited ones.
Parameters: classifier - the ClassifierFacade from which to retrieve the instance attributes. | static Collection | getConstants(ClassifierFacade classifier, boolean follow) Gets all constants for the specified classifier . | static Collection | getCreateMethods(ClassifierFacade classifier, boolean follow) Gets all create methods for the given classifier . | static Collection | getEnvironmentEntries(ClassifierFacade classifier, boolean follow) Gets all environment entries for the specified classifier . | static String | getHomeInterfaceName(ClassifierFacade classifier) Gets the interface name for the passed in classifier . | static List | getInheritedInstanceAttributes(ClassifierFacade classifier) Gets all the inherited instance attributes, excluding the instance attributes directory from this
classifier .
Parameters: classifer - the ClassifierFacade from which to retrieve the inherited attributes. | static String | getViewType(ClassifierFacade classifier) Gets the view type for the passed in classifier . |
allowSyntheticCreateMethod | static boolean allowSyntheticCreateMethod(ClassifierFacade classifier)(Code) | | Returns true/false based on whether or not synthetic or auto generated create methods should be allowed.
Parameters: classifier - the entity or session EJB. true/false |
getAllInstanceAttributes | static List getAllInstanceAttributes(ClassifierFacade classifier)(Code) | | Gets all instance attributes including those instance attributes belonging to the classifier and any
inherited ones.
Parameters: classifier - the ClassifierFacade from which to retrieve the instance attributes. the list of all instance attributes. |
getConstants | static Collection getConstants(ClassifierFacade classifier, boolean follow)(Code) | | Gets all constants for the specified classifier . If follow is true, then a search up
the inheritance hierachy will be performed and all super type constants will also be retrieved.
Parameters: classifier - the classifier from which to retrieve the constants Parameters: follow - true/false on whether or not to 'follow' the inheritance hierarchy when retrieving theconstants. the collection of enviroment entries |
getCreateMethods | static Collection getCreateMethods(ClassifierFacade classifier, boolean follow)(Code) | | Gets all create methods for the given classifier .
Parameters: follow - if true, all super type create methods are also retrieved Collection of create methods found. |
getEnvironmentEntries | static Collection getEnvironmentEntries(ClassifierFacade classifier, boolean follow)(Code) | | Gets all environment entries for the specified classifier . If follow is true, then a
search up the inheritance hierachy will be performed and all super type environment entries will also be
retrieved.
Parameters: classifier - the classifier from which to retrieve the env-entries Parameters: follow - true/false on whether or not to 'follow' the inheritance hierarchy when retrieving theenv-entries. the collection of enviroment entries |
getHomeInterfaceName | static String getHomeInterfaceName(ClassifierFacade classifier)(Code) | | Gets the interface name for the passed in classifier . Returns 'LocalHome' if the mode element has
the entity stereotype, returns 'Home' otherwise.
the interface name. |
getInheritedInstanceAttributes | static List getInheritedInstanceAttributes(ClassifierFacade classifier)(Code) | | Gets all the inherited instance attributes, excluding the instance attributes directory from this
classifier .
Parameters: classifer - the ClassifierFacade from which to retrieve the inherited attributes. a list of ordered attributes. |
getViewType | static String getViewType(ClassifierFacade classifier)(Code) | | Gets the view type for the passed in classifier . Returns 'local' if the model element has the entity
stereotype, others checks there ejb tagged value and if there is no value defined, returns 'remote'.
String the view type name. |
|
|