Package com.brightcove.player.store
Class BaseEntity
java.lang.Object
com.brightcove.player.store.BaseEntity
- Direct Known Subclasses:
AbstractAnalyticsEvent
Created by rsubramaniam on 10/19/17.
-
Field Summary
Modifier and TypeFieldDescriptionprotected long
The date and time when the entity was created as number of milliseconds since January 1, 1970, 00:00:00 GMT.protected long
The date and time when the entity was updated as number of milliseconds since January 1, 1970, 00:00:00 GMT. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the date and time when the entity was modified as number of milliseconds since January 1, 1970, 00:00:00 GMT.void
Sets the create time before the inserting the entity into the database table.void
Sets the create time before the inserting the entity into the database table.
-
Field Details
-
createTime
protected long createTimeThe date and time when the entity was created as number of milliseconds since January 1, 1970, 00:00:00 GMT. -
updateTime
protected long updateTimeThe date and time when the entity was updated as number of milliseconds since January 1, 1970, 00:00:00 GMT.
-
-
Constructor Details
-
BaseEntity
public BaseEntity()
-
-
Method Details
-
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:
-