public abstract class EntityLogic extends ClassifierFacadeLogicImpl implements Entity
Entity
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Object |
metaObject
The underlying UML object
|
contextRoot
Modifier | Constructor and Description |
---|---|
protected |
EntityLogic(Object metaObjectIn,
String context)
Create Metafacade implementation instance using the MetafacadeFactory from the context
|
Modifier and Type | Method and Description |
---|---|
Collection<DependencyFacade> |
getAllEntityReferences()
Represents a persistent entity.
|
String |
getAttributeNameList(boolean follow,
boolean withIdentifiers)
Gets a comma separated list of attribute names.
|
String |
getAttributeNameList(boolean follow,
boolean withIdentifiers,
boolean withDerived)
Gets a comma separated list of attribute names.
|
Collection<AttributeFacade> |
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.
|
Collection<AttributeFacade> |
getAttributes(boolean follow,
boolean withIdentifiers,
boolean withDerived)
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 and exclude
derived attributes if 'withDerived' is set to false.
|
String |
getAttributeTypeList(boolean follow,
boolean withIdentifiers)
Gets a comma separated list of attribute types.
|
Collection<OperationFacade> |
getBusinessOperations()
Represents a persistent entity.
|
Collection<EntityAssociationEnd> |
getChildEnds()
Represents a persistent entity.
|
Collection<AttributeFacade> |
getEmbeddedValues()
The embedded values belonging to this entity.
|
Collection<DependencyFacade> |
getEntityReferences()
Represents a persistent entity.
|
String |
getFullyQualifiedIdentifierTypeName()
The full name of the type of the identifier.
|
Collection<AssociationEndFacade> |
getIdentifierAssociationEnds()
Gets all the associationEnds of this entity marked with the identifiers stereotype.
|
String |
getIdentifierGetterName()
The getter name of the identifier.
|
String |
getIdentifierName()
The name of the identifier.
|
Collection<ModelElementFacade> |
getIdentifiers()
Represents a persistent entity.
|
Collection<ModelElementFacade> |
getIdentifiers(boolean follow)
Gets all identifiers for an entity.
|
String |
getIdentifierSetterName()
The setter name of the identifier.
|
String |
getIdentifierTypeName()
The name of the type of the identifier.
|
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()
Represents a persistent entity.
|
Collection<ModelElementFacade> |
getProperties(boolean follow,
boolean withIdentifiers)
Gets all properties of this entity, this includes the attributes and navigable association
ends of the entity.
|
Collection<EntityQueryOperation> |
getQueryOperations()
Represents a persistent entity.
|
Collection<OperationFacade> |
getQueryOperations(boolean follow)
Gets all query operations for an entity.
|
String |
getRequiredAttributeNameList(boolean follow,
boolean withIdentifiers)
Gets a comma separated list of required attribute names.
|
Collection<AttributeFacade> |
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 separated list of attribute types with are required.
|
Collection<ModelElementFacade> |
getRequiredProperties(boolean follow,
boolean withIdentifiers)
Gets all required properties for this entity.
|
String |
getRequiredPropertyNameList(boolean follow,
boolean withIdentifiers)
Creates a comma separated list of the required property names.
|
String |
getRequiredPropertyTypeList(boolean follow,
boolean withIdentifiers)
A comma separated 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.
|
protected abstract Collection |
handleGetAllEntityReferences()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract String |
handleGetAttributeNameList(boolean follow,
boolean withIdentifiers)
Method to be implemented in descendants
Gets a comma separated list of attribute names.
|
protected abstract String |
handleGetAttributeNameList(boolean follow,
boolean withIdentifiers,
boolean withDerived)
Method to be implemented in descendants
Gets a comma separated list of attribute names.
|
protected abstract Collection<AttributeFacade> |
handleGetAttributes(boolean follow,
boolean withIdentifiers)
Method to be implemented in descendants
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.
|
protected abstract Collection<AttributeFacade> |
handleGetAttributes(boolean follow,
boolean withIdentifiers,
boolean withDerived)
Method to be implemented in descendants
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 and exclude
derived attributes if 'withDerived' is set to false.
|
protected abstract String |
handleGetAttributeTypeList(boolean follow,
boolean withIdentifiers)
Method to be implemented in descendants
Gets a comma separated list of attribute types.
|
protected abstract Collection |
handleGetBusinessOperations()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Collection |
handleGetChildEnds()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Collection<AttributeFacade> |
handleGetEmbeddedValues() |
protected abstract Collection |
handleGetEntityReferences()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract String |
handleGetFullyQualifiedIdentifierTypeName() |
protected abstract Collection<AssociationEndFacade> |
handleGetIdentifierAssociationEnds()
Method to be implemented in descendants
Gets all the associationEnds of this entity marked with the identifiers stereotype.
|
protected abstract String |
handleGetIdentifierGetterName() |
protected abstract String |
handleGetIdentifierName() |
protected abstract Collection |
handleGetIdentifiers()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Collection<ModelElementFacade> |
handleGetIdentifiers(boolean follow)
Method to be implemented in descendants
Gets all identifiers for an entity.
|
protected abstract String |
handleGetIdentifierSetterName() |
protected abstract String |
handleGetIdentifierTypeName() |
protected abstract short |
handleGetMaxSqlNameLength() |
protected abstract String |
handleGetOperationCallFromAttributes(boolean withIdentifiers)
Method to be implemented in descendants
Gets the attributes as a list within an operation call, optionally including the type names
and the identifier attributes.
|
protected abstract String |
handleGetOperationCallFromAttributes(boolean withIdentifiers,
boolean follow)
Method to be implemented in descendants
Gets the attributes as a list within an operation call.
|
protected abstract Object |
handleGetParentEnd()
UML Specific type is transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Collection<ModelElementFacade> |
handleGetProperties(boolean follow,
boolean withIdentifiers)
Method to be implemented in descendants
Gets all properties of this entity, this includes the attributes and navigable association
ends of the entity.
|
protected abstract Collection |
handleGetQueryOperations()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Collection<OperationFacade> |
handleGetQueryOperations(boolean follow)
Method to be implemented in descendants
Gets all query operations for an entity.
|
protected abstract String |
handleGetRequiredAttributeNameList(boolean follow,
boolean withIdentifiers)
Method to be implemented in descendants
Gets a comma separated list of required attribute names.
|
protected abstract Collection<AttributeFacade> |
handleGetRequiredAttributes(boolean follow,
boolean withIdentifiers)
Method to be implemented in descendants
Returns all attributes that are specified as 'required' in the model.
|
protected abstract String |
handleGetRequiredAttributeTypeList(boolean follow,
boolean withIdentifiers)
Method to be implemented in descendants
Gets a comma separated list of attribute types with are required.
|
protected abstract Collection<ModelElementFacade> |
handleGetRequiredProperties(boolean follow,
boolean withIdentifiers)
Method to be implemented in descendants
Gets all required properties for this entity.
|
protected abstract String |
handleGetRequiredPropertyNameList(boolean follow,
boolean withIdentifiers)
Method to be implemented in descendants
Creates a comma separated list of the required property names.
|
protected abstract String |
handleGetRequiredPropertyTypeList(boolean follow,
boolean withIdentifiers)
Method to be implemented in descendants
A comma separated list of the required property types.
|
protected abstract String |
handleGetSchema() |
protected abstract String |
handleGetTableName() |
protected abstract boolean |
handleIsChild() |
protected abstract boolean |
handleIsCompositeIdentifier() |
protected abstract boolean |
handleIsDynamicIdentifiersPresent() |
protected abstract boolean |
handleIsIdentifiersPresent() |
protected abstract boolean |
handleIsUsingAssignedIdentifier() |
protected abstract boolean |
handleIsUsingForeignIdentifier() |
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()
True if this entity identifier is a composite (consists of multiple key columns, typically
abstracted into an external composite identifier class)
|
boolean |
isDynamicIdentifiersPresent()
True if the entity has its identifiers dynamically added, false otherwise.
|
boolean |
isEntityMetaType() |
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.
|
void |
resetMetafacadeContext(String context)
Reset context only for non-root metafacades
|
void |
validateInvariants(Collection<ModelValidationMessage> validationMessages)
Constraint: org::andromda::metafacades::uml::Entity::entity must have at least one primary key
|
getOwner, getWrapperMappings, handleFindAttribute, handleGetAbstractions, handleGetAllAssociatedClasses, handleGetAllProperties, handleGetAllRequiredConstructorParameters, handleGetArray, handleGetArrayName, handleGetAssociatedClasses, handleGetAssociationEnds, handleGetAttributes, handleGetAttributes, handleGetFullyQualifiedArrayName, handleGetImplementationOperations, handleGetImplementedInterfaceList, handleGetInstanceAttributes, handleGetInstanceOperations, handleGetInterfaceAbstractions, handleGetJavaNewString, handleGetJavaNullString, handleGetName, handleGetNavigableConnectingEnds, handleGetNavigableConnectingEnds, handleGetNonArray, handleGetOperationCallFromAttributes, handleGetOperations, handleGetProperties, handleGetProperties, handleGetRequiredConstructorParameters, handleGetSerialVersionUID, handleGetStaticAttributes, handleGetStaticOperations, handleGetSuperClass, handleGetWrapperName, handleIsAbstract, handleIsArrayType, handleIsAssociationClass, handleIsBlobType, handleIsBooleanType, handleIsCharacterType, handleIsClobType, handleIsCollectionType, handleIsDataType, handleIsDateType, handleIsDoubleType, handleIsEmbeddedValue, handleIsEnumeration, handleIsFileType, handleIsFloatType, handleIsIntegerType, handleIsInterface, handleIsLeaf, handleIsListType, handleIsLongType, handleIsMapType, handleIsPrimitive, handleIsSetType, handleIsStringType, handleIsTimeType, handleIsWrappedPrimitive
findAttribute, getAbstractions, getAllAssociatedClasses, getAllProperties, getAllRequiredConstructorParameters, getArray, getArrayName, getAssociatedClasses, getAssociationEnds, getAttributes, getAttributes, getFullyQualifiedArrayName, getImplementationOperations, getImplementedInterfaceList, getInstanceAttributes, getInstanceOperations, getInterfaceAbstractions, getJavaNewString, getJavaNullString, getNavigableConnectingEnds, getNavigableConnectingEnds, getNonArray, getOperationCallFromAttributes, getOperations, getProperties, getProperties, getRequiredConstructorParameters, getSerialVersionUID, getStaticAttributes, getStaticOperations, getSuperClass, getWrapperName, isAbstract, isArrayType, isAssociationClass, isBlobType, isBooleanType, isCharacterType, isClassifierFacadeMetaType, isClobType, isCollectionType, isDataType, isDateType, isDoubleType, isEmbeddedValue, isEnumeration, isFileType, isFloatType, isIntegerType, isInterface, isLeaf, isListType, isLongType, isMapType, isPrimitive, isSetType, isStringType, isTimeType, isWrappedPrimitive
handleFindTaggedValue, handleGetAllGeneralizations, handleGetAllSpecializations, handleGetGeneralization, handleGetGeneralizationLinks, handleGetGeneralizationList, handleGetGeneralizationRoot, handleGetGeneralizations, handleGetSpecializations
findTaggedValue, getAllGeneralizations, getAllSpecializations, getGeneralization, getGeneralizationLinks, getGeneralizationList, getGeneralizationRoot, getGeneralizations, getSpecializations, isGeneralizableElementFacadeMetaType
getArraySuffix, getValidationName, handleCopyTaggedValues, handleFindTaggedValue, handleFindTaggedValues, handleGetBindedFullyQualifiedName, handleGetConstraints, handleGetConstraints, handleGetDocumentation, handleGetDocumentation, handleGetDocumentation, handleGetFullyQualifiedName, handleGetFullyQualifiedName, handleGetFullyQualifiedNamePath, handleGetId, handleGetKeywords, handleGetLabel, handleGetLanguageMappings, handleGetModel, handleGetOwnedElements, handleGetOwner, handleGetPackage, handleGetPackageName, handleGetPackageName, handleGetPackagePath, handleGetQualifiedName, handleGetRootPackage, handleGetSourceDependencies, handleGetStateMachineContext, handleGetStereotypeNames, handleGetStereotypes, handleGetTaggedValues, handleGetTargetDependencies, handleGetTemplateParameter, handleGetTemplateParameters, handleGetVisibility, handleHasExactStereotype, handleHasKeyword, handleHasStereotype, handleIsBindingDependenciesPresent, handleIsConstraintsPresent, handleIsDocumentationPresent, handleIsReservedWord, handleIsTemplateParametersPresent, handleIsValidIdentifierName, handleTranslateConstraint, handleTranslateConstraints, handleTranslateConstraints
copyTaggedValues, findTaggedValue, findTaggedValues, getBindedFullyQualifiedName, getConstraints, getConstraints, getDocumentation, getDocumentation, getDocumentation, getFullyQualifiedName, getFullyQualifiedName, getFullyQualifiedNamePath, getId, getKeywords, getLabel, getLanguageMappings, getModel, getName, getPackage, getPackageName, getPackageName, getPackagePath, getQualifiedName, getRootPackage, getSourceDependencies, getStateMachineContext, getStereotypeNames, getStereotypes, getTaggedValues, getTargetDependencies, getTemplateParameter, getTemplateParameters, getVisibility, hasExactStereotype, hasKeyword, hasStereotype, isBindingDependenciesPresent, isConstraintsPresent, isDocumentationPresent, isModelElementFacadeMetaType, isReservedWord, isTemplateParametersPresent, isValidIdentifierName, toString, translateConstraint, translateConstraints, translateConstraints
compareTo, equals, getConfiguredProperty, getDebug, getMetafacadeContext, getMetaObject, getValidationOwner, hashCode, initialize, isConfiguredProperty, isMetafacadePropertyCachingEnabled, setMetafacadeContext, setProperty, shieldedElement, shieldedElements, THIS, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findAttribute, getAbstractions, getAllAssociatedClasses, getAllProperties, getAllRequiredConstructorParameters, getArray, getArrayName, getAssociatedClasses, getAssociationEnds, getAttributes, getAttributes, getFullyQualifiedArrayName, getImplementationOperations, getImplementedInterfaceList, getInstanceAttributes, getInstanceOperations, getInterfaceAbstractions, getJavaNewString, getJavaNullString, getNavigableConnectingEnds, getNavigableConnectingEnds, getNonArray, getOperationCallFromAttributes, getOperations, getProperties, getProperties, getRequiredConstructorParameters, getSerialVersionUID, getStaticAttributes, getStaticOperations, getSuperClass, getWrapperName, isAbstract, isArrayType, isAssociationClass, isBlobType, isBooleanType, isCharacterType, isClassifierFacadeMetaType, isClobType, isCollectionType, isDataType, isDateType, isDoubleType, isEmbeddedValue, isEnumeration, isFileType, isFloatType, isIntegerType, isInterface, isLeaf, isListType, isLongType, isMapType, isPrimitive, isSetType, isStringType, isTimeType, isWrappedPrimitive
findTaggedValue, getAllGeneralizations, getAllSpecializations, getGeneralization, getGeneralizationLinks, getGeneralizationList, getGeneralizationRoot, getGeneralizations, getSpecializations, isGeneralizableElementFacadeMetaType
copyTaggedValues, findTaggedValue, findTaggedValues, getBindedFullyQualifiedName, getConstraints, getConstraints, getDocumentation, getDocumentation, getDocumentation, getFullyQualifiedName, getFullyQualifiedName, getFullyQualifiedNamePath, getId, getKeywords, getLabel, getLanguageMappings, getModel, getName, getPackage, getPackageName, getPackageName, getPackagePath, getQualifiedName, getRootPackage, getSourceDependencies, getStateMachineContext, getStereotypeNames, getStereotypes, getTaggedValues, getTargetDependencies, getTemplateParameter, getTemplateParameters, getValidationName, getValidationOwner, getVisibility, hasExactStereotype, hasKeyword, hasStereotype, initialize, isBindingDependenciesPresent, isConstraintsPresent, isDocumentationPresent, isModelElementFacadeMetaType, isReservedWord, isTemplateParametersPresent, isValidIdentifierName, translateConstraint, translateConstraints, translateConstraints
protected Object metaObject
Object
protected EntityLogic(Object metaObjectIn, String context)
metaObjectIn
- context
- public void resetMetafacadeContext(String context)
resetMetafacadeContext
in class ClassifierFacadeLogic
context
- public boolean isEntityMetaType()
isEntityMetaType
in interface Entity
Entity
protected abstract boolean handleIsChild()
Entity.isChild()
public final boolean isChild()
protected abstract String handleGetTableName()
Entity.getTableName()
public final String getTableName()
getTableName
in interface Entity
protected abstract boolean handleIsIdentifiersPresent()
Entity.isIdentifiersPresent()
public final boolean isIdentifiersPresent()
isIdentifiersPresent
in interface Entity
protected abstract short handleGetMaxSqlNameLength()
Entity.getMaxSqlNameLength()
public final short getMaxSqlNameLength()
getMaxSqlNameLength
in interface Entity
protected abstract boolean handleIsUsingForeignIdentifier()
Entity.isUsingForeignIdentifier()
public final boolean isUsingForeignIdentifier()
isUsingForeignIdentifier
in interface Entity
protected abstract boolean handleIsDynamicIdentifiersPresent()
Entity.isDynamicIdentifiersPresent()
public final boolean isDynamicIdentifiersPresent()
isDynamicIdentifiersPresent
in interface Entity
protected abstract boolean handleIsUsingAssignedIdentifier()
Entity.isUsingAssignedIdentifier()
public final boolean isUsingAssignedIdentifier()
isUsingAssignedIdentifier
in interface Entity
protected abstract String handleGetSchema()
Entity.getSchema()
protected abstract boolean handleIsCompositeIdentifier()
Entity.isCompositeIdentifier()
public final boolean isCompositeIdentifier()
isCompositeIdentifier
in interface Entity
protected abstract Collection<AttributeFacade> handleGetEmbeddedValues()
Entity.getEmbeddedValues()
public final Collection<AttributeFacade> getEmbeddedValues()
getEmbeddedValues
in interface Entity
protected abstract String handleGetFullyQualifiedIdentifierTypeName()
Entity.getFullyQualifiedIdentifierTypeName()
public final String getFullyQualifiedIdentifierTypeName()
getFullyQualifiedIdentifierTypeName
in interface Entity
protected abstract String handleGetIdentifierGetterName()
Entity.getIdentifierGetterName()
public final String getIdentifierGetterName()
getIdentifierGetterName
in interface Entity
protected abstract String handleGetIdentifierName()
Entity.getIdentifierName()
public final String getIdentifierName()
getIdentifierName
in interface Entity
protected abstract String handleGetIdentifierSetterName()
Entity.getIdentifierSetterName()
public final String getIdentifierSetterName()
getIdentifierSetterName
in interface Entity
protected abstract String handleGetIdentifierTypeName()
Entity.getIdentifierTypeName()
public final String getIdentifierTypeName()
getIdentifierTypeName
in interface Entity
protected abstract String handleGetOperationCallFromAttributes(boolean withIdentifiers)
withIdentifiers
- public String getOperationCallFromAttributes(boolean withIdentifiers)
getOperationCallFromAttributes
in interface Entity
withIdentifiers
- boolean
True if you want to include identifiers within the attribute list, false otherwise.protected abstract Collection<ModelElementFacade> handleGetIdentifiers(boolean follow)
follow
- public Collection<ModelElementFacade> getIdentifiers(boolean follow)
getIdentifiers
in interface Entity
follow
- boolean
TODO: Model Documentation for Entity.getIdentifiers(follow)protected abstract String handleGetOperationCallFromAttributes(boolean withIdentifiers, boolean follow)
withIdentifiers
- follow
- public String getOperationCallFromAttributes(boolean withIdentifiers, boolean follow)
getOperationCallFromAttributes
in interface Entity
withIdentifiers
- boolean
If true, identifiers will be included in the list.follow
- boolean
If this is true, the inheritance hierarchy will be followed when retrieving all attrbutes.protected abstract Collection<AttributeFacade> handleGetRequiredAttributes(boolean follow, boolean withIdentifiers)
follow
- withIdentifiers
- public Collection<AttributeFacade> getRequiredAttributes(boolean follow, boolean withIdentifiers)
getRequiredAttributes
in interface Entity
follow
- boolean
Whether or not to follow the inheritance hierarchy when retreiving the attributes. If true,
the required attributes in super classes will also be returned, if false, just the ones
directly on the entity will be returned.withIdentifiers
- boolean
Whether or not to include identifiers in the list of required attributes.protected abstract Collection<ModelElementFacade> handleGetRequiredProperties(boolean follow, boolean withIdentifiers)
follow
- withIdentifiers
- public Collection<ModelElementFacade> getRequiredProperties(boolean follow, boolean withIdentifiers)
getRequiredProperties
in interface Entity
follow
- boolean
Whether or not to follow the inheritance hierarchy when retreiving the properties. If true,
the required propertis in super classes will also be returned, if false, just the ones
directly on the entity will be returned.withIdentifiers
- boolean
Whether or not to include identifiers in the list of required attributes.protected abstract Collection<AttributeFacade> handleGetAttributes(boolean follow, boolean withIdentifiers)
follow
- withIdentifiers
- public Collection<AttributeFacade> getAttributes(boolean follow, boolean withIdentifiers)
getAttributes
in interface Entity
follow
- boolean
Whether or not to follow the inheritance hierarchy when retreiving attributes.withIdentifiers
- boolean
Whether or not to include identifiers in the returned attributes.protected abstract String handleGetAttributeTypeList(boolean follow, boolean withIdentifiers)
follow
- withIdentifiers
- public String getAttributeTypeList(boolean follow, boolean withIdentifiers)
getAttributeTypeList
in interface Entity
follow
- boolean
Whether or not to 'follow' the inheritance hierarchy.withIdentifiers
- boolean
Whether or not to include identifiers.protected abstract String handleGetAttributeNameList(boolean follow, boolean withIdentifiers)
follow
- withIdentifiers
- public String getAttributeNameList(boolean follow, boolean withIdentifiers)
getAttributeNameList
in interface Entity
follow
- boolean
Whether or not to 'follow' the inheritance hierarchy.withIdentifiers
- boolean
Whether or not to include identifiers in the returned attributes.protected abstract String handleGetRequiredAttributeTypeList(boolean follow, boolean withIdentifiers)
follow
- withIdentifiers
- public String getRequiredAttributeTypeList(boolean follow, boolean withIdentifiers)
getRequiredAttributeTypeList
in interface Entity
follow
- boolean
Whether or not to 'follow' the inheritance hierarchy.withIdentifiers
- boolean
Whether or not to include identifiers in the list of required attributes.protected abstract String handleGetRequiredAttributeNameList(boolean follow, boolean withIdentifiers)
follow
- withIdentifiers
- public String getRequiredAttributeNameList(boolean follow, boolean withIdentifiers)
getRequiredAttributeNameList
in interface Entity
follow
- boolean
Whether or not to follow the inheritance hierarchy when retreiving the attributes. If true,
the required attributes in super classes will also be used, if false, just the ones directly
on the entity will be added to the list.withIdentifiers
- boolean
Whether or not to include identifiers in the list of required attribute names.protected abstract Collection<OperationFacade> handleGetQueryOperations(boolean follow)
follow
- public Collection<OperationFacade> getQueryOperations(boolean follow)
getQueryOperations
in interface Entity
follow
- boolean
TODO: Model Documentation for Entity.getQueryOperations(follow)protected abstract String handleGetRequiredPropertyNameList(boolean follow, boolean withIdentifiers)
follow
- withIdentifiers
- public String getRequiredPropertyNameList(boolean follow, boolean withIdentifiers)
getRequiredPropertyNameList
in interface Entity
follow
- boolean
Whether or not to follow the inheritance hierarchy when retrieving the properties.withIdentifiers
- boolean
Whether or not to include identifiers in the list.protected abstract String handleGetRequiredPropertyTypeList(boolean follow, boolean withIdentifiers)
follow
- withIdentifiers
- public String getRequiredPropertyTypeList(boolean follow, boolean withIdentifiers)
getRequiredPropertyTypeList
in interface Entity
follow
- boolean
Whether or not to follow the inheritance hierarchywithIdentifiers
- boolean
Whether or not to include identifiers in the list.protected abstract Collection<ModelElementFacade> handleGetProperties(boolean follow, boolean withIdentifiers)
follow
- withIdentifiers
- public Collection<ModelElementFacade> getProperties(boolean follow, boolean withIdentifiers)
getProperties
in interface Entity
follow
- boolean
TODO: Model Documentation for Entity.getProperties(follow)withIdentifiers
- boolean
TODO: Model Documentation for
Entity.getProperties(withIdentifiers)protected abstract Collection<AssociationEndFacade> handleGetIdentifierAssociationEnds()
public Collection<AssociationEndFacade> getIdentifierAssociationEnds()
getIdentifierAssociationEnds
in interface Entity
protected abstract Collection<AttributeFacade> handleGetAttributes(boolean follow, boolean withIdentifiers, boolean withDerived)
follow
- withIdentifiers
- withDerived
- public Collection<AttributeFacade> getAttributes(boolean follow, boolean withIdentifiers, boolean withDerived)
getAttributes
in interface Entity
follow
- boolean
Whether or not to follow the inheritance hierarchy when retreiving attributes.withIdentifiers
- boolean
Whether or not to include identifiers in the returned attributes.withDerived
- boolean
Whether or not to include derived attributes in the returned attributes.protected abstract String handleGetAttributeNameList(boolean follow, boolean withIdentifiers, boolean withDerived)
follow
- withIdentifiers
- withDerived
- public String getAttributeNameList(boolean follow, boolean withIdentifiers, boolean withDerived)
getAttributeNameList
in interface Entity
follow
- boolean
Whether or not to 'follow' the inheritance hierarchy.withIdentifiers
- boolean
Whether or not to include identifiers in the returned attributes.withDerived
- boolean
Whether or not to include derived attributes in the returned attributes.public final Collection<DependencyFacade> getEntityReferences()
getEntityReferences
in interface Entity
protected abstract Collection handleGetEntityReferences()
public final EntityAssociationEnd getParentEnd()
getParentEnd
in interface Entity
protected abstract Object handleGetParentEnd()
public final Collection<ModelElementFacade> getIdentifiers()
getIdentifiers
in interface Entity
protected abstract Collection handleGetIdentifiers()
public final Collection<EntityAssociationEnd> getChildEnds()
getChildEnds
in interface Entity
protected abstract Collection handleGetChildEnds()
public final Collection<EntityQueryOperation> getQueryOperations()
getQueryOperations
in interface Entity
protected abstract Collection handleGetQueryOperations()
public final Collection<OperationFacade> getBusinessOperations()
getBusinessOperations
in interface Entity
protected abstract Collection handleGetBusinessOperations()
public final Collection<DependencyFacade> getAllEntityReferences()
getAllEntityReferences
in interface Entity
protected abstract Collection handleGetAllEntityReferences()
public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
Constraint: org::andromda::metafacades::uml::Entity::entity must have at least one primary key
Error: Each entity must have at least one identifier defined.
OCL: context Entity inv: identifiersPresent
Constraint: org::andromda::metafacades::uml::Entity::entities can only specialize other entites
Error: An entity can only specialize another entity.
OCL: context Entity inv : specializations -> notEmpty() implies specializations -> forAll(oclIsKindOf(Entity))
validateInvariants
in interface ModelElementFacade
validateInvariants
in class ClassifierFacadeLogic
validationMessages
- CollectionClassifierFacadeLogic.validateInvariants(Collection validationMessages)
Copyright © 2003–2014 AndroMDA.org. All rights reserved.