Package com.brightcove.player.store
Class BaseEntity
- java.lang.Object
-
- com.brightcove.player.store.BaseEntity
-
- Direct Known Subclasses:
AbstractAnalyticsEvent
@Superclass public abstract class BaseEntity extends java.lang.ObjectCreated by rsubramaniam on 10/19/17.
-
-
Field Summary
Fields Modifier and Type Field Description protected longcreateTimeThe date and time when the entity was created as number of milliseconds since January 1, 1970, 00:00:00 GMT.protected longupdateTimeThe date and time when the entity was updated as number of milliseconds since January 1, 1970, 00:00:00 GMT.
-
Constructor Summary
Constructors Constructor Description BaseEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetModifiedTime()Gets the date and time when the entity was modified as number of milliseconds since January 1, 1970, 00:00:00 GMT.voidonBeforeInsert()Sets the create time before the inserting the entity into the database table.voidonBeforeUpdate()Sets the create time before the inserting the entity into the database table.
-
-
-
Field Detail
-
createTime
protected long createTime
The date and time when the entity was created as number of milliseconds since January 1, 1970, 00:00:00 GMT.
-
updateTime
protected long updateTime
The date and time when the entity was updated as number of milliseconds since January 1, 1970, 00:00:00 GMT.
-
-
Method Detail
-
onBeforeInsert
@PreInsert public void onBeforeInsert()
Sets the create time before the inserting the entity into the database table.
-
onBeforeUpdate
@PreUpdate public void onBeforeUpdate()
Sets the create time before the inserting the entity into the database table.
-
getModifiedTime
public long getModifiedTime()
Gets the date and time when the entity was modified as number of milliseconds since January 1, 1970, 00:00:00 GMT.- Returns:
-
-