Tabnine Logo
CloneCopyPolicy.setWorkingCopyMethod
Code IndexAdd Tabnine to your IDE (free)

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

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

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

/**
 * Validate and build the methods.
 */
public void initialize(Session session) throws DescriptorException {
  final Class javaClass = this.getDescriptor().getJavaClass();
  try {
    // Must allow for null clone method for 9.0.4 deployment XML.
    if (this.getMethodName() != null) {
      this.setMethod(Helper.getDeclaredMethod(javaClass, this.getMethodName(), new Class[0]));
    }
  } catch (NoSuchMethodException exception) {
    session.getIntegrityChecker().handleError(DescriptorException.noSuchMethodWhileInitializingCopyPolicy(this.getMethodName(), this.getDescriptor(), exception));
  } catch (SecurityException exception) {
    session.getIntegrityChecker().handleError(DescriptorException.securityWhileInitializingCopyPolicy(this.getMethodName(), this.getDescriptor(), exception));
  }
  if (this.getWorkingCopyMethodName() != null) {
    try {
      this.setWorkingCopyMethod(Helper.getDeclaredMethod(javaClass, this.getWorkingCopyMethodName(), new Class[0]));
    } catch (NoSuchMethodException exception) {
      session.getIntegrityChecker().handleError(DescriptorException.noSuchMethodWhileInitializingCopyPolicy(this.getMethodName(), this.getDescriptor(), exception));
    } catch (SecurityException exception) {
      session.getIntegrityChecker().handleError(DescriptorException.securityWhileInitializingCopyPolicy(this.getMethodName(), this.getDescriptor(), exception));
    }
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Validate and build the methods.
 */
public void initialize(Session session) throws DescriptorException {
  final Class javaClass = this.getDescriptor().getJavaClass();
  try {
    // Must allow for null clone method for 9.0.4 deployment XML.
    if (this.getMethodName() != null) {
      this.setMethod(Helper.getDeclaredMethod(javaClass, this.getMethodName(), new Class[0]));
    }
  } catch (NoSuchMethodException exception) {
    session.getIntegrityChecker().handleError(DescriptorException.noSuchMethodWhileInitializingCopyPolicy(this.getMethodName(), this.getDescriptor(), exception));
  } catch (SecurityException exception) {
    session.getIntegrityChecker().handleError(DescriptorException.securityWhileInitializingCopyPolicy(this.getMethodName(), this.getDescriptor(), exception));
  }
  if (this.getWorkingCopyMethodName() != null) {
    try {
      this.setWorkingCopyMethod(Helper.getDeclaredMethod(javaClass, this.getWorkingCopyMethodName(), new Class[0]));
    } catch (NoSuchMethodException exception) {
      session.getIntegrityChecker().handleError(DescriptorException.noSuchMethodWhileInitializingCopyPolicy(this.getMethodName(), this.getDescriptor(), exception));
    } catch (SecurityException exception) {
      session.getIntegrityChecker().handleError(DescriptorException.securityWhileInitializingCopyPolicy(this.getMethodName(), this.getDescriptor(), exception));
    }
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Validate and build the methods.
 */
public void initialize(Session session) throws DescriptorException {
  try {
    // Must allow for null clone method for 9.0.4 deployment XML.
    if (this.getMethodName() != null) {
      this.setMethod(Helper.getDeclaredMethod(this.getDescriptor().getJavaClass(), this.getMethodName(), new Class[0]));
    }
  } catch (NoSuchMethodException exception) {
    session.getIntegrityChecker().handleError(DescriptorException.noSuchMethodWhileInitializingCopyPolicy(this.getMethodName(), this.getDescriptor(), exception));
  } catch (SecurityException exception) {
    session.getIntegrityChecker().handleError(DescriptorException.securityWhileInitializingCopyPolicy(this.getMethodName(), this.getDescriptor(), exception));
  }
  if (this.getWorkingCopyMethodName() != null) {
    try {
      this.setWorkingCopyMethod(Helper.getDeclaredMethod(this.getDescriptor().getJavaClass(), this.getWorkingCopyMethodName(), new Class[0]));
    } catch (NoSuchMethodException exception) {
      session.getIntegrityChecker().handleError(DescriptorException.noSuchMethodWhileInitializingCopyPolicy(this.getMethodName(), this.getDescriptor(), exception));
    } catch (SecurityException exception) {
      session.getIntegrityChecker().handleError(DescriptorException.securityWhileInitializingCopyPolicy(this.getMethodName(), this.getDescriptor(), exception));
    }
  }
}
org.eclipse.persistence.descriptors.copyingCloneCopyPolicysetWorkingCopyMethod

Javadoc

Set 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.
  • getWorkingCopyMethod
    Return the workingCopyClone method. This is used to clone within a unit of work.
  • 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.
  • setWorkingCopyMethodName
    Set the workingCopyClone method name. This is used to clone within a unit of work.
  • setWorkingCopyMethodName

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Permission (java.security)
    Legacy security code; do not use.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top Sublime Text plugins
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