public final class CBOAttribute extends java.lang.Object implements CBOAttributeI, java.io.Serializable
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, DEFAULT_EXPECTED_WIDTH, 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 |
|---|
CBOAttribute(EntityI _entity,
AttributeTemplate template)
Constructor for
CBOAttribute |
CBOAttribute(EntityI _entity,
electric.xml.Element _el)
Constructor for this
CBOAttribute |
| Modifier and Type | Method and Description |
|---|---|
void |
addRelationObject(java.lang.Object bo,
java.lang.Object newObject)
Adds the given
Object as a relational Object to the provided business object (bo). |
void |
addRelationObject(java.lang.Object bo,
java.lang.Object newObject,
WriteConstraintsOverriderI overrider)
Adds the given
Object as a relational Object to the provided business object (bo). |
void |
buildPass2()
Does some second pass parsing of entity and attribute definitions, including consistency / sanity checks.
|
void |
checkItemProperty()
Processes a possible existing itemProperty definition if this is a manyrelation and
checks if it is a valid attribute (chain) on the relationEntity.
|
boolean |
checkMandatoryValid(boolean mandatoryToCheck)
Performs a check and tells if the mandatory setting on this
CBOAttribute makes sense. |
boolean |
checkMandatoryValid(boolean mandatoryToCheck,
BOI bo) |
void |
checkRelationDiscriminatorConsistency()
Checks and ensures the consistency of relationDiscriminator in this and back attribute.
|
void |
checkSingularAbsenceForNTo1()
This method will signal an AttributeDefinitionException if we are an n-1
relation with an explicit singular set in the schema-file.
|
void |
checkValidName()
Validates the name of this attribute.
|
void |
clearRelation(java.lang.Object bo)
Removes all relational
Objects from the given bo |
int |
compareTo(java.lang.Object o)
Comparable interface, Compares this object with the specified object for order.
|
static void |
copyTo(electric.xml.Element src,
electric.xml.Element dest)
Copys the AttributeObjects and
Elements from Element "src"
to Element "dest", works recursivly over the copied Elements
too, so copied Elements will have their AttributeObjects and Elements
copied too (and so on) |
java.lang.String |
errorMessageWithLine()
Returns a nice formated error message with the line number the error occurred
|
void |
forgetXMLDefinition()
Resets the local Element in el to null.
|
java.lang.String |
getAggregateFunction() |
java.lang.String |
getAggregateOf() |
java.lang.String |
getAggregateParameters() |
java.lang.Boolean |
getAnalyzedForFTS() |
AttributeI |
getBackAttribute() |
java.lang.String |
getBackName() |
electric.xml.Element |
getBackRelationDef() |
int |
getCacheMode()
Returns the cache mode of this
CBOAttribute |
int |
getCalculationAuthority()
Returns the calculation authority of this
AttributeI if it is non-persistent. |
java.lang.String |
getComment() |
java.lang.String |
getContainingElementPackage() |
int |
getCopyPolicy()
Returns the copy policy of this
CBOAttribute |
java.lang.String |
getCustomIndexDefinition() |
int |
getCustomIndexVersion() |
java.lang.String |
getDef()
Returns the Java code for building a default for this CBOAttribute
as given in the attribute definition with fallback to the one
given in the type.
|
java.lang.String |
getDisplayFormat() |
int |
getEditmode()
Returns the edit mode for this
CBOAttribute
if the edit mode is undefined, and a relation entity of this
CBOAttribute exists and is link only and this
CBOAttribute is not depending, the editmode will
be set to link only Before getting returned |
electric.xml.Element |
getEl()
An implementation of
L10nPathCompilerI specifically designed to compile
localization paths for CBOAttribute objects. |
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 |
getExplicitSingular() |
java.lang.String |
getExportDependentPrimaryKey()
Returns the attribute name of the primary key when exporting this AttributeI as a dependent relation, if any.
|
javax.swing.text.DocumentFilter |
getFilter(java.util.ArrayList inputFormats)
Returns the filter from this CBOAttribute types by the given inputformats
|
OnlyToDirectedGraphNodeI |
getFromNode()
Retrieves the source node from which this directed edge originates.
|
AttributeTemplate |
getFromTemplate() |
java.lang.String |
getFTSAnalyzer() |
java.lang.Float |
getFTSBoost() |
java.lang.String |
getGuiTip()
Returns the Gui Tips for this
CBOAttribute as a key:value-paired String
If the value is null or empty only the key will be used instead of the pairing
IMPORTANT: for backwards compatibility with old guiTip-String, esp. for Equinox |
java.lang.String |
getGuiTip(java.lang.String tip)
Returns the gui tip for the given tip key, returns
null if guiTips is null |
int |
getGuiTipAsInt(java.lang.String tip)
Returns the gui tip for the given tip key as
int |
java.util.Map<java.lang.String,java.lang.String> |
getGuiTips() |
java.lang.Boolean |
getIndexedForFTS() |
int |
getIndexType()
Returns the index type of this
CBOAttribute
if type is INDEX_TYPE_AUTO the index type will be resolved by
checking the lowinstancecount of a relation if exists |
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()
Returns a comma-separated list of attributes/attribute chains to be searched during
"fast input"; if the result is unique, the system automatically selects it upon entering
a "fast input".
|
java.lang.Boolean |
getLookupStartingWith() |
java.lang.Boolean |
getLookupSubstring() |
java.lang.Boolean |
getMandatory()
Tells if this
CBOAttribute is mandatory |
java.util.LinkedHashSet<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() |
java.lang.String |
getPreCachingHook()
Returns the preCachingHook for this
CBOAttribute
I.e. the name of a method to apply to a cached scalar value before it is cached. |
int |
getRelationDiscriminator() |
EntityI |
getRelationEntity() |
java.util.Iterator |
getRelationIterator(java.lang.Object bo)
Returns the iterator containing the relational objects from the given BO
|
java.util.Map |
getRelationObjects(java.lang.Object bo)
Returns the relational objects from the given bo as
TreeMap |
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() |
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 |
getSingular() |
java.lang.String |
getSqlManyTable()
Returns the name for the sqltable
|
java.lang.String |
getSqlName()
Returns the sqlname of this
CBOAttribute, if the sqlname is empty
the singular of this CBOAttribute will be returned in lowercase |
java.lang.String |
getTimeZoneProperty() |
OnlyToDirectedGraphNodeI |
getToNode()
Retrieves the target node to which this directed edge points.
|
CBOAttributeTypeI |
getType() |
java.lang.String |
getTypedQName()
Returns a nicely formatted
String containing the entity name, the name of the attribute, and its type or
relation information. |
java.lang.String |
getTypedQName(BOI bo)
Returns a nicely formatted
String containing the entity name or a concise description of the given BOI,
the name of the attribute, and its type or relation information. |
java.lang.String |
getTypeName()
Returns the type information of this attribute.
|
java.lang.Object |
getValue(java.lang.Object o)
Returns the value from the given bo by the AttributeAccessor
|
java.lang.String |
getValueAsString(java.lang.Object bo)
Returns the value from the given bo depending on the relation type of the given bo
|
java.lang.Object |
getValueLazy(java.lang.Object o)
Returns the value from the given bo by the AttributeAccessor, but lazy
|
java.lang.String |
getVar()
Returns the name of this
CBOAttribute with the first character converted to lowercase |
java.lang.String |
getVarname() |
java.lang.String |
getVersionRelevantDescription()
Returns a Description for this
CBOAttribute containing the name and the relationtype,
will contains relevant details like: dependent, linkOnly, viewOnly, virtual, ... too |
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)
Checks if this
CBOAttribute has a gui tip for the given tip key,
returns false if guiTips is null |
boolean |
hasRelationObject(java.lang.Object bo,
java.lang.Object hasMe)
Checks if the given bo contains a relation to the given
Object hasme |
static void |
includeTypeDefinition(CBOAttributeTypeI t,
electric.xml.Element into)
Copys the
Elements, definated in the given CBOAttributeTypeI,
into the given Element, by using the copyto-method. |
void |
info(electric.xml.Element e,
java.lang.String msg)
Logs the given
String msg as information with the
messageprefix for the given Element _el |
void |
info(java.lang.String msg)
Logs the given
String msg as information with the
messageprefix for this CBOAttributes Element el
Convenience method info(e = Element, msg = String) |
boolean |
isAggregate()
Returns if the
CBOAttribute has an aggregate function |
boolean |
isAggregateIgnoreDeleted() |
boolean |
isAutotrim() |
boolean |
isCached()
Checks if the cache mode of this
CBOAttribute is not AttributeI.CACHEMODE_NONE |
boolean |
isCreateInDetailView() |
boolean |
isCustomIterator() |
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()
Returns true if this
CBOAttribute ignores the back relation. |
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 |
isImplicitedBackRelation() |
boolean |
isIndexed()
Returns if this
CBOAttribute has an index type which isnt
CBOAttributeTypeI.INDEX_TYPE_NONE |
boolean |
isInitialdata() |
boolean |
isLazy() |
boolean |
isLazyExp() |
boolean |
isLinkOnly()
Returns if the edit mode of this
CBOAttribute is link only
(or view only, because AttributeI.EDITMODE_VIEWONLY implements AttributeI.EDITMODE_LINKONLY) |
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()
Returns true if the
CBOAttribute is persistent. |
boolean |
isPolymorphicRelation()
Checks if this
CBOAttribute is polymorphic |
boolean |
isPrimary()
Returns true if this
CBOAttribute represents the primary key. |
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 |
isRelationBack() |
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()
Returns if the
CBOAttribute shall be serialized |
boolean |
isShared() |
boolean |
isUnique()
Returns true if this
CBOAttribute is unique. |
boolean |
isViewOnly()
Returns if the edit mode of this
CBOAttribute is view only |
boolean |
isVirtual()
Tells if this
CBOAttribute is virtual. |
boolean |
isVisible()
Returns whether this
CBOAttribute instance is visible in the UI. |
boolean |
isVisible(BOI bo)
Returns whether this
AttributeI instance is visible in the UI for the specified BOI. |
void |
parseElementComment(electric.xml.Element e) |
java.lang.Object |
pgetValue(java.lang.Object bo)
Returns the value from the given bo by the AttributeAccessor
|
void |
processBackRelationDef1(electric.xml.Element e)
Sets the backrelationdefinition to the given Element in the first pass, so it can be accessed in
the second pass.
|
void |
processBackRelationDef2()
Defines the backrelation for this
CBOAttribute. |
void |
psetValue(java.lang.Object bo,
java.lang.Object value)
Sets the given value to the provided business object (bo) using this
CBOAttribute's AttributeAccessor. |
void |
removeRelationObject(java.lang.Object bo,
java.lang.Object removeIt)
Removes the given
Object as a relational Object from the provided business object (bo). |
void |
removeRelationObject(java.lang.Object bo,
java.lang.Object removeIt,
WriteConstraintsOverriderI overrider)
Removes the given
Object as a relational Object from the provided business object (bo). |
void |
replaceRelationObject(java.lang.Object bo,
java.lang.Object newObject) |
void |
setAggregateFunction(java.lang.String $94) |
void |
setAggregateIgnoreDeleted(boolean $97) |
void |
setAggregateOf(java.lang.String $96) |
void |
setAggregateParameters(java.lang.String $95) |
void |
setAnalyzedForFTS(java.lang.Boolean $102) |
void |
setAutotrim(boolean $86) |
void |
setBackAttribute(AttributeI $78) |
void |
setBackName(java.lang.String $56) |
void |
setBackRelationDef(electric.xml.Element $79) |
void |
setComment(java.lang.String $100) |
void |
setCopyPolicy(int newCopyPolicy)
Sets the copy policy for this
CBOAttribute |
void |
setCreateInDetailView(boolean $81) |
void |
setCustomIterator(boolean $69) |
void |
setCustomIteratorNotCaching(boolean $70) |
void |
setDef(java.lang.String $62) |
void |
setDepend(boolean $71) |
void |
setDisplayFormat(java.lang.String $60) |
void |
setEditable(boolean b) |
void |
setEditmode(int newEditmode)
Sets the edit mode for this
CBOAttribute |
void |
setEl(electric.xml.Element $54) |
void |
setEntity(EntityI $55) |
void |
setExpectedWidth(int $84) |
void |
setExplicitSingular(java.lang.String $57) |
void |
setFTSAnalyzer(java.lang.String $103) |
void |
setFTSBoost(java.lang.Float $104) |
void |
setGuiTips(java.util.Map<java.lang.String,java.lang.String> $83) |
void |
setIgnoreBackRelation(boolean $76) |
void |
setImplicitedBackRelation(boolean $80) |
void |
setIndexedForFTS(java.lang.Boolean $101) |
void |
setIndexType(int v)
Sets the index type for this
CBOAttribute |
void |
setIndexType(java.lang.String v)
sets index type from
CBOAttributeTypeI for the
given type String |
void |
setInitialdata(boolean $98) |
void |
setItemProperty(java.lang.String $82) |
void |
setLazy(boolean $67) |
void |
setLazyExp(boolean $68) |
void |
setMandatory(boolean newMandatory)
Sets the mandatory of the
CBOAttribute |
void |
setManyRelation(boolean $73) |
void |
setModulePackages(java.util.LinkedHashSet<java.lang.String> $59) |
void |
setName(java.lang.String s) |
void |
setOmitOnCopy(boolean $63) |
void |
setReadonly(int newReadonly) |
void |
setRelation(boolean $72) |
void |
setRelationBack(boolean $77) |
void |
setRelationDiscriminator(int $99) |
void |
setRelationEntity(EntityI $75) |
void |
setRelationType(java.lang.String $74) |
void |
setReportAlias(java.lang.String $93) |
void |
setReportManySort(java.lang.String $92) |
void |
setReportPosition(java.lang.Integer $90) |
void |
setReportRelativeWidth(int $89) |
void |
setReportSort(java.lang.String $91) |
void |
setReportVisible(boolean $88) |
void |
setSelectionFilter(java.lang.String $85) |
void |
setShared(boolean $61) |
void |
setSingular(java.lang.String $58) |
void |
setSqlName(java.lang.String s) |
void |
setTimeZoneProperty(java.lang.String $87) |
void |
setType(CBOAttributeTypeI $65) |
void |
setTypeName(java.lang.String $64) |
void |
setValue(java.lang.Object bo,
java.lang.Object value)
Sets the given value to the provided business object (bo) using this
CBOAttribute's AttributeAccessor. |
void |
setValue(java.lang.Object bo,
java.lang.Object value,
WriteConstraintsOverriderI overrider)
Sets the given value to the provided business object (bo) using this
CBOAttribute's AttributeAccessor. |
void |
setValueAsString(java.lang.Object bo,
java.lang.String value)
Sets the given value as a
String in this attribute of the provided business object. |
void |
setValueAsString(java.lang.Object bo,
java.lang.String value,
boolean checkConstraints)
Sets the given value as a
String in this attribute of the provided business object. |
void |
setVarname(java.lang.String $66) |
void |
setVisible(boolean b) |
java.lang.String |
toString()
Returns a
String with a key-value-pairing of the private and
indirect properties of the CBOAttribute
i.e.: ['name=value''backName=value''singular=value'] |
static java.lang.String |
var2name(java.lang.String v)
Static method for converting a variable name back to an attribute name
|
void |
warn(electric.xml.Element e,
java.lang.String msg)
Logs the given
String msg as warning with the
messageprefix for the given Element _el |
void |
warn(java.lang.String msg)
Logs the given
String msg as warning with the
messageprefix for this CBOAttributes Element el
Convenience method warn(e = Element, msg = String) |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContainingElementName, getQName, getQName, isCoreNative, isModuleNative, isPartOfModule, isProjectNative, isServerCalculated, toAttributePath, toNiceStringgetClazz, isArraypublic CBOAttribute(EntityI _entity, AttributeTemplate template)
CBOAttribute_enity - the entity for which this attribute is built. Uses the entity schema and sets a reference for later use.template - the template from which this CBOAttribute should be created.
The template supports a subset of the XML nodes and attributes the CBOAttribute supports, so we can use this as a basis.public CBOAttribute(EntityI _entity, electric.xml.Element _el)
CBOAttribute_entity - the Entity to get the Schema for getting the AttributeTypes for_el - the Element to copy Attributes and Elements frompublic static java.lang.String var2name(java.lang.String v)
v - the variable name to convert back to an attribute namegetVar()public void forgetXMLDefinition()
public static void includeTypeDefinition(CBOAttributeTypeI t, electric.xml.Element into)
Elements, definated in the given CBOAttributeTypeI,
into the given Element, by using the copyto-method.
works recursivly on the base of the CBOAttributeTypeI as long
as such one exist, so Elements definated in the base will be copied tot - the CBOAttributeTypeI to copy the definated Elements frominto - the Element to copy the definated Elements from t topublic static void copyTo(electric.xml.Element src,
electric.xml.Element dest)
Elements from Element "src"
to Element "dest", works recursivly over the copied Elements
too, so copied Elements will have their AttributeObjects and Elements
copied too (and so on)src - the source Element to copy fromdest - the destination Element to copy frompublic void processBackRelationDef1(electric.xml.Element e)
e - the Element to set as backRelationjava.lang.IllegalArgumentException - if no relationType is set for this CBOAttributepublic void parseElementComment(electric.xml.Element e)
public java.util.Collection<java.lang.String> getOrCreateModulePackagesSet()
getOrCreateModulePackagesSet in interface AttributeIpublic void checkValidName()
throws AttributeDefinitionException
This method performs two types of checks:
SchemaI.checkSyntacticallyValid(Element, String, String).
AttributeDefinitionException - If the attribute name fails any of the validation checks.public java.lang.String getVar()
CBOAttribute with the first character converted to lowercasegetVar in interface CBOAttributeICBOAttribute with the first character converted to lowercasepublic void setSqlName(java.lang.String s)
public java.lang.String getSqlName()
CBOAttribute, if the sqlname is empty
the singular of this CBOAttribute will be returned in lowercaseCBOAttributepublic java.lang.String getSqlManyTable()
java.lang.IllegalArgumentException - if this CBOAttribute has no relation or the relationtype is not 'n-m'public SchemaI getSchema()
This method retrieves the schema by first ensuring that the attribute is linked to an entity. It then delegates the call to the associated entity's getSchema() method.
getSchema in interface AttributeISchemaI instance that defines this attribute.java.lang.IllegalStateException - If this attribute hasn't been linked to an entity yet
(meaning its internal entity reference would return null).public java.lang.String getEntityName()
This method retrieves the name by first ensuring the attribute is linked to an entity. It then delegates the call to the associated entity's getName() method.
getEntityName in interface AttributeIjava.lang.IllegalStateException - If this attribute hasn't been linked to an entity yet
(meaning its internal entity reference would return null).public java.lang.String getContainingElementPackage()
getContainingElementPackage in interface BasicAttributeIpublic 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 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 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 void setName(java.lang.String s)
public javax.swing.text.DocumentFilter getFilter(java.util.ArrayList inputFormats)
inputFormats - the input formats for the DocumentFilterpublic java.lang.String getDef()
public boolean isIgnoreBackRelation()
CBOAttribute ignores the back relation.isIgnoreBackRelation in interface AttributeICBOAttribute explicitly ignores the back relation or
if relationEntity and entity are not null and isPersistent() of relationEntity and entity are different,
false otherwise.public void setReadonly(int newReadonly)
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 boolean isVirtual()
CBOAttribute is virtual.isVirtual in interface BasicAttributeICBOAttribute is a virtual attribute, else false, if not an aggregate.public boolean isSerialized()
CBOAttribute shall be serializedisSerialized in interface AttributeICBOAttribute shall be serializedpublic boolean isPersistent()
CBOAttribute is persistent.
If the entity of this CBOAttribute is non-persistent but has a subentity which is persistent,
the attribute is actually persistent and true is returned as well.
If the attribute is a relation and the relation entity is non-persistent and has no subentity which is persistent,
the attribute is non-persistent and false will be returned.isPersistent in interface AttributeICBOAttribute is persistentpublic boolean isLinkOnly()
CBOAttribute is link only
(or view only, because AttributeI.EDITMODE_VIEWONLY implements AttributeI.EDITMODE_LINKONLY)isLinkOnly in interface AttributeICBOAttribute is link onlypublic boolean isViewOnly()
CBOAttribute is view onlyisViewOnly in interface AttributeICBOAttribute is view onlypublic int getEditmode()
CBOAttribute
if the edit mode is undefined, and a relation entity of this
CBOAttribute exists and is link only and this
CBOAttribute is not depending, the editmode will
be set to link only Before getting returnedgetEditmode in interface AttributeWithUIConfigurationICBOAttributepublic void setEditmode(int newEditmode)
CBOAttributesetEditmode in interface AttributeWithUIConfigurationInewEditmode - the edit mode to setpublic java.lang.Boolean getMandatory()
CBOAttribute is mandatoryCBOAttribute is mandatorypublic 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 checkMandatoryValid(boolean mandatoryToCheck)
CBOAttribute makes sense.
I.e.: if the attribute is null and set to readonly or not editable, mandatory makes no sense.
Or: Not visible in GUI - mandatory is meaningless!CBOAttribute is mandatory.public boolean checkMandatoryValid(boolean mandatoryToCheck,
BOI bo)
public void setMandatory(boolean newMandatory)
CBOAttributesetMandatory in interface AttributeWithUIConfigurationInewMandatory - the mandatory to set on the CBOAttributepublic java.lang.String getGuiTip()
CBOAttribute as a key:value-paired String
If the value is null or empty only the key will be used instead of the pairing
IMPORTANT: for backwards compatibility with old guiTip-String, esp. for EquinoxCBOAttribute as a key:value-paired Stringpublic boolean hasGuiTip(java.lang.String tip)
CBOAttribute has a gui tip for the given tip key,
returns false if guiTips is nullhasGuiTip in interface AttributeItip - the key to checktrue if a gui tip with the given key existpublic java.lang.String getGuiTip(java.lang.String tip)
null if guiTips is nullgetGuiTip in interface AttributeItip - the key to get gui tip forStringpublic int getGuiTipAsInt(java.lang.String tip)
intgetGuiTipAsInt in interface AttributeItip - the key to get gui tip forintIRuntimeException - if the tip couldnt be returned as intpublic AttributeTemplate getFromTemplate()
public void setVisible(boolean b)
setVisible in interface AttributeWithUIConfigurationIpublic boolean isVisible()
CBOAttribute instance is visible in the UI.
Defaults to true if no explicit value is set.isVisible in interface AttributeIisVisible in interface AttributeWithUIConfigurationICBOAttribute instance is visible in the UI or no explicit value is set.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 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 boolean hasCustomIterator()
BasicAttributeIhasCustomIterator in interface BasicAttributeIpublic java.lang.String getSelectionFilter()
AttributeIgetSelectionFilter in interface AttributeIgetSelectionFilter in interface AttributeWithUIConfigurationIAttributeIpublic java.lang.String getLookupProperty()
getLookupProperty in interface AttributeICBOAttributepublic java.lang.Boolean getLookupSubstring()
getLookupSubstring in interface AttributeICBOAttribute is also treating a substring only match for the lookup property as a matchpublic java.lang.Boolean getLookupStartingWith()
getLookupStartingWith in interface AttributeICBOAttribute requires the lookup property to start with the entered "fast input"public java.lang.Boolean getLookupCaseSensitive()
getLookupCaseSensitive in interface AttributeICBOAttribute compares the lookup property case-sensitive with the entered "fast input"public 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 boolean isAggregate()
CBOAttribute has an aggregate functionCBOAttribute has an aggregate functionpublic int getCacheMode()
CBOAttributeCBOAttributepublic boolean isCached()
CBOAttribute is not AttributeI.CACHEMODE_NONEisCached in interface AttributeItrue if the cache mode of this CBOAttribute is not AttributeI.CACHEMODE_NONEpublic java.lang.String getPreCachingHook()
CBOAttribute
I.e. the name of a method to apply to a cached scalar value before it is cached.
That method is typically implemented in the class of the entity that defines this vattr
(alternatively, relatively far "up" if it is to be used several times in the schema, e.g. in the TBO class).
The method signature of that method must accept two parameters:
first the attribute name and second the value to be cached in the correct schema-defined type.
The method must also return that type.
That way, to be cached values can be prepared, e.g. slim, convert a BigDecimal to a CompactBigDecimal, etc.CBOAttribute as Stringpublic 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 int getIndexType()
CBOAttribute
if type is INDEX_TYPE_AUTO the index type will be resolved by
checking the lowinstancecount of a relation if existsCBOAttributepublic void setIndexType(java.lang.String v)
CBOAttributeTypeI for the
given type Stringv - the index type to get from CBOAttributeTypeIjava.lang.IllegalArgumentException - if the index type coulndt be resolved from CBOAttributeTypeIpublic void setIndexType(int v)
CBOAttributev - the index type to setpublic boolean isIndexed()
CBOAttribute has an index type which isnt
CBOAttributeTypeI.INDEX_TYPE_NONEisIndexed in interface AttributeICBOAttribute isnt CBOAttributeTypeI.INDEX_TYPE_NONEpublic boolean isPrimary()
CBOAttribute represents the primary key.CBOAttribute represents the primary keypublic int getCustomIndexVersion()
public java.lang.String getCustomIndexDefinition()
public boolean isUnique()
CBOAttribute is unique. If unique is not set, this method looks
on the unique flag of the type of this CBOAttribute.CBOAttribute or his type is uniquepublic int getCopyPolicy()
CBOAttributegetCopyPolicy in interface AttributeICBOAttributepublic void setCopyPolicy(int newCopyPolicy)
CBOAttributenewCopyPolicy - the policy to setpublic boolean isPolymorphicRelation()
CBOAttribute is polymorphicisPolymorphicRelation in interface AttributeItrue if this CBOAttribute has an relation and the relationEntity has subentitiespublic final java.lang.Object getValue(java.lang.Object o)
getValue in interface AttributeIbo - the bo to get the value fromObjectIRuntimeException - when getting value from the bo failspublic final java.lang.Object getValueLazy(java.lang.Object o)
getValueLazy in interface AttributeIbo - the bo to get the value fromObjectIRuntimeException - when getting value from the bo failspublic final java.lang.Object pgetValue(java.lang.Object bo)
pgetValue in interface AttributeIbo - the bo to get the value fromObjectIRuntimeException - when getting value from the bo failspublic java.lang.String getValueAsString(java.lang.Object bo)
getValueAsString in interface AttributeIbo - the bo to get the value fromStringIRuntimeException - if: bo is a many relation but not a Map
the describe() method for the given bo couldnt be foundpublic final void setValue(java.lang.Object bo,
java.lang.Object value)
CBOAttribute's AttributeAccessor.setValue in interface AttributeIbo - The business object to set the value for.value - The value to set for the given business object.IRuntimeException - If the business object is read-only or if the value couldn't be set for the business object.public final void setValue(java.lang.Object bo,
java.lang.Object value,
WriteConstraintsOverriderI overrider)
CBOAttribute's AttributeAccessor.setValue in interface AttributeIbo - The business object to set the value for.value - The value to set for the given business object.overrider - If non-null, the passed WriteConstraintsOverriderI will be asked if the change shall be applied regardless of constraints.IRuntimeException - If the business object is read-only and constraints need to be checked,
or if the value couldn't be set for the business object.public final void psetValue(java.lang.Object bo,
java.lang.Object value)
CBOAttribute's AttributeAccessor.
This method performs no checks for read-only state or casting the value to the destination type.psetValue in interface AttributeIbo - The business object to set the value for.value - The value to set for the given business object.IRuntimeException - If the value couldn't be set for the business object.public void setValueAsString(java.lang.Object bo,
java.lang.String value)
String in this attribute of the provided business object.
This method performs checks if the given value adheres to the constraints of the type of this attribute.setValueAsString in interface AttributeIbo - The business object to set the given value in.value - The value to set as a String.public void setValueAsString(java.lang.Object bo,
java.lang.String value,
boolean checkConstraints)
String in this attribute of the provided business object.setValueAsString in interface AttributeIbo - The business object to set the given value in.value - The value to set as a String.checkConstraints - If true, we check if the given value adheres to the constraints of the type of this attribute.public java.util.Map getRelationObjects(java.lang.Object bo)
TreeMapgetRelationObjects in interface AttributeIbo - the bo to get the relational objects fromTreeMapIRuntimeException - if the relational objects for the given bo couldnt be retrieved by the AttributeAccessorpublic java.util.Iterator getRelationIterator(java.lang.Object bo)
getRelationIterator in interface AttributeIbo - the bo to get the relational iterator fromIRuntimeException - if the iterator fpr the given bo could not be retrieved by the AttributeAccessorpublic void addRelationObject(java.lang.Object bo,
java.lang.Object newObject)
Object as a relational Object to the provided business object (bo).addRelationObject in interface AttributeIbo - The business object to add the relational Object to.newObject - The Object to add as a relational Object.IRuntimeException - If:
- This CBOAttribute is not a many relation.
- The given business object is read-only.
- The given Object couldn't be added by the AttributeAccessor.public void addRelationObject(java.lang.Object bo,
java.lang.Object newObject,
WriteConstraintsOverriderI overrider)
Object as a relational Object to the provided business object (bo).addRelationObject in interface AttributeIbo - The business object to add the relational Object to.newObject - The Object to add as a relational Object.overrider - If non-null, the passed WriteConstraintsOverriderI will be asked if the change shall be applied regardless of constraints.IRuntimeException - If:
- This CBOAttribute is not a many relation.
- The given business object is read-only.
- The given Object couldn't be added by the AttributeAccessor.public void replaceRelationObject(java.lang.Object bo,
java.lang.Object newObject)
public void removeRelationObject(java.lang.Object bo,
java.lang.Object removeIt)
Object as a relational Object from the provided business object (bo).removeRelationObject in interface AttributeIbo - The business object to remove the relational Object from.removeIt - The Object to remove as a relational Object.IRuntimeException - If:
- This CBOAttribute is not a many relation.
- The given business object is read-only.
- The given Object couldn't be removed by the AttributeAccessor.public void removeRelationObject(java.lang.Object bo,
java.lang.Object removeIt,
WriteConstraintsOverriderI overrider)
Object as a relational Object from the provided business object (bo).removeRelationObject in interface AttributeIbo - The business object to remove the relational Object from.removeIt - The Object to remove as a relational Object.overrider - If non-null, the passed WriteConstraintsOverriderI will be asked if the change shall be applied regardless of constraints.IRuntimeException - If:
- This CBOAttribute is not a many relation.
- The given business object is read-only.
- The given Object couldn't be removed by the AttributeAccessor.public boolean hasRelationObject(java.lang.Object bo,
java.lang.Object hasMe)
Object hasmehasRelationObject in interface AttributeIbo - the bo to check if it contains a relation to the given Object hasmehasMe - the Object to check for existing as relation in the given botrue if the given bo has a relation to the given Object hasmepublic void clearRelation(java.lang.Object bo)
Objects from the given bobo - the bo to remove all relational Objects fromIRuntimeException - if the attribute is no many relation or is readonly and cancelCheckConstrains() for is falsepublic void buildPass2()
AttributeDefinitionException - if theres no entity with the typename of this CBOAttribute in the schema.public void processBackRelationDef2()
CBOAttribute.
Processes the backRelationDef set in the first pass and does some sanity checks.
If these checks are successful, then the backrelation-attribute to this entity is constructed.
Checks include:
- unknown attribute definitions, only name, singular, dependent, itemProperty, omitOnCopy is allowed.
- invalid relationtype definition, only one of 1-n, n-1, n-m is allowed.
-java.lang.IllegalArgumentException - if the Document to read the backRelationDefinition from could be find/parsed/...AttributeDefinitionException - if there was unknown attributes or relationtypes in the backrelation, or the typename is unknown in the schema of this CBOAttribute entitypublic void checkSingularAbsenceForNTo1()
throws AttributeDefinitionException
AttributeDefinitionException - if relationType is 'n-1' and explicitSingular is not ''public void checkItemProperty()
throws AttributeDefinitionException
AttributeDefinitionException - if the itemProperty is an invalid attribute-chain on relationEntity.public void checkRelationDiscriminatorConsistency()
throws AttributeDefinitionException
AttributeDefinitionException - if they are explicitly set to different valuespublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable<java.lang.Object>o - the object to comparepublic java.lang.String toString()
String with a key-value-pairing of the private and
indirect properties of the CBOAttribute
i.e.: ['name=value''backName=value''singular=value']toString in class java.lang.ObjectStringpublic java.lang.String getTypedQName()
String containing the entity name, the name of the attribute, and its type or
relation information.
If the attribute is a relation, the returned String will be concatenated with the relation type; otherwise, it will be
concatenated with the type name.getTypedQName in interface AttributeIString containing the entity name, the name of the attribute, and its type or relation information.public java.lang.String getTypedQName(BOI bo)
String containing the entity name or a concise description of the given BOI,
the name of the attribute, and its type or relation information.
If a concrete BOI instance is given, its concise description will be used as a prefix; otherwise, the entity name
will be used as the prefix. If the entity of this attribute is null, the String 'no entity' will be prefixed.
If the attribute is a relation, the returned String will be concatenated with the relation type; otherwise, it will be
concatenated with the type name.getTypedQName in interface AttributeIbo - A concrete BOI instance to be included in the description.String containing the entity name or a concise description of the given BOI,
the name of the attribute, and its type or relation information.public java.lang.String getVersionRelevantDescription()
CBOAttribute containing the name and the relationtype,
will contains relevant details like: dependent, linkOnly, viewOnly, virtual, ... tooCBOAttribute containing relevant informationspublic java.lang.String errorMessageWithLine()
public void info(java.lang.String msg)
String msg as information with the
messageprefix for this CBOAttributes Element el
Convenience method info(e = Element, msg = String)msg - the message to use for loggingpublic void info(electric.xml.Element e,
java.lang.String msg)
String msg as information with the
messageprefix for the given Element _elmsg - the message to use for loggingpublic void warn(java.lang.String msg)
String msg as warning with the
messageprefix for this CBOAttributes Element el
Convenience method warn(e = Element, msg = String)msg - the message to use for loggingpublic void warn(electric.xml.Element e,
java.lang.String msg)
String msg as warning with the
messageprefix for the given Element _elmsg - the message to use for loggingpublic 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 electric.xml.Element getEl()
L10nPathCompilerI specifically designed to compile
localization paths for CBOAttribute objects.
This compiler integrates attribute-specific information, particularly its associated entity, into the localization lookup path. This allows for more precise and context-aware resolution of localized strings related to BO attributes.
public void setEl(electric.xml.Element $54)
public EntityI getEntity()
AttributeIThis 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.
getEntity in interface AttributeIEntityI object that owns this attribute.public void setEntity(EntityI $55)
public java.lang.String getName()
getName in interface BasicAttributeIpublic java.lang.String getBackName()
public void setBackName(java.lang.String $56)
public java.lang.String getExplicitSingular()
public void setExplicitSingular(java.lang.String $57)
public java.lang.String getSingular()
getSingular in interface BasicAttributeIpublic void setSingular(java.lang.String $58)
public java.util.LinkedHashSet<java.lang.String> getModulePackages()
AttributeIAttributeI is appearing in.getModulePackages in interface AttributeIAttributeI is appearing in.public void setModulePackages(java.util.LinkedHashSet<java.lang.String> $59)
public java.lang.String getDisplayFormat()
public void setDisplayFormat(java.lang.String $60)
public boolean isShared()
isShared in interface AttributeIpublic void setShared(boolean $61)
public void setDef(java.lang.String $62)
public boolean isOmitOnCopy()
isOmitOnCopy in interface AttributeIpublic void setOmitOnCopy(boolean $63)
public 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 void setTypeName(java.lang.String $64)
public CBOAttributeTypeI getType()
getType in interface BasicAttributeIpublic void setType(CBOAttributeTypeI $65)
public java.lang.String getVarname()
public void setVarname(java.lang.String $66)
public boolean isLazy()
isLazy in interface AttributeIpublic void setLazy(boolean $67)
public boolean isLazyExp()
public void setLazyExp(boolean $68)
public boolean isCustomIterator()
public void setCustomIterator(boolean $69)
public 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 void setCustomIteratorNotCaching(boolean $70)
public boolean isDepend()
isDepend in interface AttributeIpublic void setDepend(boolean $71)
public boolean isRelation()
isRelation in interface BasicAttributeIpublic void setRelation(boolean $72)
public boolean isManyRelation()
isManyRelation in interface BasicAttributeIpublic void setManyRelation(boolean $73)
public 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 void setRelationType(java.lang.String $74)
public EntityI getRelationEntity()
getRelationEntity in interface BasicAttributeIpublic void setRelationEntity(EntityI $75)
public void setIgnoreBackRelation(boolean $76)
public boolean isRelationBack()
public void setRelationBack(boolean $77)
public AttributeI getBackAttribute()
getBackAttribute in interface AttributeIpublic void setBackAttribute(AttributeI $78)
public electric.xml.Element getBackRelationDef()
public void setBackRelationDef(electric.xml.Element $79)
public boolean isImplicitedBackRelation()
public void setImplicitedBackRelation(boolean $80)
public boolean isCreateInDetailView()
isCreateInDetailView in interface AttributeIisCreateInDetailView in interface AttributeWithUIConfigurationIpublic void setCreateInDetailView(boolean $81)
setCreateInDetailView in interface AttributeWithUIConfigurationIpublic java.lang.String getItemProperty()
getItemProperty in interface AttributeIgetItemProperty in interface AttributeWithUIConfigurationIpublic void setItemProperty(java.lang.String $82)
setItemProperty in interface AttributeWithUIConfigurationIpublic java.util.Map<java.lang.String,java.lang.String> getGuiTips()
getGuiTips in interface AttributeIgetGuiTips in interface AttributeWithUIConfigurationIpublic void setGuiTips(java.util.Map<java.lang.String,java.lang.String> $83)
setGuiTips in interface AttributeWithUIConfigurationIpublic int getExpectedWidth()
getExpectedWidth in interface AttributeIgetExpectedWidth in interface AttributeWithUIConfigurationIpublic void setExpectedWidth(int $84)
setExpectedWidth in interface AttributeWithUIConfigurationIpublic void setSelectionFilter(java.lang.String $85)
setSelectionFilter in interface AttributeWithUIConfigurationIpublic boolean isAutotrim()
isAutotrim in interface AttributeIisAutotrim in interface AttributeWithUIConfigurationIpublic void setAutotrim(boolean $86)
setAutotrim in interface AttributeWithUIConfigurationIpublic java.lang.String getTimeZoneProperty()
getTimeZoneProperty in interface AttributeIgetTimeZoneProperty in interface AttributeWithUIConfigurationIpublic void setTimeZoneProperty(java.lang.String $87)
setTimeZoneProperty in interface AttributeWithUIConfigurationIpublic boolean isReportVisible()
isReportVisible in interface AttributeIpublic void setReportVisible(boolean $88)
public int getReportRelativeWidth()
AttributeIThis works also for attributes of entities extending other entities and adding attributes with their own relativeWiths.
getReportRelativeWidth in interface AttributeIpublic void setReportRelativeWidth(int $89)
public 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 void setReportPosition(java.lang.Integer $90)
public java.lang.String getReportSort()
getReportSort in interface AttributeIpublic void setReportSort(java.lang.String $91)
public java.lang.String getReportManySort()
getReportManySort in interface AttributeIpublic void setReportManySort(java.lang.String $92)
public java.lang.String getReportAlias()
AttributeIFIXME: support more than one many-relation in automatic reports
getReportAlias in interface AttributeIpublic void setReportAlias(java.lang.String $93)
public java.lang.String getAggregateFunction()
public void setAggregateFunction(java.lang.String $94)
public java.lang.String getAggregateParameters()
public void setAggregateParameters(java.lang.String $95)
public java.lang.String getAggregateOf()
public void setAggregateOf(java.lang.String $96)
public boolean isAggregateIgnoreDeleted()
public void setAggregateIgnoreDeleted(boolean $97)
public boolean isInitialdata()
isInitialdata in interface AttributeIpublic void setInitialdata(boolean $98)
public int getRelationDiscriminator()
public void setRelationDiscriminator(int $99)
public java.lang.String getComment()
getComment in interface BasicAttributeIpublic void setComment(java.lang.String $100)
public java.lang.Boolean getIndexedForFTS()
getIndexedForFTS in interface AttributeIpublic void setIndexedForFTS(java.lang.Boolean $101)
public java.lang.Boolean getAnalyzedForFTS()
getAnalyzedForFTS in interface AttributeIpublic void setAnalyzedForFTS(java.lang.Boolean $102)
public java.lang.String getFTSAnalyzer()
getFTSAnalyzer in interface AttributeIpublic void setFTSAnalyzer(java.lang.String $103)
public java.lang.Float getFTSBoost()
getFTSBoost in interface AttributeIpublic void setFTSBoost(java.lang.Float $104)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.