public class EntityDef<T> extends Object
| Constructor and Description |
|---|
EntityDef(ModelCopier model,
Class<T> entityClass) |
| Modifier and Type | Method and Description |
|---|---|
EntityDef<T> |
createAlways() |
T |
createInstance() |
Class<T> |
getEntityClass() |
InstanceKey<T> |
getInstanceKey(T instance)
Get the search key for the specified existing entity instance.
|
ClassMetaModel |
getMetaModel() |
String[] |
getSearchKey() |
boolean |
isCopy() |
boolean |
isCreatable() |
boolean |
isCreateAlways() |
static <X> boolean |
isEntityInstance(X t) |
boolean |
isUpdateExisting() |
EntityDef<T> |
key(String... k)
Define the search key set for this entity.
|
EntityDef<T> |
nocopy() |
EntityDef<T> |
nocreate() |
EntityDef<T> |
setCopy(boolean ok) |
String |
toString() |
EntityDef<T> |
update() |
public EntityDef(@Nonnull ModelCopier model, @Nonnull Class<T> entityClass)
@Nonnull public ClassMetaModel getMetaModel()
public String[] getSearchKey()
@Nonnull public InstanceKey<T> getInstanceKey(T instance) throws Exception
instance - Exceptionpublic static <X> boolean isEntityInstance(@Nullable X t)
t - public boolean isCopy()
public boolean isCreatable()
public boolean isCreateAlways()
public boolean isUpdateExisting()
Copyright © 2017 etc.to. All rights reserved.