public abstract class EntityAttributeLogic extends AttributeFacadeLogicImpl implements EntityAttribute
EntityAttribute
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Object |
metaObject
The underlying UML object
|
contextRoot
Modifier | Constructor and Description |
---|---|
protected |
EntityAttributeLogic(Object metaObjectIn,
String context)
Create Metafacade implementation instance using the MetafacadeFactory from the context
|
Modifier and Type | Method and Description |
---|---|
String |
getColumnIndex()
The name of the index to create on a column that persists the entity attribute.
|
String |
getColumnLength()
The length of the column that persists this entity attribute.
|
String |
getColumnName()
The name of the table column to which this entity is mapped.
|
TypeMappings |
getJdbcMappings()
The PIM to language specific mappings for JDBC.
|
String |
getJdbcType()
The JDBC type for this entity attribute.
|
TypeMappings |
getSqlMappings()
The SQL mappings (i.e.
|
String |
getSqlType()
The SQL type for this attribute.
|
String |
getUniqueGroup()
The name of the unique-key that this unique attribute belongs
|
protected abstract String |
handleGetColumnIndex() |
protected abstract String |
handleGetColumnLength() |
protected abstract String |
handleGetColumnName() |
protected abstract TypeMappings |
handleGetJdbcMappings() |
protected abstract String |
handleGetJdbcType() |
protected abstract TypeMappings |
handleGetSqlMappings() |
protected abstract String |
handleGetSqlType() |
protected abstract String |
handleGetUniqueGroup() |
protected abstract boolean |
handleIsIdentifier() |
protected abstract boolean |
handleIsTransient() |
boolean |
isEntityAttributeMetaType() |
boolean |
isIdentifier()
True if this attribute is an identifier for its entity.
|
boolean |
isTransient()
Indicates this attribute should be ignored by the persistence layer.
|
void |
resetMetafacadeContext(String context)
Reset context only for non-root metafacades
|
void |
validateInvariants(Collection<ModelValidationMessage> validationMessages)
Constraint: org::andromda::metafacades::uml::AttributeFacade::attribute needs a type
|
handleFindTaggedValue, handleGetDefaultValue, handleGetEnumeration, handleGetEnumerationLiteralParameters, handleGetEnumerationValue, handleGetGetterName, handleGetGetterSetterTypeName, handleGetLower, handleGetName, handleGetOwner, handleGetSetterName, handleGetType, handleGetUpper, handleIsAddOnly, handleIsChangeable, handleIsDefaultValuePresent, handleIsDerived, handleIsEnumerationLiteral, handleIsEnumerationLiteralParametersExist, handleIsEnumerationMember, handleIsLeaf, handleIsMany, handleIsOrdered, handleIsReadOnly, handleIsRequired, handleIsStatic, handleIsUnique
findTaggedValue, getDefaultValue, getEnumeration, getEnumerationLiteralParameters, getEnumerationValue, getGetterName, getGetterSetterTypeName, getLower, getOwner, getSetterName, getType, getUpper, isAddOnly, isAttributeFacadeMetaType, isChangeable, isDefaultValuePresent, isDerived, isEnumerationLiteral, isEnumerationLiteralParametersExist, isEnumerationMember, isLeaf, isMany, isOrdered, isReadOnly, isRequired, isStatic, isUnique
getArraySuffix, getValidationName, handleCopyTaggedValues, handleFindTaggedValue, handleFindTaggedValues, handleGetBindedFullyQualifiedName, handleGetConstraints, handleGetConstraints, handleGetDocumentation, handleGetDocumentation, handleGetDocumentation, handleGetFullyQualifiedName, handleGetFullyQualifiedName, handleGetFullyQualifiedNamePath, handleGetId, handleGetKeywords, handleGetLabel, handleGetLanguageMappings, handleGetModel, handleGetOwnedElements, 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
findTaggedValue, getDefaultValue, getEnumeration, getEnumerationLiteralParameters, getEnumerationValue, getGetterName, getGetterSetterTypeName, getLower, getOwner, getSetterName, getType, getUpper, isAddOnly, isAttributeFacadeMetaType, isChangeable, isDefaultValuePresent, isDerived, isEnumerationLiteral, isEnumerationLiteralParametersExist, isEnumerationMember, isLeaf, isMany, isOrdered, isReadOnly, isRequired, isStatic, isUnique
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 EntityAttributeLogic(Object metaObjectIn, String context)
metaObjectIn
- context
- public void resetMetafacadeContext(String context)
resetMetafacadeContext
in class AttributeFacadeLogic
context
- public boolean isEntityAttributeMetaType()
isEntityAttributeMetaType
in interface EntityAttribute
EntityAttribute
protected abstract String handleGetColumnLength()
EntityAttribute.getColumnLength()
public final String getColumnLength()
getColumnLength
in interface EntityAttribute
protected abstract String handleGetColumnName()
EntityAttribute.getColumnName()
public final String getColumnName()
getColumnName
in interface EntityAttribute
protected abstract TypeMappings handleGetJdbcMappings()
EntityAttribute.getJdbcMappings()
public final TypeMappings getJdbcMappings()
getJdbcMappings
in interface EntityAttribute
protected abstract String handleGetJdbcType()
EntityAttribute.getJdbcType()
public final String getJdbcType()
getJdbcType
in interface EntityAttribute
protected abstract TypeMappings handleGetSqlMappings()
EntityAttribute.getSqlMappings()
public final TypeMappings getSqlMappings()
getSqlMappings
in interface EntityAttribute
protected abstract String handleGetSqlType()
EntityAttribute.getSqlType()
public final String getSqlType()
getSqlType
in interface EntityAttribute
protected abstract boolean handleIsIdentifier()
EntityAttribute.isIdentifier()
public final boolean isIdentifier()
isIdentifier
in interface EntityAttribute
protected abstract String handleGetColumnIndex()
EntityAttribute.getColumnIndex()
public final String getColumnIndex()
getColumnIndex
in interface EntityAttribute
protected abstract boolean handleIsTransient()
EntityAttribute.isTransient()
public final boolean isTransient()
isTransient
in interface EntityAttribute
protected abstract String handleGetUniqueGroup()
EntityAttribute.getUniqueGroup()
public final String getUniqueGroup()
getUniqueGroup
in interface EntityAttribute
public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
AttributeFacadeLogic
Constraint: org::andromda::metafacades::uml::AttributeFacade::attribute needs a type
Error: Each attribute needs a type, you cannot leave the type unspecified.
OCL: context AttributeFacade inv: type.name->notEmpty()
Constraint: org::andromda::metafacades::uml::AttributeFacade::attribute must have a name
Error: Each attribute must have a non-empty name.
OCL: context AttributeFacade inv: name -> notEmpty()
Constraint: org::andromda::metafacades::uml::AttributeFacade::primitive attribute must be required
Error: Primitive attributes must have a multiplicity lower bound > 0 (must be required). Use a wrapped type, or change the multiplicity.
OCL: context AttributeFacade inv: type.primitive implies (lower > 0)
Constraint: org::andromda::metafacades::uml::AttributeFacade::primitive attribute cannot be used in Collection
Error: Primitive attributes cannot be used in Collections (multiplicity > 1). Use the wrapped type instead.
OCL: context AttributeFacade inv: type.primitive implies (many = false)
Constraint: org::andromda::metafacades::uml::AttributeFacade::wrapped primitive attribute should not be required
Error: Wrapped primitive attributes must have a multiplicity lower bound = 0 (must be optional). Use the unwrapped type, or change the multiplicity.
OCL: context AttributeFacade inv: type.wrappedPrimitive and many = false implies (lower = 0)
validateInvariants
in interface ModelElementFacade
validateInvariants
in class AttributeFacadeLogic
validationMessages
- CollectionAttributeFacadeLogic.validateInvariants(Collection validationMessages)
Copyright © 2003–2014 AndroMDA.org. All rights reserved.