Package overit.geocall.edm.model
Class Entity
java.lang.Object
overit.geocall.edm.model.Entity
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AccountEntity,AccountTypeEntity,AssetEntity,AssetTypeEntity,MaterialEntity,ResourceEntity,UserEntity,UserTypeEntity,WorkOrderHeaderEntity,WorkOrderOperationEntity,WorkOrderOperationTypeEntity,WorkOrderTypeEntity
An abstract class representing a data entity model in the Entity-Data-Model (EDM).
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceUseful annotation for marking anentityas anonymous, meaning without aprimary keyfield.static @interfaceAnnotation used to set the field of the table containing acodecapable of uniquely identifying each record (useful during the export of the system configuration).static @interfaceAnnotation used to set a description for the entitystatic @interfaceUseful annotation for marking anentityasfinal, meaning it cannot be extended via theEDMframework.static @interfaceAnnotation used to set the name of the entity.static @interfaceAnnotation used to set the name of the pool.static @interfaceUseful annotation to mark anentityas asystem entity, meaning not segregated by company.static @interfaceAnnotation used to bind an entity to a specific table.static @interfaceAnnotation used to set theTimeZoneResolver. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCode()Returns aStringabout the field of the table containing a code capable of uniquely identifying each record (useful during the export of the system configuration).Returns aStringabout the field of the table in which is stored thecompany IDvalue associated with the entity model.Retrieves the description of the entity model.Retrieves the extension column associated with the entity model.getId()Returns aStringabout the primary key field of the associated table.getLayer()Retrieves the custom layer associated with the entity model.getName()Retrieves the name of the entity model.getPool()Retrieves the pool associated with the entity model.getTable()Retrieves the table associated with the entity model.Class<? extends overit.geocall.timezone.service.TimeZoneResolver> Retrieves theClass<?inthashCode()booleanReturnstruein case thisentityhas been marked asanonymous;falseotherwise.booleanisFinal()Returnstruein case thisentityhas been marked asfinal(meaning it cannot be extended via theEDMframework);falseotherwise.booleanisSystem()Returnstruein case thisentityhas been marked as asystem entity(meaning not segregated by company);falseotherwise.toString()
-
Constructor Details
-
Entity
protected Entity()
-
-
Method Details
-
getLayer
Retrieves the custom layer associated with the entity model.- Returns:
- The custom layer associated with the entity model.
-
getName
Retrieves the name of the entity model.- Returns:
- The name of the entity model, or null if the name annotation is not present.
-
getDescription
Retrieves the description of the entity model.- Returns:
- The description of the entity model, or null if the description annotation is not present.
-
getTable
Retrieves the table associated with the entity model.- Returns:
- The table associated with the entity model, or null if the table annotation is not present.
-
getExtensionColumn
Retrieves the extension column associated with the entity model.- Returns:
- The extension column associated with the entity model, or null if the extension column annotation is not present.
-
getPool
Retrieves the pool associated with the entity model.- Returns:
- The pool associated with the entity model, or the default value "Pool" if the pool annotation is not present.
-
getTimeZoneResolver
Retrieves theClass<? extendsTimeZoneResolverassociated with the entity model.- Returns:
- The
Class<? extendsTimeZoneResolverassociated with the entity model.
-
getAcronym
- Returns:
- a
Stringabout theacronymvalue set for thisentity. - See Also:
-
isAnonymous
public boolean isAnonymous()Returnstruein case thisentityhas been marked asanonymous;falseotherwise.- Returns:
truein case thisentityhas been marked asanonymous;falseotherwise.- See Also:
-
isFinal
public boolean isFinal()Returnstruein case thisentityhas been marked asfinal(meaning it cannot be extended via theEDMframework);falseotherwise.- Returns:
truein case thisentityhas been marked asfinal(meaning it cannot be extended via theEDMframework);falseotherwise.- See Also:
-
isSystem
public boolean isSystem()Returnstruein case thisentityhas been marked as asystem entity(meaning not segregated by company);falseotherwise.- Returns:
truein case thisentityhas been marked as asystem entity(meaning not segregated by company);falseotherwise.- See Also:
-
getId
Returns aStringabout the primary key field of the associated table.- Returns:
- a
Stringabout the primary key field of the associated table.
-
getCompanyIdField
Returns aStringabout the field of the table in which is stored thecompany IDvalue associated with the entity model.- Returns:
- a
Stringabout the field of the table in which is stored thecompany IDvalue associated with the entity model.
-
getCode
Returns aStringabout the field of the table containing a code capable of uniquely identifying each record (useful during the export of the system configuration).- Returns:
- a
Stringabout the field of the table containing a code capable of uniquely identifying each record (useful during the export of the system configuration).
-
equals
-
hashCode
public int hashCode() -
toString
-