public class YAttributeDescriptor extends YDescriptor
| Type | Property and Description |
|---|---|
boolean |
is
Gets the value of the property property.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
YAttributeDescriptor.PersistenceType |
| Modifier and Type | Field and Description |
|---|---|
static int |
ENCRYPTED_FLAG |
static int |
INHERITED_FLAG |
static int |
INITIAL_FLAG |
static int |
LOCALIZED_FLAG |
static int |
OPTIONAL_FLAG |
static int |
PARTOF_FLAG |
static int |
PRIMITIVE_FLAG |
static int |
PRIVATE_FLAG |
static int |
PROPERTY_FLAG |
static int |
READ_FLAG |
static int |
REMOVE_FLAG |
static int |
SEARCH_FLAG |
static int |
TIM_IGNORE_FLAG |
static int |
WRITE_FLAG |
| Constructor and Description |
|---|
YAttributeDescriptor(String enclosingType,
YAttributeDescriptor inheritedFrom) |
YAttributeDescriptor(YNamespace container,
String enclosingTypeCode,
String qualifier,
String typeCode) |
getQualifier, getType, getTypeCode, setModifiers, setUniqueModifieraddCustomProperties, addCustomProperty, getMetaTypeCode, isAutocreate, isGenerate, setAutocreate, setGenerate, setMetaTypeCodegetLoaderInfo, getNamespace, getTypeSystem, setLoaderInfopublic static final int READ_FLAG
public static final int WRITE_FLAG
public static final int REMOVE_FLAG
public static final int OPTIONAL_FLAG
public static final int SEARCH_FLAG
public static final int PARTOF_FLAG
public static final int PRIVATE_FLAG
public static final int PROPERTY_FLAG
public static final int LOCALIZED_FLAG
public static final int INHERITED_FLAG
public static final int INITIAL_FLAG
public static final int TIM_IGNORE_FLAG
public static final int ENCRYPTED_FLAG
public static final int PRIMITIVE_FLAG
public YAttributeDescriptor(YNamespace container, String enclosingTypeCode, String qualifier, String typeCode)
public YAttributeDescriptor(String enclosingType, YAttributeDescriptor inheritedFrom)
public boolean isRedeclaredOneToManyRelationEnd()
public void resetCaches()
YNameSpaceElementresetCaches in class YDescriptorprotected void redeclare(String typeCode)
redeclare in class YDescriptorprotected void redeclare(String typeCode, int modifiers)
redeclare in class YDescriptorpublic Map<String,String> getCustomProps()
getOwnCustomProps() to get just the ones declared at
this type.getCustomProps in class YTypeSystemElementpublic String toString()
toString in class YDescriptorprotected void connectToRelationEnd(YRelationEnd end)
public YRelationEnd getRelationEnd()
public String getConditionQuery()
public boolean isRelationEndAttribute()
protected String getDefaultMetaTypeCode()
getDefaultMetaTypeCode in class YTypeSystemElementpublic YComposedType getMetaType()
getMetaType in class YTypeSystemElementpublic void validate()
YNameSpaceElementvalidate in class YDescriptorpublic boolean isDeclared()
public boolean isInherited()
public String getPersistenceQualifier()
public boolean hasNonGenericPersistenceQualifier()
public void setPersistenceQualifier(String persistenceQualifier)
public YAttributeDescriptor.PersistenceType getPersistenceType()
public boolean isPersistable()
public YAtomicType getColumnType()
protected YAtomicType getColumnType(YType type)
public YAttributeDeployment getAttributeDeploymentOrFail()
public YAttributeDeployment tryGetAttributeDeployment()
protected boolean isRelationAttribute()
public int getConfiguredModifiers()
public int getModifiers()
getModifiers in class YDescriptorpublic boolean isLocalized()
public void setPersistenceType(YAttributeDescriptor.PersistenceType persistenceType)
public String getSelectionOfQualifier()
public YAttributeDescriptor getSelectionOf()
public void setSelectionOfQualifier(String selectionOfQualifier)
public String getEnclosingTypeCode()
public boolean isRedeclared()
protected void clearPersistenceInfos()
public void setInherited(boolean isInherited)
public void setRedeclared(boolean isRedeclared)
public void setModelData(ModelTagListener.ModelData modelData)
public boolean isGenerateInModel()
public YAttributeDescriptor getDeclaringAttribute()
public YComposedType getDeclaringType()
public YAttributeDescriptor getSuperAttribute()
public YComposedType getEnclosingType()
public String getDefaultValueDefinition()
public void setDefaultValueDefinition(String defaultValueDefinition)
public String getDescription()
public void setDescription(String description)
public String getRealColumnName()
public void setRealColumnName(String configuredColumnName)
configuredColumnName - the configuredColumnName to setpublic boolean isOptional()
public boolean isSearchable()
public boolean isPartOf()
public boolean isWritable()
public boolean isInitial()
public boolean isReadable()
public boolean isPrivate()
public boolean isProperty()
public boolean isEncrypted()
public boolean isPrimitive()
public boolean isBooleanAttribute()
public List<ModelTagListener.ModelDataMethod> getSetters()
public List<ModelTagListener.ModelDataMethod> getGetters()
public void setAttributeHandler(String attributeHandler)
public String getAttributeHandlerIncludingSuperTypes()
public String getConfiguredAttributeHandler()
public boolean isUniqueModifier()
isUniqueModifier in class YDescriptorpublic void setConfiguredPersistenceType(YAttributeDescriptor.PersistenceType configuredPersistenceType)
public String getDynamicAttributeHandler()
public String getColumnName(DatabaseSettings databaseSettings)
public boolean hasFixedColumnName()
Copyright © 2017 SAP SE. All Rights Reserved.