/** * Whether an instance of this type has detached state. * * @return true if a detached instance must have detached state, false * if it does not, and null if it may use a * manually-constructed instance without detached state */ public Boolean usesDetachedState() { // no need to let conf disallow because it's taken into account in // getDetachedState() call return usesDetachedState(getDetachedState(), false); }
/** * If the metadata is configured to use a synthetic * detached state, reset it to not use a detached * state field, since we can't add fields when redefining. */ private static void setDetachedState(ClassMetaData meta) { if (ClassMetaData.SYNTHETIC.equals(meta.getDetachedState())) meta.setDetachedState(null); } }
/** * Whether an instance of this type has detached state. * * @return true if a detached instance must have detached state, false * if it does not, and null if it may use a * manually-constructed instance without detached state */ public Boolean usesDetachedState() { // no need to let conf disallow because it's taken into account in // getDetachedState() call return usesDetachedState(getDetachedState(), false); }
/** * If the metadata is configured to use a synthetic * detached state, reset it to not use a detached * state field, since we can't add fields when redefining. */ private static void setDetachedState(ClassMetaData meta) { if (ClassMetaData.SYNTHETIC.equals(meta.getDetachedState())) meta.setDetachedState(null); } }
/** * Whether an instance of this type has detached state. * * @return true if a detached instance must have detached state, false * if it does not, and null if it may use a * manually-constructed instance without detached state */ public Boolean usesDetachedState() { // no need to let conf disallow because it's taken into account in // getDetachedState() call return usesDetachedState(getDetachedState(), false); }
/** * If the metadata is configured to use a synthetic * detached state, reset it to not use a detached * state field, since we can't add fields when redefining. */ private static void setDetachedState(ClassMetaData meta) { if (ClassMetaData.SYNTHETIC.equals(meta.getDetachedState())) meta.setDetachedState(null); } }
/** * If the metadata is configured to use a synthetic * detached state, reset it to not use a detached * state field, since we can't add fields when redefining. */ private static void setDetachedState(ClassMetaData meta) { if (ClassMetaData.SYNTHETIC.equals(meta.getDetachedState())) meta.setDetachedState(null); } }
/** * If the metadata is configured to use a synthetic * detached state, reset it to not use a detached * state field, since we can't add fields when redefining. */ private static void setDetachedState(ClassMetaData meta) { if (ClassMetaData.SYNTHETIC.equals(meta.getDetachedState())) meta.setDetachedState(null); } }
/** * If the metadata is configured to use a synthetic * detached state, reset it to not use a detached * state field, since we can't add fields when redefining. */ private static void setDetachedState(ClassMetaData meta) { if (ClassMetaData.SYNTHETIC.equals(meta.getDetachedState())) meta.setDetachedState(null); } }
/** * Whether an instance of this type has detached state. * * @return true if a detached instance must have detached state, false * if it does not, and null if it may use a * manually-constructed instance without detached state */ public Boolean usesDetachedState() { // no need to let conf disallow because it's taken into account in // getDetachedState() call return usesDetachedState(getDetachedState(), false); }
private static boolean useDetachedStateManager(StateManagerImpl sm, DetachOptions opts) { ClassMetaData meta = sm.getMetaData(); return !Boolean.FALSE.equals(meta.usesDetachedState()) && ClassMetaData.SYNTHETIC.equals(meta.getDetachedState()) && opts.getDetachedStateManager(); }
private static boolean useDetachedStateManager(StateManagerImpl sm, DetachOptions opts) { ClassMetaData meta = sm.getMetaData(); return !Boolean.FALSE.equals(meta.usesDetachedState()) && ClassMetaData.SYNTHETIC.equals(meta.getDetachedState()) && opts.getDetachedStateManager(); }
private static boolean useDetachedStateManager(StateManagerImpl sm, DetachOptions opts) { ClassMetaData meta = sm.getMetaData(); return !Boolean.FALSE.equals(meta.usesDetachedState()) && ClassMetaData.SYNTHETIC.equals(meta.getDetachedState()) && opts.getDetachedStateManager(); }
private static boolean useDetachedStateManager(StateManagerImpl sm, DetachOptions opts) { ClassMetaData meta = sm.getMetaData(); return !Boolean.FALSE.equals(meta.usesDetachedState()) && ClassMetaData.SYNTHETIC.equals(meta.getDetachedState()) && opts.getDetachedStateManager(); }
private static boolean useDetachedStateManager(StateManagerImpl sm, DetachOptions opts) { ClassMetaData meta = sm.getMetaData(); return !Boolean.FALSE.equals(meta.usesDetachedState()) && ClassMetaData.SYNTHETIC.equals(meta.getDetachedState()) && opts.getDetachedStateManager(); }
/** * Whether the class being enhanced should externalize to a detached * instance rather than serialize. */ private boolean externalizeDetached() { return ClassMetaData.SYNTHETIC.equals(_meta.getDetachedState()) && Serializable.class.isAssignableFrom(_meta.getDescribedType()) && !_repos.getConfiguration().getDetachStateInstance(). isDetachedStateTransient(); }
/** * Whether the class being enhanced should externalize to a detached * instance rather than serialize. */ private boolean externalizeDetached() { return ClassMetaData.SYNTHETIC.equals(_meta.getDetachedState()) && Serializable.class.isAssignableFrom(_meta.getDescribedType()) && !_repos.getConfiguration().getDetachStateInstance(). isDetachedStateTransient(); }
/** * Whether the class being enhanced should externalize to a detached * instance rather than serialize. */ private boolean externalizeDetached() { return ClassMetaData.SYNTHETIC.equals(_meta.getDetachedState()) && Serializable.class.isAssignableFrom(_meta.getDescribedType()) && !_repos.getConfiguration().getDetachStateInstance(). isDetachedStateTransient(); }
/** * Whether the class being enhanced should externalize to a detached * instance rather than serialize. */ private boolean externalizeDetached() { return ClassMetaData.SYNTHETIC.equals(_meta.getDetachedState()) && Serializable.class.isAssignableFrom(_meta.getDescribedType()) && !_repos.getConfiguration().getDetachStateInstance(). isDetachedStateTransient(); }
/** * Whether the class being enhanced should externalize to a detached * instance rather than serialize. */ private boolean externalizeDetached() { return ClassMetaData.SYNTHETIC.equals(_meta.getDetachedState()) && Serializable.class.isAssignableFrom(_meta.getDescribedType()) && !_repos.getConfiguration().getDetachStateInstance(). isDetachedStateTransient(); }