Tabnine Logo
CascadeLockingPolicy.initUnmappedFieldsQuery
Code IndexAdd Tabnine to your IDE (free)

How to use
initUnmappedFieldsQuery
method
in
org.eclipse.persistence.internal.descriptors.CascadeLockingPolicy

Best Java code snippets using org.eclipse.persistence.internal.descriptors.CascadeLockingPolicy.initUnmappedFieldsQuery (Showing top 3 results out of 315)

origin: com.haulmont.thirdparty/eclipselink

/**
* INTERNAL:
* Identify mapped and not mapped fields (should be done once).
* The result - either two non-empty Maps m_unmappedQueryKeyFields and m_mappedQueryKeyFields,
* or m_unmappedQueryKeyFields == null and m_mappedQueryKeyFields == m_queryKeyFields.
*/
public void initUnmappedFields(UnitOfWorkImpl uow) {
  if(!m_hasCheckedForUnmappedFields) {
    m_mappedQueryKeyFields = new HashMap<DatabaseField, DatabaseField>();
    m_unmappedQueryKeyFields = new HashMap<DatabaseField, DatabaseField>();
    Iterator<Map.Entry<DatabaseField, DatabaseField>> it = m_queryKeyFields.entrySet().iterator();
    while(it.hasNext()) {
      Map.Entry<DatabaseField, DatabaseField> entry = it.next();
      if(m_descriptor.getObjectBuilder().getMappingForField(entry.getValue()) == null) {
        m_unmappedQueryKeyFields.put(entry.getKey(), entry.getValue());
      } else {
        m_mappedQueryKeyFields.put(entry.getKey(), entry.getValue());
      }
    }
    if(m_unmappedQueryKeyFields.isEmpty()) {
      m_unmappedQueryKeyFields = null;
      m_mappedQueryKeyFields = m_queryKeyFields;
    }
    initUnmappedFieldsQuery(uow);
    m_hasCheckedForUnmappedFields = true;
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
* INTERNAL:
* Identify mapped and not mapped fields (should be done once).
* The result - either two non-empty Maps m_unmappedQueryKeyFields and m_mappedQueryKeyFields,
* or m_unmappedQueryKeyFields == null and m_mappedQueryKeyFields == m_queryKeyFields.
*/
public void initUnmappedFields(UnitOfWorkImpl uow) {
  if(!m_hasCheckedForUnmappedFields) {
    m_mappedQueryKeyFields = new HashMap<DatabaseField, DatabaseField>();
    m_unmappedQueryKeyFields = new HashMap<DatabaseField, DatabaseField>();
    Iterator<Map.Entry<DatabaseField, DatabaseField>> it = m_queryKeyFields.entrySet().iterator();
    while(it.hasNext()) {
      Map.Entry<DatabaseField, DatabaseField> entry = it.next();
      if(m_descriptor.getObjectBuilder().getMappingForField(entry.getValue()) == null) {
        m_unmappedQueryKeyFields.put(entry.getKey(), entry.getValue());
      } else {
        m_mappedQueryKeyFields.put(entry.getKey(), entry.getValue());
      }
    }
    if(m_unmappedQueryKeyFields.isEmpty()) {
      m_unmappedQueryKeyFields = null;
      m_mappedQueryKeyFields = m_queryKeyFields;
    }
    initUnmappedFieldsQuery(uow);
    m_hasCheckedForUnmappedFields = true;
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
* INTERNAL:
* Identify mapped and not mapped fields (should be done once).
* The result - either two non-empty Maps m_unmappedQueryKeyFields and m_mappedQueryKeyFields,
* or m_unmappedQueryKeyFields == null and m_mappedQueryKeyFields == m_queryKeyFields.
*/
public void initUnmappedFields(UnitOfWorkImpl uow) {
  if(!m_hasCheckedForUnmappedFields) {
    m_mappedQueryKeyFields = new HashMap<DatabaseField, DatabaseField>();
    m_unmappedQueryKeyFields = new HashMap<DatabaseField, DatabaseField>();
    Iterator<Map.Entry<DatabaseField, DatabaseField>> it = m_queryKeyFields.entrySet().iterator();
    while(it.hasNext()) {
      Map.Entry<DatabaseField, DatabaseField> entry = it.next();
      if(m_descriptor.getObjectBuilder().getMappingForField(entry.getValue()) == null) {
        m_unmappedQueryKeyFields.put(entry.getKey(), entry.getValue());
      } else {
        m_mappedQueryKeyFields.put(entry.getKey(), entry.getValue());
      }
    }
    if(m_unmappedQueryKeyFields.isEmpty()) {
      m_unmappedQueryKeyFields = null;
      m_mappedQueryKeyFields = m_queryKeyFields;
    }
    initUnmappedFieldsQuery(uow);
    m_hasCheckedForUnmappedFields = true;
  }
}
org.eclipse.persistence.internal.descriptorsCascadeLockingPolicyinitUnmappedFieldsQuery

Javadoc

INTERNAL: This method called in case there are m_unmappedQueryKeyFields. It creates a query that would fetch the values for this fields from the db.

Popular methods of CascadeLockingPolicy

  • <init>
    INTERNAL:
  • getMappedTranslationRow
    INTERNAL:
  • getParentDescriptorFromInheritancePolicy
    Get the descriptor that really represents this object In the case of inheritance, the object may rep
  • getParentMapping
    INTERNAL:
  • getQuery
    INTERNAL:
  • getUnmappedTranslationRow
    INTERNAL:
  • initUnmappedFields
    INTERNAL: Identify mapped and not mapped fields (should be done once). The result - either two non-e
  • lockNotifyParent
    INTERNAL:
  • setQueryKeyFields
    INTERNAL:
  • setShouldHandleUnmappedFields
    INTERNAL: Indicates whether to expect unmapped fields. That should be set to true for Unidirectional

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in 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