public class BaseEntity extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseEntity.Builder
Abstract builder class, providing base methods for the base properties.
|
| Constructor and Description |
|---|
BaseEntity() |
BaseEntity(String id)
Deprecated.
Use the BaseEntity(UUID) instead.
|
BaseEntity(UUID id) |
BaseEntity(UUID id,
ZonedDateTime createdAt,
ZonedDateTime updatedAt) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ZonedDateTime |
getCreatedAt() |
String |
getId()
Deprecated.
from Accounts 2.x, this will return an UUID. Use getIdAsUUID().
|
UUID |
getIdAsUUID() |
ZonedDateTime |
getUpdatedAt() |
int |
hashCode() |
void |
setUpdatedAt() |
String |
toString() |
public BaseEntity()
public BaseEntity(String id)
id - the ID as String to be parsed as UUID.public BaseEntity(UUID id)
public BaseEntity(UUID id, ZonedDateTime createdAt, ZonedDateTime updatedAt)
public UUID getIdAsUUID()
public String getId()
public ZonedDateTime getCreatedAt()
public ZonedDateTime getUpdatedAt()
public void setUpdatedAt()
Copyright © 2015 Red Hat, Inc.. All rights reserved.