public class ScriptedAttribute extends java.lang.Object implements InstrumentingAttributeI
SchemaI.parseGuiTips(java.lang.String, java.util.Map)AttributeI.getSelectionFilter()AttributeI.getItemProperty()
<virtualProperty name="Greeter" entity="Benannt">
<ui expectedWidth="16"/>
<get><![CDATA[ return "Hello $bo.name" ]]></get>
</virtualProperty>
| Modifier and Type | Class and Description |
|---|---|
class |
ScriptedAttribute.AddRemoveEvent |
class |
ScriptedAttribute.SetValueEvent |
| Modifier and Type | Field and Description |
|---|---|
static ConfigureInfo |
CONFIG |
ALLOWED_RELATION_TYPES, ATT_NAME_BACKNAME, ATT_NAME_CUSTOM_ITERATOR, ATT_NAME_CUSTOM_ITERATOR_NOT_CACHING, ATT_NAME_DB_COPY_POLICY, ATT_NAME_DB_INDEX_TYPE, ATT_NAME_DB_INDEXED, ATT_NAME_DB_RELATION_DISCRIMINATOR, ATT_NAME_DB_UNIQUE, ATT_NAME_DEFAULT, ATT_NAME_DEPENDENT, ATT_NAME_DISPLAY_FORMAT, ATT_NAME_EXPORT_DEPENDENT_PRIMARY_KEY, ATT_NAME_EXPORT_FOR, ATT_NAME_EXPORT_IGNORE_FOR, ATT_NAME_EXPORT_SEPARATE_FILE_IN, ATT_NAME_FULLTEXT_ANALYZED, ATT_NAME_FULLTEXT_ANALYZER, ATT_NAME_FULLTEXT_BOOST, ATT_NAME_FULLTEXT_INDEXED, ATT_NAME_IGNORE_BACK_RELATION, ATT_NAME_ITEM_PROPERTY, ATT_NAME_LAZY, ATT_NAME_LOOKUP_CASE_SENSITIVE, ATT_NAME_LOOKUP_PROPERTY, ATT_NAME_LOOKUP_STARTING_WITH, ATT_NAME_LOOKUP_SUBSTRING, ATT_NAME_NAME, ATT_NAME_NP_CALCULATION_AUTHORITY, ATT_NAME_OMIT_ON_COPY, ATT_NAME_READONLY, ATT_NAME_RELATION, ATT_NAME_REPORT_ALIAS, ATT_NAME_REPORT_MANY_SORT, ATT_NAME_REPORT_POSITION, ATT_NAME_REPORT_RELATIVE_WIDTH, ATT_NAME_REPORT_SORT, ATT_NAME_REPORT_VISIBLE, ATT_NAME_SHARED, ATT_NAME_SINGULAR, ATT_NAME_TYPE, ATT_NAME_UI_AUTO_TRIM, ATT_NAME_UI_CREATE_IN_DETAILVIEW, ATT_NAME_UI_EDIT_MODE, ATT_NAME_UI_EDITABLE, ATT_NAME_UI_EXPECTED_WIDTH, ATT_NAME_UI_MANDATORY, ATT_NAME_UI_SELECTION_FILTER, ATT_NAME_UI_TIPS, ATT_NAME_UI_TIPS_TRISTATE, ATT_NAME_UI_VISIBLE, ATT_NAME_VIRTUAL_AGGREGATE, ATT_NAME_VIRTUAL_AGGREGATE_IGNORE_DELETED, ATT_NAME_VIRTUAL_CACHE_MODE, ATT_NAME_VIRTUAL_INITIALDATA, ATT_NAME_VIRTUAL_PRECACHING_HOOK, CACHEMODE_NONE, CACHEMODE_SIMPLE, CACHEMODE_STRING_SIMPLE, CACHEMODE_STRING_VERSIONED, CACHEMODE_VERSIONED, CALCULATION_AUTHORITY_CLIENT, CALCULATION_AUTHORITY_NONE, CALCULATION_AUTHORITY_SERVER, CALCULATION_AUTHORITY_STRING_CLIENT, CALCULATION_AUTHORITY_STRING_SERVER, COPY_POLICY_COPY, COPY_POLICY_NONE, COPY_POLICY_STRING_COPY, COPY_POLICY_STRING_UPDATE_REL, COPY_POLICY_UPDATEREL, EDITMODE_LINKONLY, EDITMODE_UNDEFINED, EDITMODE_VIEWONLY, EL_NAME_BACK_RELATION, EL_NAME_COMMENT, EL_NAME_DB, EL_NAME_EXPORT, EL_NAME_FULLTEXT, EL_NAME_LOOKUP, EL_NAME_NP, EL_NAME_REPORT, EL_NAME_UI, EL_NAME_VIRTUAL, EMPTY_ARRAY, EXPORT_IGNORE_FOR_ALL, MAX_RELATION_DISCRIMINATOR, MIN_RELATION_DISCRIMINATOR, NO_RELATION_DISCRIMINATOR, READONLY_NO, READONLY_SERVERONLY, READONLY_UNDEFINED, READONLY_WRITENEW, READONLY_WRITENEW_STR, READONLY_YES, REPORT_SORT_ASC, REPORT_SORT_DESC, RESERVED_KEYWORDS, RESERVED_TABLE_NAMES, SUFFIX_L10N_PLURAL_KEY, TYPE_NAME_DEFAULT| Constructor and Description |
|---|
ScriptedAttribute(InstrumentingSchemaI attrSchema,
electric.xml.Element el) |
ScriptedAttribute(InstrumentingSchemaI attrSchema,
electric.xml.Element el,
java.util.Map parameters) |
| 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) |
void |
callAdder(java.lang.Object bo,
java.lang.Object value) |
void |
callRemover(java.lang.Object bo,
java.lang.Object value) |
void |
callSetter(java.lang.Object bo,
java.lang.Object value) |
int |
compareTo(java.lang.Object o) |
static java.lang.String |
errorLocation(electric.xml.Element el) |
boolean |
existsAttrWithDifferentDefinition(AttributeI attr)
Returns true if the passed attribute has a different definition than this.
|
void |
flushCache()
Clears the cache if this Attribute is caching by replacing the map.
|
electric.xml.Element |
getAllEl() |
java.lang.Boolean |
getAnalyzedForFTS() |
AttributeI |
getBackAttribute() |
int |
getCalculationAuthority()
Returns the calculation authority of this
AttributeI if it is non-persistent. |
java.lang.Class |
getClazz()
Returns the
Class object representing the type of this attribute or the related entity. |
java.lang.String |
getComment() |
java.lang.String |
getContainingElementPackage() |
int |
getCopyPolicy() |
int |
getEditmode() |
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()
Function to use in Map#computeIfAbsent to return the calculated value for a
bo if it is missing.
|
java.lang.Boolean |
getIndexedForFTS() |
static ScriptedAttribute |
getInstance(InstrumentingSchema attrSchema,
electric.xml.Element el) |
static ScriptedAttribute |
getInstance(InstrumentingSchema attrSchema,
electric.xml.Element el,
java.util.Map parameters) |
static ScriptedAttribute |
getInstance(InstrumentingSchema attrSchema,
java.util.Map config) |
static ScriptedAttribute |
getInstance(InstrumentingSchema attrSchema,
java.util.Map config,
java.util.Map parameters) |
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.lang.String |
getName() |
java.util.Collection<java.lang.String> |
getOrCreateModulePackagesSet() |
EntityI |
getRelationEntity() |
java.util.Iterator |
getRelationIterator(java.lang.Object bo) |
java.util.Map |
getRelationObjects(java.lang.Object bo) |
java.lang.String |
getRelationType() |
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() |
InstrumentingSchemaI |
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 |
getSingular() |
java.lang.String |
getTimeZoneProperty() |
OnlyToDirectedGraphNodeI |
getToNode()
Retrieves the target node to which this directed edge points.
|
CBOAttributeTypeI |
getType() |
java.lang.String |
getTypeName()
Returns the type information of this attribute.
|
java.lang.Object |
getValue(java.lang.Object o)
If not caching, then delegates to getValueUncached(Object).
|
java.lang.String |
getValueAsString(java.lang.Object o) |
java.lang.Object |
getValueLazy(java.lang.Object bo) |
java.lang.Object |
getValueUncached(java.lang.Object bo)
Calls the getter for this attribute on the given BO and returns the calculated object
|
void |
handleAddE(electric.xml.Element el) |
void |
handleDefineE(electric.xml.Element el)
Handle the "define" element, i.e. global script definitions, e.g. closures to reuse globally.
|
void |
handleGetE(electric.xml.Element el) |
void |
handleInitE(electric.xml.Element el) |
void |
handleLookupE(electric.xml.Element el) |
void |
handleRemoveE(electric.xml.Element el) |
void |
handleSetE(electric.xml.Element el) |
void |
handleUiE(electric.xml.Element el) |
boolean |
hasCustomIterator()
Returns true if this AttributeI is a relation that uses a custom iterator to fetch its members incrementally.
|
boolean |
hasGuiTip(java.lang.String tip) |
boolean |
hasRelationObject(java.lang.Object bo,
java.lang.Object value) |
void |
initEntitiesAndCheck() |
void |
initEntitiesAndCheck(electric.xml.Element el) |
boolean |
isArray() |
boolean |
isAutotrim() |
boolean |
isCached() |
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. |
boolean |
isManyRelation() |
boolean |
isOmitOnCopy() |
boolean |
isPersistent() |
boolean |
isPolymorphicRelation() |
boolean |
isReadonly()
Returns whether this
AttributeI instance is strictly read-only. |
boolean |
isReadonly(BOI bo)
Returns whether this
AttributeI instance is read-only for the specified BOI. |
boolean |
isRelation() |
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() |
boolean |
isShared() |
boolean |
isViewOnly() |
boolean |
isVirtual() |
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 |
setAllEl(electric.xml.Element $46) |
void |
setAutotrim(boolean b) |
void |
setCached(java.lang.String s) |
void |
setCreateInDetailView(boolean b) |
void |
setDefault(java.lang.String s) |
void |
setDependent(boolean b) |
void |
setEditable(boolean b) |
void |
setEditmode(int i) |
void |
setEntity(java.lang.String s) |
void |
setExpectedWidth(int i) |
void |
setForParameterInputOnly(boolean b) |
void |
setGuiTips(java.util.Map $45) |
void |
setItemProperty(java.lang.String s) |
void |
setMandatory(boolean b) |
void |
setName(java.lang.String s) |
void |
setReadonly(boolean b) |
void |
setRelation(java.lang.String s) |
void |
setSelectionFilter(java.lang.String s) |
void |
setSingular(java.lang.String s) |
void |
setSuppressVersionBump(boolean b) |
void |
setTimeZoneProperty(java.lang.String s) |
void |
setType(java.lang.String s) |
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) |
void |
setVisible(boolean b) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContainingElementName, getEntity, getQName, getQName, getTypedQName, getTypedQName, isCoreNative, isModuleNative, isPartOfModule, isProjectNative, isServerCalculated, toAttributePath, toNiceStringpublic static final ConfigureInfo CONFIG
public ScriptedAttribute(InstrumentingSchemaI attrSchema, electric.xml.Element el)
public ScriptedAttribute(InstrumentingSchemaI attrSchema, electric.xml.Element el, java.util.Map parameters)
public void setEntity(java.lang.String s)
public void setName(java.lang.String s)
public void setSingular(java.lang.String s)
public void setType(java.lang.String s)
public void setRelation(java.lang.String s)
public void setMandatory(boolean b)
setMandatory in interface AttributeWithUIConfigurationIpublic void setDependent(boolean b)
public void setReadonly(boolean b)
public void setForParameterInputOnly(boolean b)
public void setSuppressVersionBump(boolean b)
public void setDefault(java.lang.String s)
public void setCached(java.lang.String s)
public static ScriptedAttribute getInstance(InstrumentingSchema attrSchema, electric.xml.Element el)
public static ScriptedAttribute getInstance(InstrumentingSchema attrSchema, electric.xml.Element el, java.util.Map parameters)
public static ScriptedAttribute getInstance(InstrumentingSchema attrSchema, java.util.Map config)
public static ScriptedAttribute getInstance(InstrumentingSchema attrSchema, java.util.Map config, java.util.Map parameters)
public void initEntitiesAndCheck()
public void initEntitiesAndCheck(electric.xml.Element el)
public boolean existsAttrWithDifferentDefinition(AttributeI attr)
public void handleDefineE(electric.xml.Element el)
public void handleInitE(electric.xml.Element el)
public void handleGetE(electric.xml.Element el)
public void handleSetE(electric.xml.Element el)
public void handleAddE(electric.xml.Element el)
public void handleRemoveE(electric.xml.Element el)
public void handleUiE(electric.xml.Element el)
public void handleLookupE(electric.xml.Element el)
public void callSetter(java.lang.Object bo,
java.lang.Object value)
public void callAdder(java.lang.Object bo,
java.lang.Object value)
public void callRemover(java.lang.Object bo,
java.lang.Object value)
public java.lang.String getName()
getName in interface BasicAttributeIpublic InstrumentingSchemaI getSchema()
AttributeIgetSchema in interface AttributeIgetSchema in interface InstrumentingSchemaProviderIgetSchema in interface SchemaProviderIpublic java.lang.String getEntityName()
AttributeINote: This method returns the *name* of the entity, not the entity object itself. This is intentional to prevent direct coupling to the entity object.
getEntityName in interface AttributeIpublic java.lang.String getContainingElementPackage()
getContainingElementPackage in interface BasicAttributeIpublic boolean isSerialized()
isSerialized in interface AttributeIpublic boolean isPersistent()
isPersistent in interface AttributeIpublic boolean isIgnoreBackRelation()
isIgnoreBackRelation in interface AttributeIpublic int getCalculationAuthority()
AttributeIAttributeI if it is non-persistent.
If this AttributeI is persistent, AttributeI.CALCULATION_AUTHORITY_NONE
will always be returned.
getCalculationAuthority in interface AttributeIAttributeIpublic boolean isVirtual()
isVirtual in interface BasicAttributeIpublic java.lang.Class getClazz()
BasicAttributeIClass object representing the type of this attribute or the related entity.
If this attribute is a relation to another entity, the method returns the Class object of the related entity. Otherwise, it returns the Class object of the attribute's declared type.
getClazz in interface BasicAttributeIpublic boolean isCached()
isCached in interface AttributeIpublic boolean isIndexed()
isIndexed in interface AttributeIpublic java.lang.String getComment()
getComment in interface BasicAttributeIpublic boolean isInitialdata()
isInitialdata in interface AttributeIpublic java.util.Collection<java.lang.String> getModulePackages()
AttributeIAttributeI is appearing in.getModulePackages in interface AttributeIAttributeI is appearing in.public java.util.Collection<java.lang.String> getOrCreateModulePackagesSet()
getOrCreateModulePackagesSet in interface AttributeIpublic java.lang.String getL10nNameKey()
AttributeIAttributeI.
The key determines which localized string is retrieved for the attribute's name,
varying based on its relation type and read-only status.
AttributeI.SUFFIX_L10N_PLURAL_KEY (typically "-s"),
to represent a plural or collection name key.
getL10nNameKey in interface AttributeIString) for this AttributeI,
adapted based on its many-relation and read-only properties.public java.lang.String getL10nNameVar()
AttributeIAttributeI.
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 AttributeI.getL10nNameKey().
This allows the UI or report generation to fetch the appropriate localized name dynamically.
getL10nNameVar in interface AttributeIAttributeI
(e.g. "$R{Position}").public java.lang.String getL10nName()
AttributeIAttributeI.
This method retrieves the appropriate localized string for the attribute's name
by using its determined localization name key (from AttributeI.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.
getL10nName in interface AttributeIAttributeI as a String.public java.lang.String getL10nSingularKey()
AttributeIAttributeI, 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.
getL10nSingularKey in interface AttributeIpublic java.lang.String getL10nSingularVar()
AttributeIString for the singular key of this AttributeI (i.e. $R{'KEY'}).getL10nSingularVar in interface AttributeIString for the singular key of this AttributeIpublic java.lang.String getL10nSingular()
AttributeIAttributeI.
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.
getL10nSingular in interface AttributeIString of this AttributeI.public java.lang.String getL10nEntityName()
AttributeIThis 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.
getL10nEntityName in interface AttributeIpublic CBOAttributeTypeI getType()
getType in interface BasicAttributeIpublic java.lang.String getTypeName()
BasicAttributeIFor relations, this is either the simple or qualified name of the referenced entity. For scalars, this is the declared type in the schema.
getTypeName in interface BasicAttributeIpublic java.lang.String getSingular()
getSingular in interface BasicAttributeIpublic boolean isRelation()
isRelation in interface BasicAttributeIpublic boolean isArray()
isArray in interface BasicAttributeIpublic java.lang.String getRelationType()
getRelationType in interface BasicAttributeISchemaI.RELATION_TYPE_N_1,
SchemaI.RELATION_TYPE_1_N or
SchemaI.RELATION_TYPE_N_M.
The empty String (or null?) for scalars.public EntityI getRelationEntity()
getRelationEntity in interface BasicAttributeIpublic AttributeI getBackAttribute()
getBackAttribute in interface AttributeIpublic boolean isLazy()
isLazy in interface AttributeIpublic boolean hasCustomIterator()
BasicAttributeIhasCustomIterator in interface BasicAttributeIpublic boolean isCustomIteratorNotCaching()
AttributeIThe 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.
isCustomIteratorNotCaching in interface AttributeIpublic boolean isDepend()
isDepend in interface AttributeIpublic boolean isManyRelation()
isManyRelation in interface BasicAttributeIpublic boolean isPolymorphicRelation()
isPolymorphicRelation in interface AttributeIpublic void setSelectionFilter(java.lang.String s)
setSelectionFilter in interface AttributeWithUIConfigurationIpublic java.lang.String getSelectionFilter()
AttributeIgetSelectionFilter in interface AttributeIgetSelectionFilter in interface AttributeWithUIConfigurationIAttributeIpublic boolean isForExport(java.lang.String exportName)
AttributeIisForExport in interface AttributeIpublic boolean isIgnoredForExport(java.lang.String exportName)
AttributeIisIgnoredForExport in interface AttributeIpublic boolean isSeparateFileForExport(java.lang.String exportName)
AttributeIisSeparateFileForExport in interface AttributeIpublic java.lang.String getExportDependentPrimaryKey()
AttributeIgetExportDependentPrimaryKey in interface AttributeIpublic void setItemProperty(java.lang.String s)
setItemProperty in interface AttributeWithUIConfigurationIpublic java.lang.String getItemProperty()
getItemProperty in interface AttributeIgetItemProperty in interface AttributeWithUIConfigurationIpublic void setTimeZoneProperty(java.lang.String s)
setTimeZoneProperty in interface AttributeWithUIConfigurationIpublic java.lang.String getTimeZoneProperty()
getTimeZoneProperty in interface AttributeIgetTimeZoneProperty in interface AttributeWithUIConfigurationIpublic void setCreateInDetailView(boolean b)
setCreateInDetailView in interface AttributeWithUIConfigurationIpublic boolean isCreateInDetailView()
isCreateInDetailView in interface AttributeIisCreateInDetailView in interface AttributeWithUIConfigurationIpublic void setExpectedWidth(int i)
setExpectedWidth in interface AttributeWithUIConfigurationIpublic int getExpectedWidth()
getExpectedWidth in interface AttributeIgetExpectedWidth in interface AttributeWithUIConfigurationIpublic boolean isShared()
isShared in interface AttributeIpublic boolean isLinkOnly()
isLinkOnly in interface AttributeIpublic boolean isViewOnly()
isViewOnly in interface AttributeIpublic boolean isOmitOnCopy()
isOmitOnCopy in interface AttributeIpublic void setAutotrim(boolean b)
setAutotrim in interface AttributeWithUIConfigurationIpublic boolean isAutotrim()
isAutotrim in interface AttributeIisAutotrim in interface AttributeWithUIConfigurationIpublic void setEditmode(int i)
setEditmode in interface AttributeWithUIConfigurationIpublic int getEditmode()
getEditmode in interface AttributeWithUIConfigurationIpublic boolean hasGuiTip(java.lang.String tip)
hasGuiTip in interface AttributeIpublic java.lang.String getGuiTip(java.lang.String tip)
getGuiTip in interface AttributeIpublic int getGuiTipAsInt(java.lang.String tip)
getGuiTipAsInt in interface AttributeIpublic boolean isMandatory()
AttributeIAttributeI instance is a mandatory attribute.isMandatory in interface AttributeIisMandatory in interface AttributeWithUIConfigurationIAttributeI instance is a mandatory attribute.public boolean isMandatory(BOI bo)
AttributeIAttributeI instance is a mandatory attribute for the specified BOI.isMandatory in interface AttributeIAttributeI instance is a mandatory attribute for the specified BOI.public boolean isReadonly()
BasicAttributeIAttributeI instance is strictly read-only.
An attribute that is strictly read-only cannot be modified under any circumstances.
If this method returns true, any attempt to modify the attribute will result in an
exception being thrown.isReadonly in interface BasicAttributeIAttributeI is strictly read-only, false otherwise.public boolean isReadonly(BOI bo)
AttributeIAttributeI 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.isReadonly in interface AttributeIbo - the BOI for which to check the read-only status of this attribute.AttributeI is read-only for the specified BOI, false otherwise.public void setEditable(boolean b)
setEditable in interface AttributeWithUIConfigurationIpublic boolean isEditable()
AttributeIAttributeI is editable in the UI.isEditable in interface AttributeIAttributeI is editable in the UI.public boolean isEditable(BOI bo)
AttributeIAttributeI is editable in the UI for the specified BOI.isEditable in interface AttributeIAttributeI is editable in the UI for the specified BOI.public void setVisible(boolean b)
setVisible in interface AttributeWithUIConfigurationIpublic boolean isVisible()
AttributeIAttributeI instance is visible in the UI.isVisible in interface AttributeIisVisible in interface AttributeWithUIConfigurationIAttributeI instance is visible in the UI.public boolean isVisible(BOI bo)
AttributeIAttributeI instance is visible in the UI for the specified BOI.isVisible in interface AttributeIAttributeI instance is visible in the UI for the specified BOI.public int getCopyPolicy()
getCopyPolicy in interface AttributeIpublic java.lang.String getLookupProperty()
getLookupProperty in interface AttributeIpublic java.lang.Boolean getLookupSubstring()
getLookupSubstring in interface AttributeIpublic java.lang.Boolean getLookupStartingWith()
getLookupStartingWith in interface AttributeIpublic java.lang.Boolean getLookupCaseSensitive()
getLookupCaseSensitive in interface AttributeIpublic java.lang.Object getValue(java.lang.Object o)
getValue in interface AttributeIpublic java.lang.Object getValueUncached(java.lang.Object bo)
public java.lang.Object getValueLazy(java.lang.Object bo)
getValueLazy in interface AttributeIpublic java.lang.String getValueAsString(java.lang.Object o)
getValueAsString in interface AttributeIpublic void setValue(java.lang.Object bo,
java.lang.Object value)
setValue in interface AttributeIpublic void setValue(java.lang.Object bo,
java.lang.Object value,
WriteConstraintsOverriderI overrider)
setValue in interface AttributeIpublic void setValueAsString(java.lang.Object bo,
java.lang.String value,
boolean checkConstraints)
setValueAsString in interface AttributeIpublic void setValueAsString(java.lang.Object bo,
java.lang.String value)
setValueAsString in interface AttributeIpublic java.util.Map getRelationObjects(java.lang.Object bo)
getRelationObjects in interface AttributeIpublic java.util.Iterator getRelationIterator(java.lang.Object bo)
getRelationIterator in interface AttributeIpublic void addRelationObject(java.lang.Object bo,
java.lang.Object value)
addRelationObject in interface AttributeIpublic void addRelationObject(java.lang.Object bo,
java.lang.Object value,
WriteConstraintsOverriderI overrider)
addRelationObject in interface AttributeIpublic void removeRelationObject(java.lang.Object bo,
java.lang.Object value)
removeRelationObject in interface AttributeIpublic void removeRelationObject(java.lang.Object bo,
java.lang.Object value,
WriteConstraintsOverriderI overrider)
removeRelationObject in interface AttributeIpublic boolean hasRelationObject(java.lang.Object bo,
java.lang.Object value)
hasRelationObject in interface AttributeIpublic java.lang.Object pgetValue(java.lang.Object bo)
pgetValue in interface AttributeIpublic void psetValue(java.lang.Object bo,
java.lang.Object value)
psetValue in interface AttributeIpublic java.lang.Boolean getIndexedForFTS()
getIndexedForFTS in interface AttributeIpublic java.lang.Boolean getAnalyzedForFTS()
getAnalyzedForFTS in interface AttributeIpublic java.lang.String getFTSAnalyzer()
getFTSAnalyzer in interface AttributeIpublic java.lang.Float getFTSBoost()
getFTSBoost in interface AttributeIpublic boolean isReportVisible()
isReportVisible in interface AttributeIpublic int getReportRelativeWidth()
AttributeIThis works also for attributes of entities extending other entities and adding attributes with their own relativeWiths.
getReportRelativeWidth in interface AttributeIpublic java.lang.Integer getReportPosition()
AttributeITip: be sure to use 'high' values, so that attributes of extending entities can 'squeeze in' between them if necessary ;-) e.g. 100, 200, 300, ...
getReportPosition in interface AttributeIpublic java.lang.String getReportSort()
getReportSort in interface AttributeIpublic java.lang.String getReportManySort()
getReportManySort in interface AttributeIpublic java.lang.String getReportAlias()
AttributeIFIXME: support more than one many-relation in automatic reports
getReportAlias in interface AttributeIpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable<java.lang.Object>public static java.lang.String errorLocation(electric.xml.Element el)
public void flushCache()
public 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 AttributeIgetFromNode in interface GraphEdgeIpublic 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 AttributeIgetToNode in interface GraphEdgeIpublic java.util.Map getGuiTips()
getGuiTips in interface AttributeIgetGuiTips in interface AttributeWithUIConfigurationIpublic void setGuiTips(java.util.Map $45)
setGuiTips in interface AttributeWithUIConfigurationIpublic electric.xml.Element getAllEl()
public void setAllEl(electric.xml.Element $46)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.