Tabnine Logo
CopyPolicy.initialize
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

getCopyPolicy().initialize(session);
getInstantiationPolicy().initialize(session);
if (getSchemaReference() != null) {
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

getCopyPolicy().initialize(session);
getInstantiationPolicy().initialize(session);
origin: com.haulmont.thirdparty/eclipselink

getCopyPolicy().initialize(session);
getInstantiationPolicy().initialize(session);
getCachePolicy().initialize(this, session);
origin: org.eclipse.persistence/org.eclipse.persistence.core

getCopyPolicy().initialize(session);
getInstantiationPolicy().initialize(session);
getCachePolicy().initialize(this, session);
origin: com.haulmont.thirdparty/eclipselink

copyPolicy.initialize(session);
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Used to initialize a remote descriptor.
 */
public void remoteInitialization(DistributedSession session) {
  // These cached settings on the project must be set even if descriptor is initialized.
  if (getHistoryPolicy() != null) {
    session.getProject().setHasGenericHistorySupport(true);
  }
  // Record that there is an isolated class in the project.
  if (isIsolated()) {
    session.getProject().setHasIsolatedClasses(true);
  }
  if (!shouldIsolateObjectsInUnitOfWork() && !shouldBeReadOnly()) {
    session.getProject().setHasNonIsolatedUOWClasses(true);
  }
  
  for (DatabaseMapping mapping : getMappings()) {
    mapping.remoteInitialization(session);
  }
  getEventManager().remoteInitialization(session);
  getInstantiationPolicy().initialize(session);
  getCopyPolicy().initialize(session);
  if (hasInheritance()) {
    getInheritancePolicy().remoteInitialization(session);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

copyPolicy.initialize(session);
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Used to initialize a remote descriptor.
 */
public void remoteInitialization(DistributedSession session) {
  // These cached settings on the project must be set even if descriptor is initialized.
  if (getHistoryPolicy() != null) {
    session.getProject().setHasGenericHistorySupport(true);
  }
  // Record that there is an isolated class in the project.
  if (!getCachePolicy().isSharedIsolation()) {
    session.getProject().setHasIsolatedClasses(true);
  }
  if (!getCachePolicy().shouldIsolateObjectsInUnitOfWork() && !shouldBeReadOnly()) {
    session.getProject().setHasNonIsolatedUOWClasses(true);
  }
  for (DatabaseMapping mapping : getMappings()) {
    mapping.remoteInitialization(session);
  }
  getEventManager().remoteInitialization(session);
  getInstantiationPolicy().initialize(session);
  getCopyPolicy().initialize(session);
  if (hasInheritance()) {
    getInheritancePolicy().remoteInitialization(session);
  }
  if (getCMPPolicy() != null) {
    getCMPPolicy().remoteInitialize(this, session);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Used to initialize a remote descriptor.
 */
public void remoteInitialization(DistributedSession session) {
  // These cached settings on the project must be set even if descriptor is initialized.
  if (getHistoryPolicy() != null) {
    session.getProject().setHasGenericHistorySupport(true);
  }
  // Record that there is an isolated class in the project.
  if (!getCachePolicy().isSharedIsolation()) {
    session.getProject().setHasIsolatedClasses(true);
  }
  if (!getCachePolicy().shouldIsolateObjectsInUnitOfWork() && !shouldBeReadOnly()) {
    session.getProject().setHasNonIsolatedUOWClasses(true);
  }
  
  for (DatabaseMapping mapping : getMappings()) {
    mapping.remoteInitialization(session);
  }
  getEventManager().remoteInitialization(session);
  getInstantiationPolicy().initialize(session);
  getCopyPolicy().initialize(session);
  if (hasInheritance()) {
    getInheritancePolicy().remoteInitialization(session);
  }
  if (getCMPPolicy() != null) {
    getCMPPolicy().remoteInitialize(this, session);
  }
}
org.eclipse.persistence.descriptors.copyingCopyPolicyinitialize

Javadoc

Allow for any initialization or validation required.

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
  • buildsNewInstance
    Return if this copy policy creates a new instance, vs a clone.
  • clone
    Clone the CopyPolicy.
  • 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

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Reference (javax.naming)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 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