congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CopyPolicy.buildsNewInstance
Code IndexAdd Tabnine to your IDE (free)

How to use
buildsNewInstance
method
in
org.eclipse.persistence.descriptors.copying.CopyPolicy

Best Java code snippets using org.eclipse.persistence.descriptors.copying.CopyPolicy.buildsNewInstance (Showing top 8 results out of 315)

origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Return if this mapping requires its attribute value to be cloned.
 */
@Override
public boolean isCloningRequired() {
  return isMutable() || getDescriptor().getCopyPolicy().buildsNewInstance();
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Return if this mapping requires its attribute value to be cloned.
 */
@Override
public boolean isCloningRequired() {
  return isMutable() || getDescriptor().getCopyPolicy().buildsNewInstance();
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Return if this mapping requires its attribute value to be cloned.
 */
public boolean isCloningRequired() {
  return isMutable() || getDescriptor().getCopyPolicy().buildsNewInstance();
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  objectBuilder.mergeIntoObject(original, true, clone, this, false, !descriptor.getCopyPolicy().buildsNewInstance());
} else if (!objectChangeSet.isNew()) {
  objectBuilder.mergeIntoObject(original, true, clone, this, false, !descriptor.getCopyPolicy().buildsNewInstance());
} else {
  objectBuilder.mergeChangesIntoObject(original, objectChangeSet, clone, this, !descriptor.getCopyPolicy().buildsNewInstance());
  objectBuilder.mergeIntoObject(original, true, clone, this, false, !descriptor.getCopyPolicy().buildsNewInstance());
  updateCacheKeyProperties(unitOfWork, original, clone, objectChangeSet, descriptor);
origin: com.haulmont.thirdparty/eclipselink

original = ((UnitOfWorkImpl) this.session).buildOriginal(source);
if (descriptor.getCopyPolicy().buildsNewInstance()){
  List<DatabaseMapping> pkMappings = descriptor.getObjectBuilder().getPrimaryKeyMappings();
  for (DatabaseMapping mapping : pkMappings){
origin: org.eclipse.persistence/org.eclipse.persistence.core

original = ((UnitOfWorkImpl) this.session).buildOriginal(source);
if (descriptor.getCopyPolicy().buildsNewInstance()){
  List<DatabaseMapping> pkMappings = descriptor.getObjectBuilder().getPrimaryKeyMappings();
  for (DatabaseMapping mapping : pkMappings){
origin: com.haulmont.thirdparty/eclipselink

  cacheKey.setObject(original);
objectBuilder.mergeIntoObject(original, objectChangeSet, true, clone, this, targetSession, false, !descriptor.getCopyPolicy().buildsNewInstance(), originalWasNull);
  objectBuilder.mergeIntoObject(original, objectChangeSet, true, clone, this, targetSession, false, !descriptor.getCopyPolicy().buildsNewInstance(), false);
  if (originalWasNull && !unitOfWork.isObjectRegistered(clone)){
  objectBuilder.mergeChangesIntoObject(original, objectChangeSet, clone, this, targetSession, !descriptor.getCopyPolicy().buildsNewInstance(), true);
origin: org.eclipse.persistence/org.eclipse.persistence.core

  cacheKey.setObject(original);
objectBuilder.mergeIntoObject(original, null, true, clone, this, targetSession, false, !descriptor.getCopyPolicy().buildsNewInstance(), true);
  objectBuilder.mergeIntoObject(original, objectChangeSet, true, clone, this, targetSession, false, !descriptor.getCopyPolicy().buildsNewInstance(), true);
  if (!unitOfWork.isObjectRegistered(clone)){
  objectBuilder.mergeChangesIntoObject(original, objectChangeSet, clone, this, targetSession, !descriptor.getCopyPolicy().buildsNewInstance(), true);
org.eclipse.persistence.descriptors.copyingCopyPolicybuildsNewInstance

Javadoc

Return if this copy policy creates a new instance, vs a clone.

Popular methods of CopyPolicy

  • buildClone
    Return a shallow clone of the object for usage with object copying, or unit of work backup cloning.
  • buildWorkingCopyClone
    Return a shallow clone of the object for usage with the unit of work working copy.
  • buildWorkingCopyCloneFromRow
    Return an instance with the primary key set from the row, used for building a working copy during a
  • clone
    Clone the CopyPolicy.
  • initialize
    Allow for any initialization or validation required.
  • setDescriptor
    Set the descriptor.
  • buildWorkingCopyCloneFromPrimaryKeyObject
    Return an instance with the primary key, used for building a working copy during a unit of work tran

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • setContentView (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now