congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
CloneCopyPolicy.getMethodName
Code IndexAdd Tabnine to your IDE (free)

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

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

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

/**
 * Return false as a shallow clone is returned, not a new instance.
 */
public boolean buildsNewInstance() {
  return getMethodName() == null;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Return false as a shallow clone is returned, not a new instance.
 */
public boolean buildsNewInstance() {
  return getMethodName() == null;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Return false as a shallow clone is returned, not a new instance.
 */
public boolean buildsNewInstance() {
  return getMethodName() == null;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

  public String toString() {
    return Helper.getShortClassName(this) + "(" + this.getMethodName() + ")";
  }
}
origin: com.haulmont.thirdparty/eclipselink

  public String toString() {
    return Helper.getShortClassName(this) + "(" + this.getMethodName() + ")";
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  public String toString() {
    return Helper.getShortClassName(this) + "(" + this.getMethodName() + ")";
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Clone through calling the clone method.
 */
public Object buildClone(Object domainObject, Session session) throws DescriptorException {
  // Must allow for null clone method for 9.0.4 deployment XML.
  if (this.getMethodName() == null) {
    return getDescriptor().getObjectBuilder().buildNewInstance();
  }
  try {
    if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){
      try {
        return AccessController.doPrivileged(new PrivilegedMethodInvoker(this.getMethod(), 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.getMethod(), 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 calling the clone method.
 */
public Object buildClone(Object domainObject, Session session) throws DescriptorException {
  // Must allow for null clone method for 9.0.4 deployment XML.
  if (this.getMethodName() == null) {
    return getDescriptor().getObjectBuilder().buildNewInstance();
  }
  try {
    if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){
      try {
        return AccessController.doPrivileged(new PrivilegedMethodInvoker(this.getMethod(), 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.getMethod(), 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 calling the clone method.
 */
public Object buildClone(Object domainObject, Session session) throws DescriptorException {
  // Must allow for null clone method for 9.0.4 deployment XML.
  if (this.getMethodName() == null) {
    return getDescriptor().getObjectBuilder().buildNewInstance();
  }
  try {
    if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){
      try {
        return AccessController.doPrivileged(new PrivilegedMethodInvoker(this.getMethod(), 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.getMethod(), 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);
  }
}
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: 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));
    }
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

if ((descriptor.getCopyPolicy() instanceof CloneCopyPolicy) && (((CloneCopyPolicy)descriptor.getCopyPolicy()).getMethodName() != null)) {
  method.addLine("descriptor.useCloneCopyPolicy(\"" + ((CloneCopyPolicy)descriptor.getCopyPolicy()).getMethodName() + "\");");
origin: org.eclipse.persistence/org.eclipse.persistence.core

if ((descriptor.getCopyPolicy() instanceof CloneCopyPolicy) && (((CloneCopyPolicy)descriptor.getCopyPolicy()).getMethodName() != null)) {
  method.addLine("descriptor.useCloneCopyPolicy(\"" + ((CloneCopyPolicy)descriptor.getCopyPolicy()).getMethodName() + "\");");
origin: com.haulmont.thirdparty/eclipselink

if ((descriptor.getCopyPolicy() instanceof CloneCopyPolicy) && (((CloneCopyPolicy)descriptor.getCopyPolicy()).getMethodName() != null)) {
  method.addLine("descriptor.useCloneCopyPolicy(\"" + ((CloneCopyPolicy)descriptor.getCopyPolicy()).getMethodName() + "\");");
org.eclipse.persistence.descriptors.copyingCloneCopyPolicygetMethodName

Javadoc

Return the clone method name.

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

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • 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