congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CloneCopyPolicy.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.eclipse.persistence.descriptors.copying.CloneCopyPolicy
constructor

Best Java code snippets using org.eclipse.persistence.descriptors.copying.CloneCopyPolicy.<init> (Showing top 4 results out of 315)

origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Specifies that the creation of clones within a unit of work is done by
 * sending the cloneMethodName method to the original object. This method
 * must return a logical shallow copy of the original object.
 * This can be used if the default mechanism of creating a new instance
 * does not handle the object's non-persistent attributes correctly.
 *
 * @see #useCloneCopyPolicy()
 */
public void useCloneCopyPolicy(String cloneMethodName) {
  CloneCopyPolicy policy = new CloneCopyPolicy();
  policy.setMethodName(cloneMethodName);
  setCopyPolicy(policy);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * Specifies that the creation of clones within a unit of work is done by
 * sending the cloneMethodName method to the original object. This method
 * must return a logical shallow copy of the original object.
 * This can be used if the default mechanism of creating a new instance
 * does not handle the object's non-persistent attributes correctly.
 *
 * @see #useCloneCopyPolicy()
 */
public void useCloneCopyPolicy(String cloneMethodName) {
  CloneCopyPolicy policy = new CloneCopyPolicy();
  policy.setMethodName(cloneMethodName);
  setCopyPolicy(policy);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Specifies that the creation of clones within a unit of work is done by
 * sending the cloneMethodName method to the original object. This method
 * must return a logical shallow copy of the original object.
 * This can be used if the default mechanism of creating a new instance
 * does not handle the object's non-persistent attributes correctly.
 *
 * @see #useCloneCopyPolicy()
 */
public void useCloneCopyPolicy(String cloneMethodName) {
  CloneCopyPolicy policy = new CloneCopyPolicy();
  policy.setMethodName(cloneMethodName);
  setCopyPolicy(policy);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
public CopyPolicy getCopyPolicy() {
  if (methodName == null && workingCopyMethodName == null){
    throw ValidationException.copyPolicyMustSpecifyEitherMethodOrWorkingCopyMethod(getLocation());
  }
  
  CloneCopyPolicy copyPolicy = new CloneCopyPolicy();
  copyPolicy.setMethodName(methodName);
  copyPolicy.setWorkingCopyMethodName(workingCopyMethodName);
  return copyPolicy;
}
 
org.eclipse.persistence.descriptors.copyingCloneCopyPolicy<init>

Popular methods of CloneCopyPolicy

  • 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.
  • 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

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Permission (java.security)
    Legacy security code; do not use.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Table (org.hibernate.mapping)
    A relational table
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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