public abstract class InternalEntity extends Object implements Serializable, TimestampedEntity
Modifier and Type | Field and Description |
---|---|
protected boolean |
active |
protected Date |
createdDate |
protected Long |
id |
protected String |
name |
protected Date |
updatedDate |
Modifier | Constructor and Description |
---|---|
protected |
InternalEntity() |
protected |
InternalEntity(InternalEntityTemplate template) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
equals(Object obj) |
Date |
getCreatedDate()
Returns the date the entity was created.
|
Long |
getId() |
String |
getName() |
Date |
getUpdatedDate()
Returns the date the entity was last updated.
|
abstract int |
hashCode() |
boolean |
isActive() |
protected void |
setActive(boolean active) |
protected void |
setCreatedDate(Date createdDate) |
void |
setCreatedDateToNow() |
protected void |
setName(String name) |
protected void |
setUpdatedDate(Date updatedDate) |
void |
setUpdatedDateToNow() |
protected Long id
protected String name
protected boolean active
protected Date createdDate
protected Date updatedDate
protected InternalEntity()
protected InternalEntity(InternalEntityTemplate template)
public void setUpdatedDateToNow()
public void setCreatedDateToNow()
public Long getId()
public String getName()
public boolean isActive()
public Date getCreatedDate()
TimestampedEntity
getCreatedDate
in interface TimestampedEntity
public Date getUpdatedDate()
TimestampedEntity
getUpdatedDate
in interface TimestampedEntity
protected void setName(String name)
protected void setActive(boolean active)
protected void setCreatedDate(Date createdDate)
protected void setUpdatedDate(Date updatedDate)
Copyright © 2016 Atlassian. All rights reserved.