Tabnine Logo
QueryArgument.setNullable
Code IndexAdd Tabnine to your IDE (free)

How to use
setNullable
method
in
org.eclipse.persistence.internal.descriptors.QueryArgument

Best Java code snippets using org.eclipse.persistence.internal.descriptors.QueryArgument.setNullable (Showing top 2 results out of 315)

origin: com.haulmont.thirdparty/eclipselink

public Object getAttributeValueFromObject(Object object) {
  DatabaseQuery query = (DatabaseQuery)object;
  List<String> arguments = query.getArguments();
  List<String> types = query.getArgumentTypeNames();
  List<Object> values = query.getArgumentValues();
  Vector queryArguments = new Vector(arguments.size());
  for (int index = 0; index < arguments.size(); index++) {
    QueryArgument queryArgument = new QueryArgument();
    queryArgument.setKey(arguments.get(index));
    if (!types.isEmpty()) {
      queryArgument.setTypeName(types.get(index));
    }
    if (!values.isEmpty()) {
      queryArgument.setValue(values.get(index));
    }
    if (query.hasNullableArguments()
        && query.getNullableArguments().contains(new DatabaseField((String)queryArgument.getKey()))) {
      queryArgument.setNullable(true);
    }
    queryArguments.add(queryArgument);
  }
  return queryArguments;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

@Override
public Object getAttributeValueFromObject(Object object) {
  DatabaseQuery query = (DatabaseQuery)object;
  List<String> arguments = query.getArguments();
  List<String> types = query.getArgumentTypeNames();
  List<Object> values = query.getArgumentValues();
  Vector queryArguments = new Vector(arguments.size());
  for (int index = 0; index < arguments.size(); index++) {
    QueryArgument queryArgument = new QueryArgument();
    queryArgument.setKey(arguments.get(index));
    if (!types.isEmpty()) {
      queryArgument.setTypeName(types.get(index));
    }
    if (!values.isEmpty()) {
      queryArgument.setValue(values.get(index));
    }
    if (query.hasNullableArguments()
        && query.getNullableArguments().contains(new DatabaseField((String)queryArgument.getKey()))) {
      queryArgument.setNullable(true);
    }
    queryArguments.add(queryArgument);
  }
  return queryArguments;
}
org.eclipse.persistence.internal.descriptorsQueryArgumentsetNullable

Popular methods of QueryArgument

  • <init>
  • getKey
  • getType
  • getValue
  • setKey
  • setTypeName
    INTERNAL: Set the classname of the type. This information will be used to avoid Mapping Workbench cl
  • setValue
  • isNullable

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Best plugins for Eclipse
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