Package gov.niem.tools.api.db.base
Class BaseEntity
java.lang.Object
gov.niem.tools.api.db.base.BaseEntity
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BaseStewardEntity
,Steward
A parent class for all kinds of entities used to represent the structure of a
NIEM model.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
BaseEntity.BaseEntityBuilder<C extends BaseEntity,
B extends BaseEntity.BaseEntityBuilder<C, B>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BaseEntity
(Long id, String createdBy, LocalDateTime createdDate, String lastModifiedBy, LocalDateTime lastModifiedDate) Creates a newBaseEntity
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
A kind of NIEM entity, such as a Namespace or a Property.A user which created an entity.A date on which an entity was created.abstract String
A human-readable and url-friendly unique identifier for an entity.getId()
A unique, auto-generated identifier for an entity.A user which last updated an entity.A date on which an entity was last updated.abstract String
An identifier, unique within its immediate scope.abstract BaseEntity
An immediate entity or scope to which this entity belongs.abstract String
getRoute()
An endpoint to get information about an entity.abstract String
getTitle()
A descriptive label or title used to identify an entity.int
hashCode()
void
setCreatedBy
(String createdBy) A user which created an entity.void
setCreatedDate
(LocalDateTime createdDate) A date on which an entity was created.void
A unique, auto-generated identifier for an entity.void
setLastModifiedBy
(String lastModifiedBy) A user which last updated an entity.void
setLastModifiedDate
(LocalDateTime lastModifiedDate) A date on which an entity was last updated.toString()
-
Constructor Details
-
BaseEntity
-
BaseEntity
public BaseEntity() -
BaseEntity
public BaseEntity(Long id, String createdBy, LocalDateTime createdDate, String lastModifiedBy, LocalDateTime lastModifiedDate) Creates a newBaseEntity
instance.- Parameters:
id
- A unique, auto-generated identifier for an entity.createdBy
- A user which created an entity.createdDate
- A date on which an entity was created.lastModifiedBy
- A user which last updated an entity.lastModifiedDate
- A date on which an entity was last updated.
-
-
Method Details
-
getFullIdentifier
A human-readable and url-friendly unique identifier for an entity. -
getLocalIdentifier
An identifier, unique within its immediate scope. Examples include a prefix (uniquely identifying a namespace) or a qualified name (uniquely identifying a property or a type) within a version of a model. -
getClassName
A kind of NIEM entity, such as a Namespace or a Property. -
getRoute
An endpoint to get information about an entity. -
getTitle
A descriptive label or title used to identify an entity. -
getParentEntity
An immediate entity or scope to which this entity belongs. Examples include a steward (parent) for a model or a namespace (parent) for a property or type. -
getId
A unique, auto-generated identifier for an entity. -
getCreatedBy
A user which created an entity. -
getCreatedDate
A date on which an entity was created. -
getLastModifiedBy
A user which last updated an entity. -
getLastModifiedDate
A date on which an entity was last updated. -
setId
A unique, auto-generated identifier for an entity. -
setCreatedBy
A user which created an entity. -
setCreatedDate
A date on which an entity was created. -
setLastModifiedBy
A user which last updated an entity. -
setLastModifiedDate
A date on which an entity was last updated. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-