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) |
void |
setCreatedDate(Date createdDate) |
void |
setCreatedDateToNow() |
protected void |
setName(String name) |
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)
public void setCreatedDate(Date createdDate)
public void setUpdatedDate(Date updatedDate)
Copyright © 2017 Atlassian. All rights reserved.