public interface AttributeI extends AttributeWithUIConfigurationI, GraphEdgeI
Modifier and Type | Field and Description |
---|---|
static java.util.Set<java.lang.String> |
ALLOWED_RELATION_TYPES |
static java.lang.String |
ATT_NAME_BACKNAME |
static java.lang.String |
ATT_NAME_CUSTOM_ITERATOR |
static java.lang.String |
ATT_NAME_CUSTOM_ITERATOR_NOT_CACHING |
static java.lang.String |
ATT_NAME_DB_COPY_POLICY |
static java.lang.String |
ATT_NAME_DB_INDEX_TYPE |
static java.lang.String |
ATT_NAME_DB_INDEXED |
static java.lang.String |
ATT_NAME_DB_RELATION_DISCRIMINATOR |
static java.lang.String |
ATT_NAME_DB_UNIQUE |
static java.lang.String |
ATT_NAME_DEFAULT |
static java.lang.String |
ATT_NAME_DEPENDENT |
static java.lang.String |
ATT_NAME_DISPLAY_FORMAT |
static java.lang.String |
ATT_NAME_EXPORT_DEPENDENT_PRIMARY_KEY |
static java.lang.String |
ATT_NAME_EXPORT_FOR |
static java.lang.String |
ATT_NAME_EXPORT_IGNORE_FOR |
static java.lang.String |
ATT_NAME_EXPORT_SEPARATE_FILE_IN |
static java.lang.String |
ATT_NAME_FULLTEXT_ANALYZED |
static java.lang.String |
ATT_NAME_FULLTEXT_ANALYZER |
static java.lang.String |
ATT_NAME_FULLTEXT_BOOST |
static java.lang.String |
ATT_NAME_FULLTEXT_INDEXED |
static java.lang.String |
ATT_NAME_IGNORE_BACK_RELATION |
static java.lang.String |
ATT_NAME_ITEM_PROPERTY |
static java.lang.String |
ATT_NAME_LAZY |
static java.lang.String |
ATT_NAME_LOOKUP_CASE_SENSITIVE |
static java.lang.String |
ATT_NAME_LOOKUP_PROPERTY |
static java.lang.String |
ATT_NAME_LOOKUP_STARTING_WITH |
static java.lang.String |
ATT_NAME_LOOKUP_SUBSTRING |
static java.lang.String |
ATT_NAME_NAME |
static java.lang.String |
ATT_NAME_NP_CALCULATION_AUTHORITY |
static java.lang.String |
ATT_NAME_OMIT_ON_COPY |
static java.lang.String |
ATT_NAME_READONLY |
static java.lang.String |
ATT_NAME_RELATION |
static java.lang.String |
ATT_NAME_REPORT_ALIAS |
static java.lang.String |
ATT_NAME_REPORT_MANY_SORT |
static java.lang.String |
ATT_NAME_REPORT_POSITION |
static java.lang.String |
ATT_NAME_REPORT_RELATIVE_WIDTH |
static java.lang.String |
ATT_NAME_REPORT_SORT |
static java.lang.String |
ATT_NAME_REPORT_VISIBLE |
static java.lang.String |
ATT_NAME_SHARED |
static java.lang.String |
ATT_NAME_SINGULAR |
static java.lang.String |
ATT_NAME_TYPE |
static java.lang.String |
ATT_NAME_UI_AUTO_TRIM |
static java.lang.String |
ATT_NAME_UI_CREATE_IN_DETAILVIEW |
static java.lang.String |
ATT_NAME_UI_EDIT_MODE |
static java.lang.String |
ATT_NAME_UI_EDITABLE |
static java.lang.String |
ATT_NAME_UI_EXPECTED_WIDTH |
static java.lang.String |
ATT_NAME_UI_MANDATORY |
static java.lang.String |
ATT_NAME_UI_SELECTION_FILTER |
static java.lang.String |
ATT_NAME_UI_TIPS |
static java.lang.String |
ATT_NAME_UI_TIPS_TRISTATE |
static java.lang.String |
ATT_NAME_UI_VISIBLE |
static java.lang.String |
ATT_NAME_VIRTUAL_AGGREGATE |
static java.lang.String |
ATT_NAME_VIRTUAL_AGGREGATE_IGNORE_DELETED |
static java.lang.String |
ATT_NAME_VIRTUAL_CACHE_MODE |
static java.lang.String |
ATT_NAME_VIRTUAL_INITIALDATA |
static java.lang.String |
ATT_NAME_VIRTUAL_PRECACHING_HOOK |
static int |
CACHEMODE_NONE |
static int |
CACHEMODE_SIMPLE |
static java.lang.String |
CACHEMODE_STRING_SIMPLE |
static java.lang.String |
CACHEMODE_STRING_VERSIONED |
static int |
CACHEMODE_VERSIONED |
static int |
CALCULATION_AUTHORITY_CLIENT |
static int |
CALCULATION_AUTHORITY_NONE |
static int |
CALCULATION_AUTHORITY_SERVER |
static java.lang.String |
CALCULATION_AUTHORITY_STRING_CLIENT |
static java.lang.String |
CALCULATION_AUTHORITY_STRING_SERVER |
static int |
COPY_POLICY_COPY |
static int |
COPY_POLICY_NONE |
static java.lang.String |
COPY_POLICY_STRING_COPY |
static java.lang.String |
COPY_POLICY_STRING_UPDATE_REL |
static int |
COPY_POLICY_UPDATEREL |
static int |
DEFAULT_EXPECTED_WIDTH |
static int |
EDITMODE_LINKONLY |
static int |
EDITMODE_UNDEFINED |
static int |
EDITMODE_VIEWONLY |
static java.lang.String |
EL_NAME_BACK_RELATION |
static java.lang.String |
EL_NAME_COMMENT |
static java.lang.String |
EL_NAME_DB |
static java.lang.String |
EL_NAME_EXPORT |
static java.lang.String |
EL_NAME_FULLTEXT |
static java.lang.String |
EL_NAME_LOOKUP |
static java.lang.String |
EL_NAME_NP |
static java.lang.String |
EL_NAME_REPORT |
static java.lang.String |
EL_NAME_UI |
static java.lang.String |
EL_NAME_VIRTUAL |
static AttributeI[] |
EMPTY_ARRAY |
static java.lang.String |
EXPORT_IGNORE_FOR_ALL |
static int |
MAX_RELATION_DISCRIMINATOR |
static int |
MIN_RELATION_DISCRIMINATOR |
static int |
NO_RELATION_DISCRIMINATOR |
static int |
READONLY_NO |
static int |
READONLY_SERVERONLY |
static int |
READONLY_UNDEFINED |
static int |
READONLY_WRITENEW |
static java.lang.String |
READONLY_WRITENEW_STR |
static int |
READONLY_YES |
static java.lang.String |
REPORT_SORT_ASC |
static java.lang.String |
REPORT_SORT_DESC |
static java.util.Set<java.lang.String> |
RESERVED_KEYWORDS |
static java.util.Set<java.lang.String> |
RESERVED_TABLE_NAMES |
static java.lang.String |
SUFFIX_L10N_PLURAL_KEY |
static java.lang.String |
TYPE_NAME_DEFAULT |
Modifier and Type | Method and Description |
---|---|
void |
addRelationObject(java.lang.Object bo,
java.lang.Object value) |
void |
addRelationObject(java.lang.Object bo,
java.lang.Object value,
WriteConstraintsOverriderI overrider) |
java.lang.Boolean |
getAnalyzedForFTS() |
AttributeI |
getBackAttribute() |
int |
getCalculationAuthority()
Returns the calculation authority of this
AttributeI if it is non-persistent. |
default java.lang.String |
getContainingElementName() |
int |
getCopyPolicy() |
default EntityI |
getEntity()
Returns the entity to which this attribute belongs.
|
java.lang.String |
getEntityName()
Returns the name of the entity to which this attribute belongs.
|
int |
getExpectedWidth() |
java.lang.String |
getExportDependentPrimaryKey()
Returns the attribute name of the primary key when exporting this AttributeI as a dependent relation, if any.
|
OnlyToDirectedGraphNodeI |
getFromNode()
Retrieves the source node from which this directed edge originates.
|
java.lang.String |
getFTSAnalyzer() |
java.lang.Float |
getFTSBoost() |
java.lang.String |
getGuiTip(java.lang.String tip) |
int |
getGuiTipAsInt(java.lang.String tip) |
java.util.Map |
getGuiTips() |
java.lang.Boolean |
getIndexedForFTS() |
java.lang.String |
getItemProperty() |
java.lang.String |
getL10nEntityName()
Returns the localized name of the entity to which this attribute belongs.
|
java.lang.String |
getL10nName()
Returns the localized name of this
AttributeI . |
java.lang.String |
getL10nNameKey()
Returns the localization name key for this
AttributeI . |
java.lang.String |
getL10nNameVar()
Returns a localizable String variable reference for the name of this
AttributeI . |
java.lang.String |
getL10nSingular()
Returns the localized singular form of this
AttributeI . |
java.lang.String |
getL10nSingularKey()
Returns the singular key of this
AttributeI , used for localization. |
java.lang.String |
getL10nSingularVar()
Returns a localizable
String for the singular key of this AttributeI (i.e. |
java.lang.Boolean |
getLookupCaseSensitive() |
java.lang.String |
getLookupProperty() |
java.lang.Boolean |
getLookupStartingWith() |
java.lang.Boolean |
getLookupSubstring() |
java.util.Collection<java.lang.String> |
getModulePackages()
Returns the names of the module packages this
AttributeI is appearing in. |
java.util.Collection<java.lang.String> |
getOrCreateModulePackagesSet() |
default java.lang.String |
getQName()
Returns the qualified name of this attribute.
|
default java.lang.String |
getQName(BOI bo)
Returns the qualified name of this attribute, prefixed with a concise description of a specific
Business Object (BO) instance.
|
java.util.Iterator |
getRelationIterator(java.lang.Object bo) |
java.util.Map |
getRelationObjects(java.lang.Object bo) |
java.lang.String |
getReportAlias()
If a report alias is given, this is the sign for us to generate a group in the report
and show the data of this many-relation.
|
java.lang.String |
getReportManySort() |
java.lang.Integer |
getReportPosition()
Returns the expected position of the attribute in the automatic reports.
|
int |
getReportRelativeWidth()
Return the relative width of the attribute in the automatic reports, defaults to 1.
|
java.lang.String |
getReportSort() |
SchemaI |
getSchema()
Returns the schema associated with this attribute.
|
java.lang.String |
getSelectionFilter()
Returns a filter-clause that acts as a non-interactive filter within a query.
|
java.lang.String |
getTimeZoneProperty() |
OnlyToDirectedGraphNodeI |
getToNode()
Retrieves the target node to which this directed edge points.
|
default java.lang.String |
getTypedQName()
Returns the qualified name of this attribute, appended with its type postfix.
|
default java.lang.String |
getTypedQName(BOI bo)
Returns the qualified name of this attribute, prefixed with a concise description of a specific
Business Object (BO) instance and appended with its type postfix.
|
java.lang.Object |
getValue(java.lang.Object bo) |
java.lang.String |
getValueAsString(java.lang.Object bo) |
java.lang.Object |
getValueLazy(java.lang.Object bo) |
boolean |
hasGuiTip(java.lang.String tip) |
boolean |
hasRelationObject(java.lang.Object bo,
java.lang.Object value) |
boolean |
isAutotrim() |
boolean |
isCached() |
default boolean |
isCoreNative()
Checks if this attribute was initially defined in the MyTISM core schema.
|
boolean |
isCreateInDetailView() |
boolean |
isCustomIteratorNotCaching()
Returns true if this AttributeI is a relation that uses a custom iterator to fetch its members incrementally
and the relation shall be refreshed, i.e. the iterator shall run again to fill and refresh the relation.
|
boolean |
isDepend() |
boolean |
isEditable()
Returns if the
AttributeI is editable in the UI. |
boolean |
isEditable(BOI bo)
Returns if the
AttributeI is editable in the UI for the specified BOI . |
boolean |
isForExport(java.lang.String exportName)
Returns true if the vattr was marked as to export for the export with the passed name.
|
boolean |
isIgnoreBackRelation() |
boolean |
isIgnoredForExport(java.lang.String exportName)
Returns true if the attr was marked as to ignore during export for the export with the passed name.
|
boolean |
isIndexed() |
boolean |
isInitialdata() |
boolean |
isLazy() |
boolean |
isLinkOnly() |
boolean |
isMandatory()
Returns whether this
AttributeI instance is a mandatory attribute. |
boolean |
isMandatory(BOI bo)
Returns whether this
AttributeI instance is a mandatory attribute for the specified BOI . |
default boolean |
isModuleNative()
Checks if this attribute was initially defined in the schema of any module.
|
boolean |
isOmitOnCopy() |
default boolean |
isPartOfModule(java.lang.String modulePackage)
Checks if this attribute is part of the schema of a specific module.
|
boolean |
isPersistent() |
boolean |
isPolymorphicRelation() |
default boolean |
isProjectNative()
Checks if this attribute was initially defined in the schema of the current project.
|
boolean |
isReadonly(BOI bo)
Returns whether this
AttributeI instance is read-only for the specified BOI . |
boolean |
isReportVisible() |
boolean |
isSeparateFileForExport(java.lang.String exportName)
Returns true if the attr was marked as to export to a separate file for the export with the passed name.
|
boolean |
isSerialized() |
default boolean |
isServerCalculated()
Returns true if this
AttributeI is non-persistent and its
calculation authority is "server". |
boolean |
isShared() |
boolean |
isViewOnly() |
boolean |
isVisible()
Returns whether this
AttributeI instance is visible in the UI. |
boolean |
isVisible(BOI bo)
Returns whether this
AttributeI instance is visible in the UI for the specified BOI . |
java.lang.Object |
pgetValue(java.lang.Object bo) |
void |
psetValue(java.lang.Object bo,
java.lang.Object value) |
void |
removeRelationObject(java.lang.Object bo,
java.lang.Object value) |
void |
removeRelationObject(java.lang.Object bo,
java.lang.Object value,
WriteConstraintsOverriderI overrider) |
void |
setValue(java.lang.Object bo,
java.lang.Object value) |
void |
setValue(java.lang.Object bo,
java.lang.Object value,
WriteConstraintsOverriderI overrider) |
void |
setValueAsString(java.lang.Object bo,
java.lang.String value) |
void |
setValueAsString(java.lang.Object bo,
java.lang.String value,
boolean checkConstraints) |
static java.lang.String |
toAttributePath(AttributeI[] attributes)
Creates an attribute path string from an array of AttributeI.
|
default java.lang.String |
toNiceString()
Deprecated.
Use
getQName() instead, as it provides the same functionality with a clearer name. |
getEditmode, setAutotrim, setCreateInDetailView, setEditable, setEditmode, setExpectedWidth, setGuiTips, setItemProperty, setMandatory, setSelectionFilter, setTimeZoneProperty, setVisible
getClazz, getComment, getContainingElementPackage, getName, getRelationEntity, getRelationType, getSingular, getType, getTypeName, hasCustomIterator, isArray, isManyRelation, isReadonly, isRelation, isVirtual
static final java.util.Set<java.lang.String> RESERVED_TABLE_NAMES
static final java.util.Set<java.lang.String> RESERVED_KEYWORDS
static final java.util.Set<java.lang.String> ALLOWED_RELATION_TYPES
static final java.lang.String TYPE_NAME_DEFAULT
static final java.lang.String EL_NAME_UI
static final java.lang.String EL_NAME_LOOKUP
static final java.lang.String EL_NAME_REPORT
static final java.lang.String EL_NAME_EXPORT
static final java.lang.String EL_NAME_VIRTUAL
static final java.lang.String EL_NAME_NP
static final java.lang.String EL_NAME_DB
static final java.lang.String EL_NAME_BACK_RELATION
static final java.lang.String EL_NAME_COMMENT
static final java.lang.String EL_NAME_FULLTEXT
static final java.lang.String ATT_NAME_NAME
static final java.lang.String ATT_NAME_BACKNAME
static final java.lang.String ATT_NAME_SINGULAR
static final java.lang.String ATT_NAME_TYPE
static final java.lang.String ATT_NAME_DISPLAY_FORMAT
static final java.lang.String ATT_NAME_RELATION
static final java.lang.String ATT_NAME_DEPENDENT
static final java.lang.String ATT_NAME_ITEM_PROPERTY
static final java.lang.String ATT_NAME_SHARED
static final java.lang.String ATT_NAME_DEFAULT
static final java.lang.String ATT_NAME_IGNORE_BACK_RELATION
static final java.lang.String ATT_NAME_READONLY
static final java.lang.String ATT_NAME_LAZY
static final java.lang.String ATT_NAME_OMIT_ON_COPY
static final java.lang.String ATT_NAME_CUSTOM_ITERATOR
static final java.lang.String ATT_NAME_CUSTOM_ITERATOR_NOT_CACHING
static final java.lang.String ATT_NAME_UI_EDIT_MODE
static final java.lang.String ATT_NAME_UI_CREATE_IN_DETAILVIEW
static final java.lang.String ATT_NAME_UI_MANDATORY
static final java.lang.String ATT_NAME_UI_TIPS
static final java.lang.String ATT_NAME_UI_VISIBLE
static final java.lang.String ATT_NAME_UI_EXPECTED_WIDTH
static final java.lang.String ATT_NAME_UI_SELECTION_FILTER
static final java.lang.String ATT_NAME_UI_EDITABLE
static final java.lang.String ATT_NAME_UI_AUTO_TRIM
static final java.lang.String ATT_NAME_UI_TIPS_TRISTATE
static final java.lang.String ATT_NAME_LOOKUP_PROPERTY
static final java.lang.String ATT_NAME_LOOKUP_SUBSTRING
static final java.lang.String ATT_NAME_LOOKUP_STARTING_WITH
static final java.lang.String ATT_NAME_LOOKUP_CASE_SENSITIVE
static final java.lang.String ATT_NAME_REPORT_VISIBLE
static final java.lang.String ATT_NAME_REPORT_RELATIVE_WIDTH
static final java.lang.String ATT_NAME_REPORT_POSITION
static final java.lang.String ATT_NAME_REPORT_SORT
static final java.lang.String ATT_NAME_REPORT_MANY_SORT
static final java.lang.String ATT_NAME_REPORT_ALIAS
static final java.lang.String ATT_NAME_EXPORT_FOR
static final java.lang.String ATT_NAME_EXPORT_IGNORE_FOR
static final java.lang.String ATT_NAME_EXPORT_SEPARATE_FILE_IN
static final java.lang.String ATT_NAME_EXPORT_DEPENDENT_PRIMARY_KEY
static final java.lang.String ATT_NAME_VIRTUAL_AGGREGATE
static final java.lang.String ATT_NAME_VIRTUAL_AGGREGATE_IGNORE_DELETED
static final java.lang.String ATT_NAME_VIRTUAL_CACHE_MODE
static final java.lang.String ATT_NAME_VIRTUAL_PRECACHING_HOOK
static final java.lang.String ATT_NAME_VIRTUAL_INITIALDATA
static final java.lang.String ATT_NAME_NP_CALCULATION_AUTHORITY
static final java.lang.String ATT_NAME_DB_INDEXED
static final java.lang.String ATT_NAME_DB_INDEX_TYPE
static final java.lang.String ATT_NAME_DB_UNIQUE
static final java.lang.String ATT_NAME_DB_COPY_POLICY
static final java.lang.String ATT_NAME_DB_RELATION_DISCRIMINATOR
static final java.lang.String ATT_NAME_FULLTEXT_INDEXED
static final java.lang.String ATT_NAME_FULLTEXT_ANALYZED
static final java.lang.String ATT_NAME_FULLTEXT_ANALYZER
static final java.lang.String ATT_NAME_FULLTEXT_BOOST
static final int EDITMODE_UNDEFINED
static final int EDITMODE_LINKONLY
static final int EDITMODE_VIEWONLY
static final int READONLY_UNDEFINED
static final int READONLY_NO
static final int READONLY_YES
static final int READONLY_WRITENEW
static final java.lang.String READONLY_WRITENEW_STR
static final int READONLY_SERVERONLY
static final int DEFAULT_EXPECTED_WIDTH
static final java.lang.String REPORT_SORT_ASC
static final java.lang.String REPORT_SORT_DESC
static final int CACHEMODE_NONE
static final int CACHEMODE_VERSIONED
static final int CACHEMODE_SIMPLE
static final java.lang.String CACHEMODE_STRING_VERSIONED
static final java.lang.String CACHEMODE_STRING_SIMPLE
static final int CALCULATION_AUTHORITY_NONE
static final int CALCULATION_AUTHORITY_CLIENT
static final int CALCULATION_AUTHORITY_SERVER
static final java.lang.String CALCULATION_AUTHORITY_STRING_CLIENT
static final java.lang.String CALCULATION_AUTHORITY_STRING_SERVER
static final int NO_RELATION_DISCRIMINATOR
static final int MIN_RELATION_DISCRIMINATOR
static final int MAX_RELATION_DISCRIMINATOR
static final int COPY_POLICY_NONE
static final int COPY_POLICY_COPY
static final int COPY_POLICY_UPDATEREL
static final java.lang.String COPY_POLICY_STRING_COPY
static final java.lang.String COPY_POLICY_STRING_UPDATE_REL
static final java.lang.String EXPORT_IGNORE_FOR_ALL
static final java.lang.String SUFFIX_L10N_PLURAL_KEY
static final AttributeI[] EMPTY_ARRAY
static java.lang.String toAttributePath(AttributeI[] attributes)
attributes
- The array of AttributeI, must not be null.default java.lang.String getContainingElementName()
getContainingElementName
in interface BasicAttributeI
SchemaI getSchema()
SchemaI
instance that defines this attribute.java.lang.String getEntityName()
Note: This method returns the *name* of the entity, not the entity object itself. This is intentional to prevent direct coupling to the entity object.
java.lang.IllegalStateException
- If this attribute hasn't been linked to an entity yet.default EntityI getEntity()
This default implementation retrieves the entity by its name from the schema associated with this attribute. It's a convenient way to get the full entity object without directly storing a reference to it within the attribute itself.
EntityI
object that owns this attribute.java.lang.IllegalStateException
- If this attribute hasn't been linked to an entity yet.default java.lang.String getQName()
The qualified name is formed by combining the name of the owning entity and the attribute's own name, separated by a dot (e.g., "EntityName.attributeName"). This format is sufficient to uniquely identify an attribute within the entire schema.
default java.lang.String getQName(BOI bo)
This creates a more specific reference, such as "BO[1234].Id". If the provided BO instance is null, this method falls back to returning the general qualified name without a BO instance prefix.
bo
- The BOI instance to include in the qualified name.default java.lang.String getTypedQName()
This provides a more descriptive name, for example, "BO.Id (Long)" for scalar attributes or "Relation.Items (1-n)" for relations. The type postfix helps in understanding the nature of the attribute at a glance.
default java.lang.String getTypedQName(BOI bo)
This creates a highly descriptive reference, such as "BO[1234].Id (Long)" or "Rel[5678].Items (1-n)". If the provided BO instance is null, this method falls back to returning the general typed qualified name.
bo
- The BOI instance to include in the qualified name.@Deprecated default java.lang.String toNiceString()
getQName()
instead, as it provides the same functionality with a clearer name.boolean isSerialized()
boolean isPersistent()
boolean isIgnoreBackRelation()
default boolean isCoreNative()
This is determined by checking if the package of the attribute's owning entity
matches the predefined core package name specified in MyTISMConstantsI.PACKAGE_NAME_MYTISM_CORE
.
A null check is performed on the associated entity before accessing its package.
true
if this AttributeI was initially defined in the core schema,
false
otherwise.default boolean isModuleNative()
This is determined by checking if the attribute is associated with any module packages.
It relies on the getModulePackages()
method returning a non-empty collection of package names.
true
if this AttributeI was initially defined in a module's schema, false
otherwise.default boolean isPartOfModule(java.lang.String modulePackage)
This is determined by verifying that the attribute is generally associated with
any module (via isModuleNative()
) AND that its associated module packages
explicitly include the provided modulePackage
.
modulePackage
- The name of the module package to check against
(e.g. "com.oashi.modules.erp", "com.oashi.modules.crm").
Must not be null.true
if this AttributeI belongs to the schema of the specified module,
false
otherwise.default boolean isProjectNative()
This is determined by comparing the package of the attribute's owning entity
with the default package defined in the schema associated with this attribute
(obtained via getSchema()
). An attribute is considered a project attribute
if its entity's package exactly matches the project's default package.
true
if this AttributeI was initially defined in the project's schema,
false
otherwise.int getCalculationAuthority()
AttributeI
if it is non-persistent.
If this AttributeI
is persistent, AttributeI.CALCULATION_AUTHORITY_NONE
will always be returned.
AttributeI
default boolean isServerCalculated()
AttributeI
is non-persistent and its
calculation authority is "server".AttributeI
is non-persistent and its
calculation authority is "server".boolean isCached()
boolean isIndexed()
boolean isInitialdata()
java.util.Collection<java.lang.String> getModulePackages()
AttributeI
is appearing in.AttributeI
is appearing in.java.util.Collection<java.lang.String> getOrCreateModulePackagesSet()
java.lang.String getL10nNameKey()
AttributeI
.
The key determines which localized string is retrieved for the attribute's name,
varying based on its relation type and read-only status.
SUFFIX_L10N_PLURAL_KEY
(typically "-s"),
to represent a plural or collection name key.
String
) for this AttributeI
,
adapted based on its many-relation and read-only properties.java.lang.String getL10nNameVar()
AttributeI
.
This method constructs a string that serves as a reference to a localized resource.
The format is typically `$R{'KEY'}`, where 'KEY' is determined by getL10nNameKey()
.
This allows the UI or report generation to fetch the appropriate localized name dynamically.
AttributeI
(e.g. "$R{Position}").java.lang.String getL10nName()
AttributeI
.
This method retrieves the appropriate localized string for the attribute's name
by using its determined localization name key (from getL10nNameKey()
).
It delegates to the L10n.msg(String, Object[], Object[], boolean)
method to perform the actual localization lookup. If no translation is found,
the original name key is returned as a fallback.
AttributeI
as a String.java.lang.String getL10nSingularKey()
AttributeI
, used for localization.
This key uniquely identifies the singular form of the attribute's name within the localization (L10n) bundles. It is typically derived from the attribute's base name.
java.lang.String getL10nSingularVar()
String
for the singular key of this AttributeI
(i.e. $R{'KEY'}).String
for the singular key of this AttributeI
java.lang.String getL10nSingular()
AttributeI
.
This method retrieves the appropriate singular translation of the attribute's name from the localization resources (L10n bundles) based on the current locale. Falls back to returning the key if no translation was found.
String
of this AttributeI
.java.lang.String getL10nEntityName()
This method typically retrieves the localized name by first obtaining the associated
entity (via an internal mechanism of the attribute) and then calling that entity's
getL10nName()
method. It makes sure the attribute is properly linked to an entity
before trying to retrieve its name.
java.lang.IllegalStateException
- If this attribute hasn't been linked to an entity yet
(meaning its internal entity reference would return null).AttributeI getBackAttribute()
boolean isLazy()
boolean isCustomIteratorNotCaching()
The default is false, so the values are cached forever, which is useful as custom iterators are typically used in situations where a long running calculation shall only be done once and for new results, a new instance must be used.
boolean isDepend()
boolean isPolymorphicRelation()
java.lang.String getSelectionFilter()
getSelectionFilter
in interface AttributeWithUIConfigurationI
AttributeI
boolean isForExport(java.lang.String exportName)
boolean isIgnoredForExport(java.lang.String exportName)
boolean isSeparateFileForExport(java.lang.String exportName)
java.lang.String getExportDependentPrimaryKey()
java.lang.String getItemProperty()
getItemProperty
in interface AttributeWithUIConfigurationI
java.lang.String getTimeZoneProperty()
getTimeZoneProperty
in interface AttributeWithUIConfigurationI
boolean isCreateInDetailView()
isCreateInDetailView
in interface AttributeWithUIConfigurationI
int getExpectedWidth()
getExpectedWidth
in interface AttributeWithUIConfigurationI
boolean isShared()
boolean isLinkOnly()
boolean isViewOnly()
boolean isOmitOnCopy()
boolean isAutotrim()
isAutotrim
in interface AttributeWithUIConfigurationI
boolean hasGuiTip(java.lang.String tip)
java.lang.String getGuiTip(java.lang.String tip)
int getGuiTipAsInt(java.lang.String tip)
java.util.Map getGuiTips()
getGuiTips
in interface AttributeWithUIConfigurationI
boolean isMandatory()
AttributeI
instance is a mandatory attribute.isMandatory
in interface AttributeWithUIConfigurationI
AttributeI
instance is a mandatory attribute.boolean isMandatory(BOI bo)
AttributeI
instance is a mandatory attribute for the specified BOI
.AttributeI
instance is a mandatory attribute for the specified BOI
.boolean isReadonly(BOI bo)
AttributeI
instance is read-only for the specified BOI
.
An attribute that is read-only for a particular BOI
cannot be modified for that BOI
only.
If this method returns true, any attempt to modify the attribute for the specified BOI
will result in an
exception being thrown.bo
- the BOI
for which to check the read-only status of this attribute.AttributeI
is read-only for the specified BOI
, false otherwise.boolean isVisible()
AttributeI
instance is visible in the UI.isVisible
in interface AttributeWithUIConfigurationI
AttributeI
instance is visible in the UI.boolean isVisible(BOI bo)
AttributeI
instance is visible in the UI for the specified BOI
.AttributeI
instance is visible in the UI for the specified BOI
.boolean isEditable()
AttributeI
is editable in the UI.AttributeI
is editable in the UI.boolean isEditable(BOI bo)
AttributeI
is editable in the UI for the specified BOI
.AttributeI
is editable in the UI for the specified BOI
.int getCopyPolicy()
java.lang.String getLookupProperty()
java.lang.Boolean getLookupSubstring()
java.lang.Boolean getLookupStartingWith()
java.lang.Boolean getLookupCaseSensitive()
java.lang.Object getValue(java.lang.Object bo)
java.lang.Object getValueLazy(java.lang.Object bo)
java.lang.String getValueAsString(java.lang.Object bo)
void setValue(java.lang.Object bo, java.lang.Object value, WriteConstraintsOverriderI overrider)
void setValue(java.lang.Object bo, java.lang.Object value)
void setValueAsString(java.lang.Object bo, java.lang.String value, boolean checkConstraints)
void setValueAsString(java.lang.Object bo, java.lang.String value)
java.util.Iterator getRelationIterator(java.lang.Object bo)
java.util.Map getRelationObjects(java.lang.Object bo)
void addRelationObject(java.lang.Object bo, java.lang.Object value, WriteConstraintsOverriderI overrider)
void addRelationObject(java.lang.Object bo, java.lang.Object value)
void removeRelationObject(java.lang.Object bo, java.lang.Object value, WriteConstraintsOverriderI overrider)
void removeRelationObject(java.lang.Object bo, java.lang.Object value)
boolean hasRelationObject(java.lang.Object bo, java.lang.Object value)
java.lang.Object pgetValue(java.lang.Object bo)
void psetValue(java.lang.Object bo, java.lang.Object value)
java.lang.Boolean getIndexedForFTS()
java.lang.Boolean getAnalyzedForFTS()
java.lang.String getFTSAnalyzer()
java.lang.Float getFTSBoost()
boolean isReportVisible()
int getReportRelativeWidth()
This works also for attributes of entities extending other entities and adding attributes with their own relativeWiths.
java.lang.Integer getReportPosition()
Tip: be sure to use 'high' values, so that attributes of extending entities can 'squeeze in' between them if necessary ;-) e.g. 100, 200, 300, ...
java.lang.String getReportSort()
java.lang.String getReportManySort()
java.lang.String getReportAlias()
FIXME: support more than one many-relation in automatic reports
OnlyToDirectedGraphNodeI getFromNode()
GraphEdgeI
This method is contractually obligated to return a non-null
OnlyToDirectedGraphNodeI
instance, as every valid edge must
have a defined starting point.
getFromNode
in interface GraphEdgeI
OnlyToDirectedGraphNodeI getToNode()
GraphEdgeI
This method is contractually obligated to return a non-null
OnlyToDirectedGraphNodeI
instance, as every valid edge must
have a defined ending point.
getToNode
in interface GraphEdgeI
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.