public class ElementLifeCycle extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ElementLifeCycle.Event |
Modifier and Type | Field and Description |
---|---|
static byte |
Loaded
The entity has been loaded from the database and has not changed
after initial loading.
|
static byte |
New
The entity has been newly created and not yet persisted.
|
static byte |
Removed
The entity has been deleted but not yet erased from the database.
|
Constructor and Description |
---|
ElementLifeCycle() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasAddedRelations(byte lifecycle) |
static boolean |
hasRemovedRelations(byte lifecycle) |
static boolean |
isLoaded(byte lifecycle) |
static boolean |
isModified(byte lifecycle) |
static boolean |
isNew(byte lifecycle) |
static boolean |
isRemoved(byte lifecycle) |
static boolean |
isValid(byte lifecycle) |
static byte |
update(byte lifecycle,
ElementLifeCycle.Event event) |
public static final byte New
public static final byte Loaded
public static final byte Removed
public static final boolean isModified(byte lifecycle)
public static final boolean hasRemovedRelations(byte lifecycle)
public static final boolean hasAddedRelations(byte lifecycle)
public static final boolean isNew(byte lifecycle)
public static final boolean isLoaded(byte lifecycle)
public static final boolean isRemoved(byte lifecycle)
public static boolean isValid(byte lifecycle)
public static final byte update(byte lifecycle, ElementLifeCycle.Event event)
Copyright © 2012–2017. All rights reserved.