public class VirtualEntity extends InstrumentingEntity
InstrumentingBO.
Virtual Entities exist as long as its containing InstrumentingSchema exists and aren't shared between different Schema instances.
As with other entities, the singular name needs to be unique in the containing Schema.
Virtual Entities of Virtual Entities are possible.EntityI.EntityMatcher, EntityI.NonPersistentEdgeFilterARRAY_RELATION_POSTIFXATT_NAME_ABSTRACT, ATT_NAME_CODE_CUSTOM, ATT_NAME_CODE_DEPENDENTS, ATT_NAME_CODE_GENERATE, ATT_NAME_CODE_GENERATE_AS, ATT_NAME_CODE_PACKAGE, ATT_NAME_DB_FORBID_DIRECT_CHANGES, ATT_NAME_DB_LOW_INSTANCE_COUNT, ATT_NAME_DB_NAME, ATT_NAME_DB_NO_STREAM_RESOURCE_HISTORY, ATT_NAME_DB_PERSISTENT, ATT_NAME_DB_STREAM_RESOURCE, ATT_NAME_DISCRIMINATOR, ATT_NAME_EXPORT_MODE, ATT_NAME_EXPORT_NAME, ATT_NAME_EXPORT_PRIMARY_KEY, ATT_NAME_EXTENDS, ATT_NAME_FOLDER, ATT_NAME_FULLTEXT_BOOST, ATT_NAME_FULLTEXT_INDEXED, ATT_NAME_GDPR_DATA_CATEGORY, ATT_NAME_GDPR_RETENTION_START_DATE_PATH, ATT_NAME_IGNORE_REVERSE_RELATIONS, ATT_NAME_IMPLEMENTS_NAME, ATT_NAME_LOOKUP_DEFAULT_CASE_SENSITIVE, ATT_NAME_LOOKUP_DEFAULT_PROPERTY, ATT_NAME_LOOKUP_DEFAULT_SUBSTRING, ATT_NAME_MERGE, ATT_NAME_NAME, ATT_NAME_NO_ABSTRACT_WARNING, ATT_NAME_PACKAGE, ATT_NAME_PLURAL, ATT_NAME_REPORT_FONT_SIZE_BIG, ATT_NAME_REPORT_FONT_SIZE_NORMAL, ATT_NAME_REPORT_ORIENTATION, ATT_NAME_REPORT_TITLE, ATT_NAME_SUID, ATT_NAME_UI_DEFAULT_SELECTION_FILTER, ATT_NAME_UI_DEFAULT_SORTING, ATT_NAME_UI_DESCRIPTION, ATT_NAME_UI_LINK_ONLY, ATT_NAME_UI_LOAD_IMMEDIATE, ATT_NAME_UI_TIPS, DEFAULT_GENERATE_AS_SUFFIX, DEFAULT_SORTING_ASC, DEFAULT_SORTING_DESC, DEPENDENTS_SEPARATOR_CHAR, EL_NAME_ACTION, EL_NAME_ATTR, EL_NAME_CODE, EL_NAME_COMMENT, EL_NAME_DB, EL_NAME_EXPORT, EL_NAME_FULLTEXT, EL_NAME_GDPR, EL_NAME_IMPLEMENTS, EL_NAME_LOOKUP, EL_NAME_NPATTR, EL_NAME_REPORT, EL_NAME_UI, EL_NAME_VATTR, EMPTY_ARRAY, EXPORT_MODE_IF_REFERENCED, EXPORT_MODE_LIST, EXPORT_MODE_NEVER, EXPORT_MODE_SINGLE, GENERATE_AS_DELIMITER_CHAR, PREFIX_L10N_KEY, RESERVED_TABLE_NAMES, SUFFIX_L10N_PLURAL_KEY$01| Modifier and Type | Method and Description |
|---|---|
java.util.List<AttributeI> |
getAttributeList()
Returns a List with the AttributeI-s added by/defined exactly on this
CBOEntity. |
InstrumentingEntity |
getBaseEntity() |
java.util.List<java.lang.String> |
getDependentClasses() |
java.lang.String |
getL10nName()
Returns the localized singular name of this entity.
|
java.lang.String |
getL10nName(boolean returnKeyWhenNotFound)
Returns the localized singular name of this entity, with configurable fallback behavior.
|
java.lang.String |
getL10nNameKey()
Returns the localization key for the singular name of this entity.
|
java.lang.String |
getL10nNameVar()
Returns a localizable String variable reference for the singular name of this entity.
|
java.lang.String |
getL10nPlural()
Returns the localized plural name of this entity.
|
java.lang.String |
getL10nPlural(boolean returnKeyWhenNotFound)
Returns the localized plural name of this entity, with configurable fallback behavior.
|
java.lang.String |
getL10nPluralKey()
Returns the localization key for the plural name of this entity.
|
java.lang.String |
getL10nPluralVar()
Returns a localizable String variable reference for the plural name of this entity.
|
java.lang.String |
getName()
Returns the name of this BasicEntityI instance.
|
java.lang.String |
getPlural() |
java.util.List<EntityI> |
getSubEntityList()
return a List of EntityI containing every EntityI that has this StructuredEntityI as
StructuredEntityI.getBaseEntity(). |
boolean |
hasSubEntities() |
boolean |
isCustom() |
boolean |
isSubEntityOf(StructuredEntityI possibleSuperEntity)
Returns
true if we are a subentity of the given EntityI or that StructuredEntityI ourself. |
static VirtualEntity |
of(InstrumentingSchemaI schema,
InstrumentingEntity extendsEntity,
java.lang.String name) |
void |
setDiscriminator(java.lang.Long id)
Sets the Discriminator (i.e. the BOT Id) for this
EntityI |
java.lang.String |
toString() |
addAttribute, flushCaches, getImplementedSchemaInterfaces, getImplementedSchemaInterfaces, getInstance, getSchema, getSingleAttributeaddRelationObject, compareTo, getActionList, getClassesUpToPreviousEntity, getClazz, getCustomClassInModulesOrProject, getDefaultLookupCaseSensitive, getDefaultLookupProperty, getDefaultLookupStartingWith, getDefaultLookupSubstring, getDefaultSelectionFilter, getDefaultSortDirection, getDefaultSorting, getDefaultSortLevel, getDescription, getDiscriminator, getExport, getExport, getExports, getExports, getFolderName, getFQName, getFTSBoost, getGDPRPolicy, getGuiTip, getGuiTip, getGuiTipAsInt, getGuiTipAsInt, getIndexedForFTS, getLinkOnly, getModulePackages, getOrCreateCustomClassInModulesOrProjectSet, getOrCreateModulePackagesSet, getPackage, getPackageAsPath, getPersistenceAspectClass, getRelationObjects, getReportFontSizeBig, getReportFontSizeNormal, getReportOrientation, getReportTitle, getValue, getValueAsString, hasGuiTip, hasGuiTip, hasRelationObject, isForbidDirectChanges, isLinkOnly, isLoadImmediate, isNoStreamResourceHistory, isPersistent, isStreamResource, isUserAbstract, newInstance, parametersToString, realEntity, removeRelationObject, setValue, setValueAsString, setValueAsString, unwrapequals, getClass, hashCode, notify, notifyAll, wait, wait, waitfindReachableAttrsWithType, findReachableAttrsWithType, getFromNodes, getIncomingEdges, getOutgoingEdges, getToNodes, getToolTipTextForAttribute, isCoreEntity, isCoreEntityClass, isCoreEntityPackageName, isCoreNative, isModuleNative, isPartOfModule, isProjectEntity, isProjectEntityClass, isProjectEntityPackageName, isProjectNative, toEntitiesfilterAttributes, getAllAttributeList, getAllAttributeList, getAllAttributeList, getAllAttributeListByType, getAllAttributeListByType, getAllAttributeListByType, getAllAttributeListByType, getAllAttributeListWithoutSubentities, getAllAttributeListWithoutSubentities, getAllCoreAttributeList, getAllModuleAttributeList, getAllProjectAttributeList, getAllSubEntityList, getAllSubEntityList, getAllSubEntityList, getAttChain, getAttChain, getAttribute, getAttribute, getPersistentBaseEntity, hasPersistentSubentity, isEffectivelyPersistent, isImplicitlyPersistent, isSubEntityOfgetAttributeListByType, getAttributeListByType, getCurrentModuleOrProject, getRelations, isCustompublic static VirtualEntity of(InstrumentingSchemaI schema, InstrumentingEntity extendsEntity, java.lang.String name)
public InstrumentingEntity getBaseEntity()
getBaseEntity in interface StructuredEntityIgetBaseEntity in class InstrumentingEntityEntityI of this EntityIpublic java.lang.String getName()
BasicEntityIgetName in interface BasicEntityIgetName in class EntityWrapperpublic java.lang.String getPlural()
getPlural in interface BasicEntityIgetPlural in class EntityWrapperpublic java.lang.String getL10nNameKey()
EntityIEntityI.PREFIX_L10N_KEY to a canonicalized
version of the entity's name (obtained via L10n.stringToKey(getName())).getL10nNameKey in interface EntityIgetL10nNameKey in class EntityWrapperpublic java.lang.String getL10nNameVar()
EntityIEntityI.getL10nNameKey(). This format is typically used in UI or template systems
to dynamically load localized strings.getL10nNameVar in interface EntityIgetL10nNameVar in class EntityWrapperpublic java.lang.String getL10nName()
EntityIEntityI.getL10nName(boolean) with fallback enabled.getL10nName in interface EntityIgetL10nName in class EntityWrapperpublic java.lang.String getL10nName(boolean returnKeyWhenNotFound)
EntityIL10n.msg(String, Object[], Object[], boolean, String)
to retrieve the translation, passing this entity as a participant in the lookup path.getL10nName in interface EntityIgetL10nName in class EntityWrapperreturnKeyWhenNotFound - If true, the localization key will be returned if no matching translation is found.
If false, null is returned in that case.public java.lang.String getL10nPluralKey()
EntityIEntityI.PREFIX_L10N_KEY, a canonicalized version
of the entity's name, and EntityI.SUFFIX_L10N_PLURAL_KEY.getL10nPluralKey in interface EntityIgetL10nPluralKey in class EntityWrapperpublic java.lang.String getL10nPluralVar()
EntityIEntityI.getL10nPluralKey(). This format is typically used in UI or template systems
to dynamically load localized plural strings.getL10nPluralVar in interface EntityIgetL10nPluralVar in class EntityWrapperpublic java.lang.String getL10nPlural()
EntityIEntityI.getL10nPlural(boolean) with fallback enabled.getL10nPlural in interface EntityIgetL10nPlural in class EntityWrapperpublic java.lang.String getL10nPlural(boolean returnKeyWhenNotFound)
EntityIEntityI.PREFIX_L10N_KEY, getName(), and EntityI.SUFFIX_L10N_PLURAL_KEY)
and typically uses L10n.msg(String, Object[], Object[], boolean, String)
to retrieve the translation, passing this entity as a participant in the lookup path.getL10nPlural in interface EntityIgetL10nPlural in class EntityWrapperreturnKeyWhenNotFound - If true, the constructed localization key will be returned if no matching translation is found.
If false, null is returned in that case.public java.util.List<AttributeI> getAttributeList()
BasicEntityICBOEntity.
Excludes inherited Attributes.getAttributeList in interface BasicEntityIgetAttributeList in class InstrumentingEntityScriptedAttributepublic boolean isSubEntityOf(StructuredEntityI possibleSuperEntity)
StructuredEntityItrue if we are a subentity of the given EntityI or that StructuredEntityI ourself.isSubEntityOf in interface StructuredEntityIisSubEntityOf in class InstrumentingEntitypossibleSuperEntity - the EntityI to checktrue if we are a subentity of the given EntityI or that StructuredEntityI ourself.public java.util.List<EntityI> getSubEntityList()
StructuredEntityIStructuredEntityI.getBaseEntity().
Does not include this StructuredEntityI or transitive sub-EntityI-s.getSubEntityList in interface StructuredEntityIgetSubEntityList in class InstrumentingEntitypublic boolean hasSubEntities()
hasSubEntities in interface StructuredEntityIhasSubEntities in class InstrumentingEntitytrue if this EntityI has sub entitiespublic boolean isCustom()
isCustom in interface BasicEntityIisCustom in class EntityWrapperpublic java.util.List<java.lang.String> getDependentClasses()
getDependentClasses in interface EntityIgetDependentClasses in class EntityWrapperpublic void setDiscriminator(java.lang.Long id)
EntityIEntityIsetDiscriminator in interface EntityIsetDiscriminator in class EntityWrapperid - the id to set as discriminatorpublic java.lang.String toString()
toString in interface EntityItoString in class EntityWrapperString containing all information about the current EntityICopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.