public class CopyContext extends Object
| Constructor and Description |
|---|
CopyContext(boolean vanillaMode) |
CopyContext(boolean vanillaMode,
boolean sharing) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Class<?> beanType,
Object beanId)
Return the bean for the given type and id from the persistence context.
|
PersistenceContext |
getPersistenceContext()
Return the persistence context used during the copy.
|
boolean |
isSharing()
Return true if the copy should be safe for sharing.
|
boolean |
isVanillaMode()
Return true if the copy should be a vanilla bean.
|
Object |
putIfAbsent(Object id,
Object bean)
Put the bean if absent into the persistence context.
|
public CopyContext(boolean vanillaMode,
boolean sharing)
public CopyContext(boolean vanillaMode)
public boolean isVanillaMode()
public boolean isSharing()
public PersistenceContext getPersistenceContext()
public Object putIfAbsent(Object id, Object bean)
Copyright © 2014. All Rights Reserved.