public interface EntityOps
| Modifier and Type | Method and Description |
|---|---|
Object |
clone(Object Entity) |
static void |
copy(EntityOps sourceOps,
EntityOps targetOps,
Object fromEntity,
Object toEntity) |
static Object |
deepCopy(Object entity,
java.util.function.Function<Class<?>,EntityOps> classToOps) |
static Object |
deepCopy(Object entity,
java.util.function.Function<Class<?>,EntityOps> classToOps,
java.util.function.Function<Object,Object> getEntityToClone,
java.util.function.BiConsumer<Object,Object> putEntityToClone) |
static Object |
deepCopy(Object entity,
java.util.function.Function<Class<?>,EntityOps> classToOps,
java.util.function.Function<Object,Object> getEntityToClone,
java.util.function.BiConsumer<Object,Object> putEntityToClone,
java.util.function.Predicate<Object> getIsCopied,
java.util.function.Consumer<Object> setIsCopied) |
static Object |
deepCopy(Object entity,
java.util.function.Function<Class<?>,EntityOps> classToOps,
Set<Object> managedEntities)
Deep copy, with any entity in managedEntities does NOT cause the creation of a clone
For all entities not in the set a clone will be created and added to the set
|
<A> A |
findAnnotation(Class<A> annotationClass) |
Class<?> |
getAssociatedClass() |
default Collection<? extends PropertyOps> |
getEditableProperties()
Convenience method for getting read- and writable properties
|
Iterator<?> |
getItems(Object entity) |
<T> T |
getOps(Class<T> opsClass)
Operations may be associated with an entity.
|
Collection<? extends PropertyOps> |
getProperties() |
PropertyOps |
getProperty(String name) |
default Set<String> |
getPropertyNames() |
boolean |
isClonable() |
boolean |
isCollection()
Entities may be container for items
One issue is the identity of the items:
E.g.
|
boolean |
isInstantiable() |
boolean |
isPrimitive() |
Object |
newInstance() |
void |
setItems(Object entity,
Iterator<?> items) |
Class<?> getAssociatedClass()
<T> T getOps(Class<T> opsClass)
<A> A findAnnotation(Class<A> annotationClass)
boolean isInstantiable()
Object newInstance()
Collection<? extends PropertyOps> getProperties()
boolean isClonable()
boolean isPrimitive()
default Collection<? extends PropertyOps> getEditableProperties()
PropertyOps getProperty(String name)
static Object deepCopy(Object entity, java.util.function.Function<Class<?>,EntityOps> classToOps)
boolean isCollection()
static Object deepCopy(Object entity, java.util.function.Function<Class<?>,EntityOps> classToOps, Set<Object> managedEntities)
entity - classToOps - managedEntities - static Object deepCopy(Object entity, java.util.function.Function<Class<?>,EntityOps> classToOps, java.util.function.Function<Object,Object> getEntityToClone, java.util.function.BiConsumer<Object,Object> putEntityToClone)
static Object deepCopy(Object entity, java.util.function.Function<Class<?>,EntityOps> classToOps, java.util.function.Function<Object,Object> getEntityToClone, java.util.function.BiConsumer<Object,Object> putEntityToClone, java.util.function.Predicate<Object> getIsCopied, java.util.function.Consumer<Object> setIsCopied)
Copyright © 2017. All rights reserved.