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

How to use
getWorkingCopyMethod
method
in
org.eclipse.persistence.descriptors.copying.CloneCopyPolicy

Best Java code snippets using org.eclipse.persistence.descriptors.copying.CloneCopyPolicy.getWorkingCopyMethod (Showing top 3 results out of 315)

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

/**
 * Clone through the workingCopyClone method, or if not specified the clone method.
 */
public Object buildWorkingCopyClone(Object domainObject, Session session) throws DescriptorException {
  if (this.getWorkingCopyMethodName() == null) {
    //not implemented to perform special operations.
    return this.buildClone(domainObject, session);
  }
  try {
    if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){
      try {
        return AccessController.doPrivileged(new PrivilegedMethodInvoker(this.getWorkingCopyMethod(), domainObject, new Object[0]));
      } catch (PrivilegedActionException exception) {
        Exception throwableException = exception.getException();
        if (throwableException instanceof IllegalAccessException) {
          throw DescriptorException.illegalAccessWhileCloning(domainObject, this.getMethodName(), this.getDescriptor(), throwableException);
        } else {
          throw DescriptorException.targetInvocationWhileCloning(domainObject, this.getMethodName(), this.getDescriptor(), throwableException);
        }
      }
    } else {
      return PrivilegedAccessHelper.invokeMethod(this.getWorkingCopyMethod(), domainObject, new Object[0]);
    }
  } catch (IllegalAccessException exception) {
    throw DescriptorException.illegalAccessWhileCloning(domainObject, this.getMethodName(), this.getDescriptor(), exception);
  } catch (InvocationTargetException exception) {
    throw DescriptorException.targetInvocationWhileCloning(domainObject, this.getMethodName(), this.getDescriptor(), exception);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Clone through the workingCopyClone method, or if not specified the clone method.
 */
public Object buildWorkingCopyClone(Object domainObject, Session session) throws DescriptorException {
  if (this.getWorkingCopyMethodName() == null) {
    //not implemented to perform special operations.
    return this.buildClone(domainObject, session);
  }
  try {
    if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){
      try {
        return AccessController.doPrivileged(new PrivilegedMethodInvoker(this.getWorkingCopyMethod(), domainObject, new Object[0]));
      } catch (PrivilegedActionException exception) {
        Exception throwableException = exception.getException();
        if (throwableException instanceof IllegalAccessException) {
          throw DescriptorException.illegalAccessWhileCloning(domainObject, this.getMethodName(), this.getDescriptor(), throwableException);
        } else {
          throw DescriptorException.targetInvocationWhileCloning(domainObject, this.getMethodName(), this.getDescriptor(), throwableException);
        }
      }
    } else {
      return PrivilegedAccessHelper.invokeMethod(this.getWorkingCopyMethod(), domainObject, new Object[0]);
    }
  
  } catch (IllegalAccessException exception) {
    throw DescriptorException.illegalAccessWhileCloning(domainObject, this.getMethodName(), this.getDescriptor(), exception);
  } catch (InvocationTargetException exception) {
    throw DescriptorException.targetInvocationWhileCloning(domainObject, this.getMethodName(), this.getDescriptor(), exception);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Clone through the workingCopyClone method, or if not specified the clone method.
 */
public Object buildWorkingCopyClone(Object domainObject, Session session) throws DescriptorException {
  if (this.getWorkingCopyMethodName() == null) {
    //not implemented to perform special operations.
    return this.buildClone(domainObject, session);
  }
  try {
    if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){
      try {
        return AccessController.doPrivileged(new PrivilegedMethodInvoker(this.getWorkingCopyMethod(), domainObject, new Object[0]));
      } catch (PrivilegedActionException exception) {
        Exception throwableException = exception.getException();
        if (throwableException instanceof IllegalAccessException) {
          throw DescriptorException.illegalAccessWhileCloning(domainObject, this.getMethodName(), this.getDescriptor(), throwableException);
        } else {
          throw DescriptorException.targetInvocationWhileCloning(domainObject, this.getMethodName(), this.getDescriptor(), throwableException);
        }
      }
    } else {
      return PrivilegedAccessHelper.invokeMethod(this.getWorkingCopyMethod(), domainObject, new Object[0]);
    }
  
  } catch (IllegalAccessException exception) {
    throw DescriptorException.illegalAccessWhileCloning(domainObject, this.getMethodName(), this.getDescriptor(), exception);
  } catch (InvocationTargetException exception) {
    throw DescriptorException.targetInvocationWhileCloning(domainObject, this.getMethodName(), this.getDescriptor(), exception);
  }
}
org.eclipse.persistence.descriptors.copyingCloneCopyPolicygetWorkingCopyMethod

Javadoc

Return the workingCopyClone method. This is used to clone within a unit of work.

Popular methods of CloneCopyPolicy

  • <init>
  • buildClone
    Clone through calling the clone method.
  • buildWorkingCopyClone
    Clone through the workingCopyClone method, or if not specified the clone method.
  • getDescriptor
  • getMethod
    Return the clone method.
  • getMethodName
    Return the clone method name.
  • getWorkingCopyMethodName
    Return the workingCopyClone method name. This is used to clone within a unit of work.
  • setMethod
    Set the clone method.
  • setMethodName
    Set the clone method name.
  • setWorkingCopyMethod
    Set the workingCopyClone method. This is used to clone within a unit of work.
  • setWorkingCopyMethodName
    Set the workingCopyClone method name. This is used to clone within a unit of work.
  • setWorkingCopyMethodName

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Table (org.hibernate.mapping)
    A relational table
  • Top plugins for WebStorm
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