public abstract class ManageableEntityLogic extends EntityLogicImpl implements ManageableEntity
ManageableEntity
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Object |
metaObject
The underlying UML object
|
contextRoot
Modifier | Constructor and Description |
---|---|
protected |
ManageableEntityLogic(Object metaObjectIn,
String context)
Create Metafacade implementation instance using the MetafacadeFactory from the context
|
Modifier and Type | Method and Description |
---|---|
List<ManageableEntity> |
getAllManageables()
An Entity that is Manageable: will produce CRUD operations in the EntityManager
implementation.
|
ManageableEntityAttribute |
getDisplayAttribute()
An Entity that is Manageable: will produce CRUD operations in the EntityManager
implementation.
|
String |
getFullyQualifiedManageableServiceName()
The fully qualified service name of the entity.
|
List<ManageableEntityAssociationEnd> |
getManageableAssociationEnds()
An Entity that is Manageable: will produce CRUD operations in the EntityManager
implementation.
|
List<ManageableEntityAttribute> |
getManageableAttributes()
An Entity that is Manageable: will produce CRUD operations in the EntityManager
implementation.
|
ManageableEntityAttribute |
getManageableIdentifier()
An Entity that is Manageable: will produce CRUD operations in the EntityManager
implementation.
|
List<ModelElementFacade> |
getManageableMembers()
ManageableAttributes and ManageableAssociationEnds
|
String |
getManageablePackageName()
The entity package name.
|
String |
getManageablePackagePath()
The Package path of the Entity
|
String |
getManageableServiceAccessorCall()
The entity accessor (getter) call.
|
String |
getManageableServiceFullPath()
The service full path of the entity.
|
String |
getManageableServiceName()
The service name of the entity.
|
int |
getMaximumListSize()
The maximum number of rows to load from the database.
|
int |
getPageSize()
The maximum number of rows to load from the database.
|
List<ManageableEntity> |
getReferencingManageables()
An Entity that is Manageable: will produce CRUD operations in the EntityManager
implementation.
|
List<ActorFacade> |
getUsers()
An Entity that is Manageable: will produce CRUD operations in the EntityManager
implementation.
|
protected abstract List |
handleGetAllManageables()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Object |
handleGetDisplayAttribute()
UML Specific type is transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract String |
handleGetFullyQualifiedManageableServiceName() |
protected abstract List |
handleGetManageableAssociationEnds()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract List |
handleGetManageableAttributes()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Object |
handleGetManageableIdentifier()
UML Specific type is transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract List<ModelElementFacade> |
handleGetManageableMembers() |
protected abstract String |
handleGetManageablePackageName() |
protected abstract String |
handleGetManageablePackagePath() |
protected abstract String |
handleGetManageableServiceAccessorCall() |
protected abstract String |
handleGetManageableServiceFullPath() |
protected abstract String |
handleGetManageableServiceName() |
protected abstract int |
handleGetMaximumListSize() |
protected abstract int |
handleGetPageSize() |
protected abstract List |
handleGetReferencingManageables()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract List |
handleGetUsers()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract boolean |
handleIsCreate() |
protected abstract boolean |
handleIsDelete() |
protected abstract boolean |
handleIsManageable() |
protected abstract boolean |
handleIsRead() |
protected abstract boolean |
handleIsResolveable() |
protected abstract boolean |
handleIsUpdate() |
protected abstract String |
handleListManageableMembers(boolean withTypes)
Method to be implemented in descendants
Returns a string with the attributes without wrapper types.
|
protected abstract String |
handleListManageableMembersWithWrapperTypes()
Method to be implemented in descendants
Returns a string with the attributes and wrapper types.
|
boolean |
isCreate()
Create a create operation on the entity manager?
|
boolean |
isDelete()
Create a delete operation on the entity manager?
|
boolean |
isManageable()
True: Entity is manageable.
|
boolean |
isManageableEntityMetaType() |
boolean |
isRead()
Create a read operation on the entity manager?
|
boolean |
isResolveable()
The maximum number of rows to load from the database.
|
boolean |
isUpdate()
Create an update operation on the entity manager?
|
String |
listManageableMembers(boolean withTypes)
Returns a string with the attributes without wrapper types.
|
String |
listManageableMembersWithWrapperTypes()
Returns a string with the attributes and wrapper types.
|
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
|
handleGetAllEntityReferences, handleGetAssociationEnds, handleGetAttributeNameList, handleGetAttributeNameList, handleGetAttributes, handleGetAttributes, handleGetAttributeTypeList, handleGetBusinessOperations, handleGetChildEnds, handleGetEmbeddedValues, handleGetEntityReferences, handleGetFullyQualifiedIdentifierTypeName, handleGetIdentifierAssociationEnds, handleGetIdentifierGetterName, handleGetIdentifierName, handleGetIdentifiers, handleGetIdentifiers, handleGetIdentifierSetterName, handleGetIdentifierTypeName, handleGetMaxSqlNameLength, handleGetName, handleGetOperationCallFromAttributes, handleGetOperationCallFromAttributes, handleGetParentEnd, handleGetProperties, handleGetQueryOperations, handleGetQueryOperations, handleGetRequiredAttributeNameList, handleGetRequiredAttributes, handleGetRequiredAttributeTypeList, handleGetRequiredProperties, handleGetRequiredPropertyNameList, handleGetRequiredPropertyTypeList, handleGetSchema, handleGetTableName, handleIsChild, handleIsCompositeIdentifier, handleIsDynamicIdentifiersPresent, handleIsIdentifiersPresent, handleIsUsingAssignedIdentifier, handleIsUsingForeignIdentifier, initialize
getAllEntityReferences, getAttributeNameList, getAttributeNameList, getAttributes, getAttributes, getAttributeTypeList, getBusinessOperations, getChildEnds, getEmbeddedValues, getEntityReferences, getFullyQualifiedIdentifierTypeName, getIdentifierAssociationEnds, getIdentifierGetterName, getIdentifierName, getIdentifiers, getIdentifiers, getIdentifierSetterName, getIdentifierTypeName, getMaxSqlNameLength, getOperationCallFromAttributes, getOperationCallFromAttributes, getParentEnd, getProperties, getQueryOperations, getQueryOperations, getRequiredAttributeNameList, getRequiredAttributes, getRequiredAttributeTypeList, getRequiredProperties, getRequiredPropertyNameList, getRequiredPropertyTypeList, getSchema, getTableName, isChild, isCompositeIdentifier, isDynamicIdentifiersPresent, isEntityMetaType, isIdentifiersPresent, isUsingAssignedIdentifier, isUsingForeignIdentifier
getOwner, getWrapperMappings, handleFindAttribute, handleGetAbstractions, handleGetAllAssociatedClasses, handleGetAllProperties, handleGetAllRequiredConstructorParameters, handleGetArray, handleGetArrayName, handleGetAssociatedClasses, handleGetAttributes, handleGetAttributes, handleGetFullyQualifiedArrayName, handleGetImplementationOperations, handleGetImplementedInterfaceList, handleGetInstanceAttributes, handleGetInstanceOperations, handleGetInterfaceAbstractions, handleGetJavaNewString, handleGetJavaNullString, 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, isConfiguredProperty, isMetafacadePropertyCachingEnabled, setMetafacadeContext, setProperty, shieldedElement, shieldedElements, THIS, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAllEntityReferences, getAttributeNameList, getAttributeNameList, getAttributes, getAttributes, getAttributeTypeList, getBusinessOperations, getChildEnds, getEmbeddedValues, getEntityReferences, getFullyQualifiedIdentifierTypeName, getIdentifierAssociationEnds, getIdentifierGetterName, getIdentifierName, getIdentifiers, getIdentifiers, getIdentifierSetterName, getIdentifierTypeName, getMaxSqlNameLength, getOperationCallFromAttributes, getOperationCallFromAttributes, getParentEnd, getProperties, getQueryOperations, getQueryOperations, getRequiredAttributeNameList, getRequiredAttributes, getRequiredAttributeTypeList, getRequiredProperties, getRequiredPropertyNameList, getRequiredPropertyTypeList, getSchema, getTableName, isChild, isCompositeIdentifier, isDynamicIdentifiersPresent, isEntityMetaType, isIdentifiersPresent, isUsingAssignedIdentifier, isUsingForeignIdentifier
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 ManageableEntityLogic(Object metaObjectIn, String context)
metaObjectIn
- context
- public void resetMetafacadeContext(String context)
resetMetafacadeContext
in class EntityLogic
context
- public boolean isManageableEntityMetaType()
isManageableEntityMetaType
in interface ManageableEntity
ManageableEntity
protected abstract String handleGetManageablePackageName()
ManageableEntity.getManageablePackageName()
public final String getManageablePackageName()
getManageablePackageName
in interface ManageableEntity
protected abstract String handleGetManageableServiceAccessorCall()
ManageableEntity.getManageableServiceAccessorCall()
public final String getManageableServiceAccessorCall()
getManageableServiceAccessorCall
in interface ManageableEntity
protected abstract boolean handleIsRead()
ManageableEntity.isRead()
public final boolean isRead()
isRead
in interface ManageableEntity
protected abstract boolean handleIsCreate()
ManageableEntity.isCreate()
public final boolean isCreate()
isCreate
in interface ManageableEntity
protected abstract boolean handleIsUpdate()
ManageableEntity.isUpdate()
public final boolean isUpdate()
isUpdate
in interface ManageableEntity
protected abstract boolean handleIsDelete()
ManageableEntity.isDelete()
public final boolean isDelete()
isDelete
in interface ManageableEntity
protected abstract String handleGetManageablePackagePath()
ManageableEntity.getManageablePackagePath()
public final String getManageablePackagePath()
getManageablePackagePath
in interface ManageableEntity
protected abstract String handleGetManageableServiceName()
ManageableEntity.getManageableServiceName()
public final String getManageableServiceName()
getManageableServiceName
in interface ManageableEntity
protected abstract String handleGetFullyQualifiedManageableServiceName()
ManageableEntity.getFullyQualifiedManageableServiceName()
public final String getFullyQualifiedManageableServiceName()
getFullyQualifiedManageableServiceName
in interface ManageableEntity
protected abstract String handleGetManageableServiceFullPath()
ManageableEntity.getManageableServiceFullPath()
public final String getManageableServiceFullPath()
getManageableServiceFullPath
in interface ManageableEntity
protected abstract List<ModelElementFacade> handleGetManageableMembers()
ManageableEntity.getManageableMembers()
public final List<ModelElementFacade> getManageableMembers()
getManageableMembers
in interface ManageableEntity
protected abstract boolean handleIsManageable()
ManageableEntity.isManageable()
public final boolean isManageable()
isManageable
in interface ManageableEntity
protected abstract int handleGetMaximumListSize()
ManageableEntity.getMaximumListSize()
public final int getMaximumListSize()
getMaximumListSize
in interface ManageableEntity
protected abstract int handleGetPageSize()
ManageableEntity.getPageSize()
public final int getPageSize()
getPageSize
in interface ManageableEntity
protected abstract boolean handleIsResolveable()
ManageableEntity.isResolveable()
public final boolean isResolveable()
isResolveable
in interface ManageableEntity
protected abstract String handleListManageableMembers(boolean withTypes)
withTypes
- public String listManageableMembers(boolean withTypes)
listManageableMembers
in interface ManageableEntity
withTypes
- boolean
TODO: Model Documentation for
ManageableEntity.listManageableMembers(withTypes)protected abstract String handleListManageableMembersWithWrapperTypes()
public String listManageableMembersWithWrapperTypes()
listManageableMembersWithWrapperTypes
in interface ManageableEntity
public final List<ActorFacade> getUsers()
getUsers
in interface ManageableEntity
protected abstract List handleGetUsers()
public final List<ManageableEntityAssociationEnd> getManageableAssociationEnds()
getManageableAssociationEnds
in interface ManageableEntity
protected abstract List handleGetManageableAssociationEnds()
public final ManageableEntityAttribute getDisplayAttribute()
getDisplayAttribute
in interface ManageableEntity
protected abstract Object handleGetDisplayAttribute()
public final List<ManageableEntity> getReferencingManageables()
getReferencingManageables
in interface ManageableEntity
protected abstract List handleGetReferencingManageables()
public final List<ManageableEntity> getAllManageables()
getAllManageables
in interface ManageableEntity
protected abstract List handleGetAllManageables()
public final List<ManageableEntityAttribute> getManageableAttributes()
getManageableAttributes
in interface ManageableEntity
protected abstract List handleGetManageableAttributes()
public final ManageableEntityAttribute getManageableIdentifier()
getManageableIdentifier
in interface ManageableEntity
protected abstract Object handleGetManageableIdentifier()
public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
EntityLogic
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 EntityLogic
validationMessages
- CollectionEntityLogic.validateInvariants(Collection validationMessages)
Copyright © 2003–2014 AndroMDA.org. All rights reserved.