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.NonPersistentEdgeFilter
ARRAY_RELATION_POSTIFX
ATT_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, getInstance, getSchema, getSingleAttribute
addRelationObject, 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, unwrap
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
findReachableAttrsWithType, findReachableAttrsWithType, getFromNodes, getIncomingEdges, getOutgoingEdges, getToNodes, getToolTipTextForAttribute, isCoreEntity, isCoreEntityClass, isCoreEntityPackageName, isCoreNative, isModuleNative, isPartOfModule, isProjectEntity, isProjectEntityClass, isProjectEntityPackageName, isProjectNative, toEntities
filterAttributes, getAllAttributeList, getAllAttributeList, getAllAttributeList, getAllAttributeListByType, getAllAttributeListByType, getAllAttributeListByType, getAllAttributeListByType, getAllAttributeListWithoutSubentities, getAllAttributeListWithoutSubentities, getAllCoreAttributeList, getAllModuleAttributeList, getAllProjectAttributeList, getAllSubEntityList, getAllSubEntityList, getAllSubEntityList, getAttChain, getAttChain, getAttribute, getAttribute, getPersistentBaseEntity, hasPersistentSubentity, isEffectivelyPersistent, isImplicitlyPersistent, isSubEntityOf
getAttributeListByType, getAttributeListByType, getCurrentModuleOrProject, getRelations, isCustom
public static VirtualEntity of(InstrumentingSchemaI schema, InstrumentingEntity extendsEntity, java.lang.String name)
public InstrumentingEntity getBaseEntity()
getBaseEntity
in interface StructuredEntityI
getBaseEntity
in class InstrumentingEntity
EntityI
of this EntityI
public java.lang.String getName()
BasicEntityI
getName
in interface BasicEntityI
getName
in class EntityWrapper
public java.lang.String getPlural()
getPlural
in interface BasicEntityI
getPlural
in class EntityWrapper
public java.lang.String getL10nNameKey()
EntityI
EntityI.PREFIX_L10N_KEY
to a canonicalized
version of the entity's name (obtained via L10n.stringToKey(getName())
).getL10nNameKey
in interface EntityI
getL10nNameKey
in class EntityWrapper
public java.lang.String getL10nNameVar()
EntityI
EntityI.getL10nNameKey()
. This format is typically used in UI or template systems
to dynamically load localized strings.getL10nNameVar
in interface EntityI
getL10nNameVar
in class EntityWrapper
public java.lang.String getL10nName()
EntityI
EntityI.getL10nName(boolean)
with fallback enabled.getL10nName
in interface EntityI
getL10nName
in class EntityWrapper
public java.lang.String getL10nName(boolean returnKeyWhenNotFound)
EntityI
L10n.msg(String, Object[], Object[], boolean, String)
to retrieve the translation, passing this entity as a participant in the lookup path.getL10nName
in interface EntityI
getL10nName
in class EntityWrapper
returnKeyWhenNotFound
- 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()
EntityI
EntityI.PREFIX_L10N_KEY
, a canonicalized version
of the entity's name, and EntityI.SUFFIX_L10N_PLURAL_KEY
.getL10nPluralKey
in interface EntityI
getL10nPluralKey
in class EntityWrapper
public java.lang.String getL10nPluralVar()
EntityI
EntityI.getL10nPluralKey()
. This format is typically used in UI or template systems
to dynamically load localized plural strings.getL10nPluralVar
in interface EntityI
getL10nPluralVar
in class EntityWrapper
public java.lang.String getL10nPlural()
EntityI
EntityI.getL10nPlural(boolean)
with fallback enabled.getL10nPlural
in interface EntityI
getL10nPlural
in class EntityWrapper
public java.lang.String getL10nPlural(boolean returnKeyWhenNotFound)
EntityI
EntityI.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 EntityI
getL10nPlural
in class EntityWrapper
returnKeyWhenNotFound
- 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()
BasicEntityI
CBOEntity
.
Excludes inherited Attributes.getAttributeList
in interface BasicEntityI
getAttributeList
in class InstrumentingEntity
ScriptedAttribute
public boolean isSubEntityOf(StructuredEntityI possibleSuperEntity)
StructuredEntityI
true
if we are a subentity of the given EntityI
or that StructuredEntityI ourself.isSubEntityOf
in interface StructuredEntityI
isSubEntityOf
in class InstrumentingEntity
possibleSuperEntity
- the EntityI to checktrue
if we are a subentity of the given EntityI
or that StructuredEntityI ourself.public java.util.List<EntityI> getSubEntityList()
StructuredEntityI
StructuredEntityI.getBaseEntity()
.
Does not include this StructuredEntityI or transitive sub-EntityI-s.getSubEntityList
in interface StructuredEntityI
getSubEntityList
in class InstrumentingEntity
public boolean hasSubEntities()
hasSubEntities
in interface StructuredEntityI
hasSubEntities
in class InstrumentingEntity
true
if this EntityI
has sub entitiespublic boolean isCustom()
isCustom
in interface BasicEntityI
isCustom
in class EntityWrapper
public java.util.List<java.lang.String> getDependentClasses()
getDependentClasses
in interface EntityI
getDependentClasses
in class EntityWrapper
public void setDiscriminator(java.lang.Long id)
EntityI
EntityI
setDiscriminator
in interface EntityI
setDiscriminator
in class EntityWrapper
id
- the id to set as discriminatorpublic java.lang.String toString()
toString
in interface EntityI
toString
in class EntityWrapper
String
containing all information about the current EntityICopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.