congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ReturningPolicy.verifyFieldAndMapping
Code IndexAdd Tabnine to your IDE (free)

How to use
verifyFieldAndMapping
method
in
org.eclipse.persistence.descriptors.ReturningPolicy

Best Java code snippets using org.eclipse.persistence.descriptors.ReturningPolicy.verifyFieldAndMapping (Showing top 9 results out of 315)

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

protected boolean verifyFieldAndMapping(AbstractSession session, DatabaseField field) {
  boolean ok = true;
  verifyField(session, field, getDescriptor());
  DatabaseMapping mapping;
  List readOnlyMappings = getDescriptor().getObjectBuilder().getReadOnlyMappingsForField(field);
  if (readOnlyMappings != null) {
    for (int j = 0; j < readOnlyMappings.size(); j++) {
      mapping = (DatabaseMapping)readOnlyMappings.get(j);
      ok &= verifyFieldAndMapping(session, field, getDescriptor(), mapping);
    }
  }
  mapping = getDescriptor().getObjectBuilder().getMappingForField(field);
  if (mapping != null) {
    ok &= verifyFieldAndMapping(session, field, getDescriptor(), mapping);
  }
  return ok;
}
origin: com.haulmont.thirdparty/eclipselink

protected boolean verifyFieldAndMapping(AbstractSession session, DatabaseField field) {
  boolean ok = true;
  verifyField(session, field, getDescriptor());
  DatabaseMapping mapping;
  List readOnlyMappings = getDescriptor().getObjectBuilder().getReadOnlyMappingsForField(field);
  if (readOnlyMappings != null) {
    for (int j = 0; j < readOnlyMappings.size(); j++) {
      mapping = (DatabaseMapping)readOnlyMappings.get(j);
      ok &= verifyFieldAndMapping(session, field, getDescriptor(), mapping);
    }
  }
  mapping = getDescriptor().getObjectBuilder().getMappingForField(field);
  if (mapping != null) {
    ok &= verifyFieldAndMapping(session, field, getDescriptor(), mapping);
  }
  return ok;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

protected boolean verifyFieldAndMapping(AbstractSession session, DatabaseField field) {
  boolean ok = true;
  verifyField(session, field, getDescriptor());
  DatabaseMapping mapping;
  List readOnlyMappings = getDescriptor().getObjectBuilder().getReadOnlyMappingsForField(field);
  if (readOnlyMappings != null) {
    for (int j = 0; j < readOnlyMappings.size(); j++) {
      mapping = (DatabaseMapping)readOnlyMappings.get(j);
      ok &= verifyFieldAndMapping(session, field, getDescriptor(), mapping);
    }
  }
  mapping = getDescriptor().getObjectBuilder().getMappingForField(field);
  if (mapping != null) {
    ok &= verifyFieldAndMapping(session, field, getDescriptor(), mapping);
  }
  return ok;
}
origin: com.haulmont.thirdparty/eclipselink

if (info != null) {
  infoHashtableUnmapped.remove(field);
  if (verifyFieldAndMapping(session, field)) {
    if (info.getField().getType() == null) {
      addMappedFieldToMain(field, info);
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

if (info != null) {
  infoHashtableUnmapped.remove(field);
  if (verifyFieldAndMapping(session, field)) {
    if (info.getField().getType() == null) {
      addMappedFieldToMain(field, info);
origin: org.eclipse.persistence/org.eclipse.persistence.core

if (info != null) {
  infoHashtableUnmapped.remove(field);
  if (verifyFieldAndMapping(session, field)) {
    if (info.getField().getType() == null) {
      addMappedFieldToMain(field, info);
origin: org.eclipse.persistence/org.eclipse.persistence.core

protected static boolean verifyFieldAndMapping(AbstractSession session, DatabaseField field, ClassDescriptor descriptor, DatabaseMapping mapping) {
  verifyField(session, field, descriptor);
  while (mapping.isAggregateObjectMapping()) {
    ClassDescriptor referenceDescriptor = ((AggregateObjectMapping)mapping).getReferenceDescriptor();
    mapping = referenceDescriptor.getObjectBuilder().getMappingForField(field);
    verifyFieldAndMapping(session, field, referenceDescriptor, mapping);
  }
  if (!mapping.isDirectToFieldMapping() && !mapping.isTransformationMapping()) {
    String mappingTypeName = Helper.getShortClassName(mapping);
    session.getIntegrityChecker().handleError(DescriptorException.returningPolicyMappingNotSupported(field.getName(), mappingTypeName, mapping));
    return false;
  } else {
    return true;
  }
}
origin: com.haulmont.thirdparty/eclipselink

protected static boolean verifyFieldAndMapping(AbstractSession session, DatabaseField field, ClassDescriptor descriptor, DatabaseMapping mapping) {
  verifyField(session, field, descriptor);
  while (mapping.isAggregateObjectMapping()) {
    ClassDescriptor referenceDescriptor = ((AggregateObjectMapping)mapping).getReferenceDescriptor();
    mapping = referenceDescriptor.getObjectBuilder().getMappingForField(field);
    verifyFieldAndMapping(session, field, referenceDescriptor, mapping);
  }
  if (!mapping.isDirectToFieldMapping() && !mapping.isTransformationMapping()) {
    String mappingTypeName = Helper.getShortClassName(mapping);
    session.getIntegrityChecker().handleError(DescriptorException.returningPolicyMappingNotSupported(field.getName(), mappingTypeName, mapping));
    return false;
  } else {
    return true;
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

protected static boolean verifyFieldAndMapping(AbstractSession session, DatabaseField field, ClassDescriptor descriptor, DatabaseMapping mapping) {
  verifyField(session, field, descriptor);
  while (mapping.isAggregateObjectMapping()) {
    ClassDescriptor referenceDescriptor = ((AggregateObjectMapping)mapping).getReferenceDescriptor();
    mapping = referenceDescriptor.getObjectBuilder().getMappingForField(field);
    verifyFieldAndMapping(session, field, referenceDescriptor, mapping);
  }
  if (!mapping.isDirectToFieldMapping() && !mapping.isTransformationMapping()) {
    String mappingTypeName = Helper.getShortClassName(mapping);
    session.getIntegrityChecker().handleError(DescriptorException.returningPolicyMappingNotSupported(field.getName(), mappingTypeName, mapping));
    return false;
  } else {
    return true;
  }
}
org.eclipse.persistence.descriptorsReturningPolicyverifyFieldAndMapping

Popular methods of ReturningPolicy

  • <init>
  • addCollectionToMain
  • addField
    INTERNAL:
  • addFieldForInsert
    PUBLIC:
  • addFieldForInsertReturnOnly
    PUBLIC:
  • addFieldForUpdate
    PUBLIC:
  • addFieldToMain
  • addMappedFieldToMain
  • addUnmappedFieldToMain
  • areCollectionsEqualAsSets
    INTERNAL: Compares two Collections as sets (ignoring the order of the elements). Note that the passe
  • clearInitialization
  • clone
    INTERNAL: Normally cloned when not yet initialized. If initialized ReturningPolicy cloned then the c
  • clearInitialization,
  • clone,
  • copyMainFrom,
  • createCollection,
  • createField,
  • fieldIsNotFromDescriptor,
  • getDescriptor,
  • getField,
  • getFieldInfos,
  • getFieldsToGenerateInsert

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ImageIO (javax.imageio)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Sublime Text for Python
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