|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents a persistent entity.
Metafacade interface to be used by AndroMDA cartridges.
| Method Summary | |
String |
getAttributeNameList(boolean follow,
boolean withIdentifiers)
Gets a comma seperated list of attribute names. |
Collection |
getAttributes(boolean follow,
boolean withIdentifiers)
Gets all attributes of the entity, and optionally retieves the super entities attributes as well as excludes the entity's identifiers if 'withIdentifiers' is set to false. |
String |
getAttributeTypeList(boolean follow,
boolean withIdentifiers)
Gets a comma seperated list of attribute types. |
Collection |
getBusinessOperations()
All business operations of the entity, these include any operations that aren't queries. |
Collection |
getChildEnds()
Gets any children association ends (i.e. |
Collection |
getEntityReferences()
All entities referenced by this entity. |
Collection |
getIdentifierAssociationEnds()
Gets all the associationEnds of this entity marked with the identifiers stereotype. |
Collection |
getIdentifiers()
All the attributes of the entity which make up its identifier (primary key). |
Collection |
getIdentifiers(boolean follow)
Gets all identifiers for an entity. |
Short |
getMaxSqlNameLength()
The maximum length a SQL name may be. |
String |
getOperationCallFromAttributes(boolean withIdentifiers)
Gets the attributes as a list within an operation call, optionally including the type names and the identifier attributes. |
String |
getOperationCallFromAttributes(boolean withIdentifiers,
boolean follow)
Gets the attributes as a list within an operation call. |
EntityAssociationEnd |
getParentEnd()
Returns the parent association end of this entity if its a child entity. |
Collection |
getProperties(boolean follow,
boolean withIdentifiers)
Gets all properties of this entity, this includes the attributes and navigable association ends of the entity. |
Collection |
getQueryOperations()
Returns all the operations that can perform queries on the entity. |
Collection |
getQueryOperations(boolean follow)
Gets all query operations for an entity. |
String |
getRequiredAttributeNameList(boolean follow,
boolean withIdentifiers)
Gets a comma seperated list of required attribute names. |
Collection |
getRequiredAttributes(boolean follow,
boolean withIdentifiers)
Returns all attributes that are specified as 'required' in the model. |
String |
getRequiredAttributeTypeList(boolean follow,
boolean withIdentifiers)
Gets a comma seperated list of attribute types with are required. |
Collection |
getRequiredProperties(boolean follow,
boolean withIdentifiers)
Gets all required properties for this entity. |
String |
getRequiredPropertyNameList(boolean follow,
boolean withIdentifiers)
Creates a comma seperated list of the required property names. |
String |
getRequiredPropertyTypeList(boolean follow,
boolean withIdentifiers)
A comma seperated list of the required property types. |
String |
getSchema()
The name of the schema that contains the database table |
String |
getTableName()
The name of the database table to which this entity is persisted. |
boolean |
isChild()
Returns true/false depending on whether or not this entity represetns a child in an association (this occurs when this entity is on the opposite end of an assocation end defined as composite). |
boolean |
isCompositeIdentifier()
|
boolean |
isDynamicIdentifiersPresent()
True if the entity has its identifiers dynamically added, false otherwise. |
boolean |
isEntityMetaType()
Indicates the metafacade type (used for metafacade mappings). |
boolean |
isIdentifiersPresent()
True if the entity has any identifiers defined, false otherwise. |
boolean |
isUsingAssignedIdentifier()
Indiciates if this entity is using an assigned identifier or not. |
boolean |
isUsingForeignIdentifier()
Indicates whether or not this entity is using a foreign identifier as its identifiers. |
| Methods inherited from interface org.andromda.metafacades.uml.GeneralizableElementFacade |
findTaggedValue, getAllGeneralizations, getAllSpecializations, getGeneralization, getGeneralizationLinks, getGeneralizationList, getGeneralizationRoot, getGeneralizations, getSpecializations, isGeneralizableElementFacadeMetaType |
| Method Detail |
public boolean isEntityMetaType()
true
public String getAttributeNameList(boolean follow,
boolean withIdentifiers)
Gets a comma seperated list of attribute names. If 'follow' is true, will travel up the inheritance hiearchy to include attributes in parent entities as well. If 'withIdentifiers' is true, will include identifiers.
public String getAttributeTypeList(boolean follow,
boolean withIdentifiers)
Gets a comma seperated list of attribute types. If 'follow' is true, will travel up the inheritance hiearchy to include attributes in parent entities as well. If 'withIdentifiers' is true, will include identifiers.
public Collection getAttributes(boolean follow,
boolean withIdentifiers)
Gets all attributes of the entity, and optionally retieves the super entities attributes as well as excludes the entity's identifiers if 'withIdentifiers' is set to false.
public Collection getBusinessOperations()
All business operations of the entity, these include any operations that aren't queries.
public Collection getChildEnds()
Gets any children association ends (i.e. entity association ends that are participants in an association with this entity and this entity has composite aggregation defined for those associations).
public Collection getEntityReferences()
All entities referenced by this entity.
public Collection getIdentifierAssociationEnds()
Gets all the associationEnds of this entity marked with the identifiers stereotype.
public Collection getIdentifiers()
All the attributes of the entity which make up its identifier (primary key). Will search any super classes as well. If no identifiers exist, a default identifier will be created if the allowDefaultIdentifiers property is set to true.
public Collection getIdentifiers(boolean follow)
Gets all identifiers for an entity. If 'follow' is true, and if no identifiers can be found on the entity, a search up the inheritance chain will be performed, and the identifiers from the first super class having them will be used. If no identifiers exist, a default identifier will be created if the allowDefaultIdentifiers property is set to true.
public Short getMaxSqlNameLength()
The maximum length a SQL name may be.
public String getOperationCallFromAttributes(boolean withIdentifiers)
Gets the attributes as a list within an operation call, optionally including the type names and the identifier attributes.
public String getOperationCallFromAttributes(boolean withIdentifiers,
boolean follow)
Gets the attributes as a list within an operation call. If 'withTypeNames' is true, it will include the type names, if 'withIdentifiers' is true it will include the identifiers. If 'follow' is true it will follow the inheritance hierarchy and get the attributes of the super class as well.
public EntityAssociationEnd getParentEnd()
Returns the parent association end of this entity if its a child entity. The parent is the entity that is the participant the association that has composite aggregation defined. Will return null if the entity has no parent.
public Collection getProperties(boolean follow,
boolean withIdentifiers)
Gets all properties of this entity, this includes the attributes and navigable association ends of the entity. The 'follow' flag indcates whether or not the inheritance hierachy should be followed when getting all the properties. The 'withIdentifiers' flag indicates whether or not identifiers should be included in the collection of properties.
public Collection getQueryOperations(boolean follow)
Gets all query operations for an entity. If 'follow' is true, and if no query operations can be found on the entity, a search up the inheritance chain will be performed, and the identifiers from the first super class having them will be used. If no identifiers exist, a default identifier will be created if the allowDefaultIdentifiers property is set to true.
public Collection getQueryOperations()
Returns all the operations that can perform queries on the entity.
public String getRequiredAttributeNameList(boolean follow,
boolean withIdentifiers)
Gets a comma seperated list of required attribute names. If 'follow' is true, will travel up the inheritance hiearchy to include attributes in parent entities as well. If 'withIdentifiers' is true, will include identifiers.
public String getRequiredAttributeTypeList(boolean follow,
boolean withIdentifiers)
Gets a comma seperated list of attribute types with are required. If 'follow' is true, will travel up the inheritance hiearchy to include attributes in parent entities as well. If 'withIdentifiers' is true, will include identifiers.
public Collection getRequiredAttributes(boolean follow,
boolean withIdentifiers)
Returns all attributes that are specified as 'required' in the model. If 'follow' is true, then required attributes in super classes will also be returned, if false, just the ones directly on the entity will be returned. If 'withIdentifiers' is true, the identifiers will be include, if false, no identifiers will be included.
public Collection getRequiredProperties(boolean follow,
boolean withIdentifiers)
Gets all required properties for this entity. These consist of any required attributes as well as navigable associations that are marked as 'required'. If 'follow' is true, then the inheritance hierchy will be followed and all required properties from super classes will be included as well.
If 'withIdentifiers' is true, the identifiers will be include, if false, no identifiers will be included.
public String getRequiredPropertyNameList(boolean follow,
boolean withIdentifiers)
Creates a comma seperated list of the required property names.
public String getRequiredPropertyTypeList(boolean follow,
boolean withIdentifiers)
A comma seperated list of the required property types.
public String getSchema()
The name of the schema that contains the database table
public String getTableName()
The name of the database table to which this entity is persisted.
public boolean isChild()
Returns true/false depending on whether or not this entity represetns a child in an association (this occurs when this entity is on the opposite end of an assocation end defined as composite).
public boolean isCompositeIdentifier()
public boolean isDynamicIdentifiersPresent()
True if the entity has its identifiers dynamically added, false otherwise.
public boolean isIdentifiersPresent()
True if the entity has any identifiers defined, false otherwise.
public boolean isUsingAssignedIdentifier()
Indiciates if this entity is using an assigned identifier or not.
public boolean isUsingForeignIdentifier()
Indicates whether or not this entity is using a foreign identifier as its identifiers. That is: the foreignIdentifier flag was set on an incoming association end and the entity is therefore using the related foreign parent entity's identifier.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||