HasLifecycleColumns

public interface HasLifecycleColumns<I, S extends EntityState> implements Entity<I, S>

Marks an Entity that declares columns for lifecycle flags.

See also

Inheritors

Functions

Link copied to clipboard
public boolean getArchived()
Obtains the value of archived flag.
Link copied to clipboard
public boolean getDeleted()
Obtains the value of deleted flag.

Inherited functions

Link copied to clipboard
public abstract LifecycleFlags getLifecycleFlags()
Obtains current lifecycle flags.
Link copied to clipboard
public abstract I id()
Obtains the identifier of the entity.
Link copied to clipboard
public String idAsString()
Obtains string representation of the entity identifier.
Link copied to clipboard
public boolean isActive()
Verifies if any of the lifecycle attributes is set.
Link copied to clipboard
public boolean isArchived()
Shows if current instance is marked as archived or not.
Link copied to clipboard
public boolean isDeleted()
Shows if current instance is marked as deleted or not.
Link copied to clipboard
public LifecycleFlags lifecycleFlags()
Obtains current lifecycle flags.
Link copied to clipboard
public abstract boolean lifecycleFlagsChanged()
Tells whether lifecycle flags of the entity changed since its initialization.
Link copied to clipboard
public abstract S state()
Obtains the state of the entity.
Link copied to clipboard
public abstract Version version()
Obtains the version of the entity.