public interface BasicEntityI
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
$0 |
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 . |
default java.util.List<AttributeI> |
getAttributeListByType()
Filters the list of attributes obtained from
getAttributeList
to the persistent ones. |
default java.util.List<AttributeI> |
getAttributeListByType(boolean virtual)
Filters the list of attributes obtained from
getAttributeList
based on the specified type (virtual or persistent). |
java.lang.Class |
getClazz()
Returns the
Class object representing this entity. |
default java.lang.String |
getCurrentModuleOrProject() |
java.util.Set<java.lang.String> |
getCustomClassInModulesOrProject() |
java.lang.String |
getDescription()
Returns the description String of this BasicEntityI instance or of the first base BasicEntityI that has a description.
|
java.lang.String |
getFolderName()
Returns the folder name of this
BasicEntityI as used in the navigation tree in the GUI. |
java.util.Collection<SchemaInterfaceI> |
getImplementedSchemaInterfaces()
Return all implemented interfaces as SchemaInterfaceI objects, from which further information may be obtained.
|
java.util.Set<java.lang.String> |
getModulePackages()
Returns the names of the module packages this
BasicEntityI is appearing in. |
java.lang.String |
getName()
Returns the name of this BasicEntityI instance.
|
java.util.Set<java.lang.String> |
getOrCreateCustomClassInModulesOrProjectSet() |
java.util.Set<java.lang.String> |
getOrCreateModulePackagesSet()
Returns the names of the modules this
BasicEntityI is appearing in. |
java.lang.String |
getPlural() |
default java.util.List<AttributeI> |
getRelations()
Returns a list of all relational attributes defined on this
BasicEntityI ,
including virtual ones. |
SchemaI |
getSchema() |
AttributeI |
getSingleAttribute(java.lang.String attName)
Returns the
AttributeI for the specified name, which must match either
the plural or singular form. |
boolean |
isCustom() |
default boolean |
isCustom(java.lang.String moduleOrProject) |
boolean |
isPersistent() |
boolean |
isUserAbstract() |
default BOI |
newInstance()
Builds and returns a fitting new object implementing BOI that has the current BasicEntityI as entity.
|
static final java.lang.String $0
default BOI newInstance()
CanNotInstantiateObjectException
- if the new instance could not be instantiatedSchemaI getSchema()
java.lang.String getName()
java.lang.String getPlural()
java.lang.String getDescription()
java.lang.Class getClazz()
Class
object representing this entity.Class
object for this entity.java.lang.ClassNotFoundException
- if no Class
was found for the fully qualified name of this entity.boolean isUserAbstract()
true
if this BasicEntityI is defined as abstract in the schema.boolean isPersistent()
true
if this BasicEntityI is defined as persistent in the schema.boolean isCustom()
true
, if this BasicEntityI has a custom implementation and not only generated codedefault boolean isCustom(java.lang.String moduleOrProject)
true
, if this BasicEntityI has a custom implementation in the module with the passed name
or in the project, if the passed name is the project package.java.lang.String getFolderName()
BasicEntityI
as used in the navigation tree in the GUI.java.util.Set<java.lang.String> getOrCreateCustomClassInModulesOrProjectSet()
java.util.Set<java.lang.String> getCustomClassInModulesOrProject()
default java.lang.String getCurrentModuleOrProject()
java.util.Set<java.lang.String> getOrCreateModulePackagesSet()
BasicEntityI
is appearing in.
Creates and sets a new set if none exists yet.BasicEntityI
is appearing in.java.util.Set<java.lang.String> getModulePackages()
BasicEntityI
is appearing in.BasicEntityI
is appearing in.java.util.Collection<SchemaInterfaceI> getImplementedSchemaInterfaces()
AttributeI getSingleAttribute(java.lang.String attName)
AttributeI
for the specified name, which must match either
the plural or singular form.attName
- The name to get the AttributeI
for.AttributeI
for the specified name.java.lang.IllegalArgumentException
- If the passed name is null.default java.util.List<AttributeI> getRelations()
BasicEntityI
,
including virtual ones. Inherited attributes are excluded.BasicEntityI
.java.util.List<AttributeI> getAttributeList()
CBOEntity
.
Excludes inherited Attributes.CBOEntity
.default java.util.List<AttributeI> getAttributeListByType()
getAttributeList
to the persistent ones.default java.util.List<AttributeI> getAttributeListByType(boolean virtual)
getAttributeList
based on the specified type (virtual or persistent).virtual
- If true, only virtual AttributeI-s are included; if false, only persistent
AttributeI-s are included.Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.