Tabnine Logo
DatasourcePlatform.getStartDelimiter
Code IndexAdd Tabnine to your IDE (free)

How to use
getStartDelimiter
method
in
org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform

Best Java code snippets using org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform.getStartDelimiter (Showing top 20 results out of 315)

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

/**
 * Get method for table name.
 */
public String getNameDelimited(DatasourcePlatform platform) {
  if (useDelimiters){
    return platform.getStartDelimiter() + name + platform.getEndDelimiter();
  }
  return name;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public String getTableQualifierDelimited(DatasourcePlatform platform) {
  if (useDelimiters && tableQualifier != null && !tableQualifier.equals("")){
    return platform.getStartDelimiter() + tableQualifier + platform.getEndDelimiter();
  }
  return tableQualifier;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Returns this fields name with database delimiters if useDelimiters is true.
 * This method should be called any time the field name is requested for writing SQL.
 */
public String getNameDelimited(DatasourcePlatform platform) {
  if (this.useDelimiters){
    return platform.getStartDelimiter() + this.name + platform.getEndDelimiter();
  }
  return this.name;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public String getTableQualifierDelimited(DatasourcePlatform platform) {
  if (useDelimiters && tableQualifier != null && !tableQualifier.equals("")){
    return platform.getStartDelimiter() + tableQualifier + platform.getEndDelimiter();
  }
  return tableQualifier;
}
 
origin: com.haulmont.thirdparty/eclipselink

public String getTableQualifierDelimited(DatasourcePlatform platform) {
  if (useDelimiters && tableQualifier != null && !tableQualifier.equals("")){
    return platform.getStartDelimiter() + tableQualifier + platform.getEndDelimiter();
  }
  return tableQualifier;
}
 
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Returns this fields name with database delimiters if useDelimiters is true.
 * 
 * This method should be called any time the field name is requested for writing SQL
 * @return
 */
public String getNameDelimited(DatasourcePlatform platform) {
  if (useDelimiters){
    return platform.getStartDelimiter() + name + platform.getEndDelimiter();
  }
  return name;
}
 
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/** 
 * Get method for table name.
 */
public String getNameDelimited(DatasourcePlatform platform) {
  if (useDelimiters){
    return platform.getStartDelimiter() + name + platform.getEndDelimiter();
  }
  return name;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Returns this fields name with database delimiters if useDelimiters is true.
 * This method should be called any time the field name is requested for writing SQL.
 */
public String getNameDelimited(DatasourcePlatform platform) {
  if (this.useDelimiters){
    return platform.getStartDelimiter() + this.name + platform.getEndDelimiter();
  }
  return this.name;
}
 
origin: com.haulmont.thirdparty/eclipselink

/** 
 * Get method for table name.
 */
public String getNameDelimited(DatasourcePlatform platform) {
  if (useDelimiters){
    return platform.getStartDelimiter() + name + platform.getEndDelimiter();
  }
  return name;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Set the unqualified name of the field.
 * 
 * If the name contains database delimiters, they will be stripped and a flag will be set to have them 
 * added when the DatabaseField is written to SQL
 */
public void setName(String name, DatasourcePlatform platform){
  setName(name, platform.getStartDelimiter(), platform.getEndDelimiter());
}
 
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Set the unqualified name of the field.
 * 
 * If the name contains database delimiters, they will be stripped and a flag will be set to have them 
 * added when the DatabaseField is written to SQL
 */
public void setName(String name, DatasourcePlatform platform){
  setName(name, platform.getStartDelimiter(), platform.getEndDelimiter());
}
 
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Set the unqualified name of the field.
 *
 * If the name contains database delimiters, they will be stripped and a flag will be set to have them
 * added when the DatabaseField is written to SQL
 */
public void setName(String name, DatasourcePlatform platform){
  setName(name, platform.getStartDelimiter(), platform.getEndDelimiter());
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

private String getQualifiedName(DatasourcePlatform platform, boolean allowDelimiters){
  if (qualifiedName == null) {
    // Print nested table using the TABLE function.
    DatabaseMapping mapping = queryKeyExpression.getMapping();
    DatabaseTable nestedTable = mapping.getDescriptor().getTables().firstElement();
    DatabaseTable tableAlias = queryKeyExpression.getBaseExpression().aliasForTable(nestedTable);
    StringBuilder name = new StringBuilder();
    name.append("TABLE(");
    if (allowDelimiters && useDelimiters){
      name.append(platform.getStartDelimiter());
    }
    name.append(tableAlias.getName());
    if (allowDelimiters && useDelimiters){
      name.append(platform.getEndDelimiter());
    }
    name.append(".");
    if (allowDelimiters && useDelimiters){
      name.append(platform.getStartDelimiter());
    }
    name.append(mapping.getField().getNameDelimited(platform));
    if (allowDelimiters && useDelimiters){
      name.append(platform.getEndDelimiter());
    }
    name.append(")");
    qualifiedName = name.toString();
  }
  return qualifiedName;
}
origin: com.haulmont.thirdparty/eclipselink

private String getQualifiedName(DatasourcePlatform platform, boolean allowDelimiters){
  if (qualifiedName == null) {
    // Print nested table using the TABLE function.
    DatabaseMapping mapping = queryKeyExpression.getMapping();
    DatabaseTable nestedTable = mapping.getDescriptor().getTables().firstElement();
    DatabaseTable tableAlias = queryKeyExpression.getBaseExpression().aliasForTable(nestedTable);
    StringBuilder name = new StringBuilder();
    name.append("TABLE(");
    if (allowDelimiters && useDelimiters){
      name.append(platform.getStartDelimiter());
    }
    name.append(tableAlias.getName());
    if (allowDelimiters && useDelimiters){
      name.append(platform.getEndDelimiter());
    }
    name.append(".");
    if (allowDelimiters && useDelimiters){
      name.append(platform.getStartDelimiter());
    }
    name.append(mapping.getField().getNameDelimited(platform));
    if (allowDelimiters && useDelimiters){
      name.append(platform.getEndDelimiter());
    }
    name.append(")");
    qualifiedName = name.toString();
  }
  return qualifiedName;
}
 
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public String getQualifiedNameDelimited(DatasourcePlatform platform) {
  if (tableQualifier.equals("")) {
    if (useDelimiters){
      return platform.getStartDelimiter() + getName() + platform.getEndDelimiter();
    } else {
      return getName();
    }
  } else {
    if (useDelimiters){
      return platform.getStartDelimiter() + getTableQualifier() + platform.getEndDelimiter() + "." 
       + platform.getStartDelimiter() + getName() + platform.getEndDelimiter();
    } else {
      return getTableQualifier() + "." + getName();
    }
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public String getQualifiedNameDelimited(DatasourcePlatform platform) {
  if (tableQualifier.equals("")) {
    if (useDelimiters){
      return platform.getStartDelimiter() + getName() + platform.getEndDelimiter();
    } else {
      return getName();
    }
  } else {
    if (useDelimiters){
      return platform.getStartDelimiter() + getTableQualifier() + platform.getEndDelimiter() + "."
       + platform.getStartDelimiter() + getName() + platform.getEndDelimiter();
    } else {
      return getTableQualifier() + "." + getName();
    }
  }
}
origin: com.haulmont.thirdparty/eclipselink

public String getQualifiedNameDelimited(DatasourcePlatform platform) {
  if (tableQualifier.equals("")) {
    if (useDelimiters){
      return platform.getStartDelimiter() + getName() + platform.getEndDelimiter();
    } else {
      return getName();
    }
  } else {
    if (useDelimiters){
      return platform.getStartDelimiter() + getTableQualifier() + platform.getEndDelimiter() + "." 
       + platform.getStartDelimiter() + getName() + platform.getEndDelimiter();
    } else {
      return getTableQualifier() + "." + getName();
    }
  }
}
 
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

private String getQualifiedName(DatasourcePlatform platform, boolean allowDelimiters){
  if (qualifiedName == null) {
    // Print nested table using the TABLE function.
    DatabaseMapping mapping = queryKeyExpression.getMapping();
    DatabaseTable nestedTable = mapping.getDescriptor().getTables().firstElement();
    DatabaseTable tableAlias = queryKeyExpression.getBaseExpression().aliasForTable(nestedTable);
    DatabaseTable nestedTableAlias = queryKeyExpression.aliasForTable(this);
    StringBuffer name = new StringBuffer();
    name.append("TABLE(");
    if (allowDelimiters && useDelimiters){
      name.append(platform.getStartDelimiter());
    }
    name.append(tableAlias.getName());
    if (allowDelimiters && useDelimiters){
      name.append(platform.getEndDelimiter());
    }
    name.append(".");
    if (allowDelimiters && useDelimiters){
      name.append(platform.getStartDelimiter());
    }
    name.append(mapping.getField().getNameDelimited(platform));
    if (allowDelimiters && useDelimiters){
      name.append(platform.getEndDelimiter());
    }
    name.append(")");
    qualifiedName = name.toString();
  }
  return qualifiedName;
}
 
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

String beginQuote = ((DatasourcePlatform)session.getDatasourcePlatform()).getStartDelimiter();
String endQuote = ((DatasourcePlatform)session.getDatasourcePlatform()).getEndDelimiter();
origin: com.haulmont.thirdparty/eclipselink

String beginQuote = ((DatasourcePlatform)session.getDatasourcePlatform()).getStartDelimiter();
String endQuote = ((DatasourcePlatform)session.getDatasourcePlatform()).getEndDelimiter();
org.eclipse.persistence.internal.databaseaccessDatasourcePlatformgetStartDelimiter

Javadoc

Delimiter to use for fields and tables using spaces or other special values. Some databases use different delimiters for the beginning and end of the value. This delimiter indicates the start of the value.

Popular methods of DatasourcePlatform

  • <init>
  • addOperator
  • appendParameter
    Add the parameter. Convert the parameter to a string and write it.
  • copyInto
    Copy the state into the new platform.
  • createConnectionCustomizer
    INTERNAL:
  • createPlatformDefaultSequence
    INTERNAL: Create platform-default Sequence
  • getConversionManager
    The platform hold its own instance of conversion manager to allow customization.
  • getCustomModifyValueForCall
    Allow for the platform to handle the representation of parameters specially.
  • getDefaultSequence
    Get default sequence
  • getEndDelimiter
    Delimiter to use for fields and tables using spaces or other special values. Some databases use diff
  • getPlatformOperators
    Return any platform-specific operators
  • getSequencePreallocationSize
  • getPlatformOperators,
  • getSequencePreallocationSize,
  • getSequences,
  • getTableQualifier,
  • getTimestampQuery,
  • hasDefaultSequence,
  • initializePlatformOperators,
  • sequencesAfterCloneCleanup,
  • setConversionManager

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Kernel (java.awt.image)
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • 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
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • 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