Tabnine Logo
IdentifierRule.getCanDelimit
Code IndexAdd Tabnine to your IDE (free)

How to use
getCanDelimit
method
in
org.apache.openjpa.lib.identifier.IdentifierRule

Best Java code snippets using org.apache.openjpa.lib.identifier.IdentifierRule.getCanDelimit (Showing top 6 results out of 315)

origin: org.apache.openejb.patch/openjpa

public boolean requiresDelimiters(IdentifierConfiguration config, IdentifierRule rule, String name) {
  if (rule == null) {
    throw new IllegalArgumentException(_loc.get("no-rules-provided").getMessage());
  }
  if (rule.getCanDelimit() && !isDelimited(config, rule, name) && rule.requiresDelimiters(name)) {
    return true;
  }
  return false;
}

origin: org.apache.openjpa/openjpa-all

public boolean requiresDelimiters(IdentifierConfiguration config, IdentifierRule rule, String name) {
  if (rule == null) {
    throw new IllegalArgumentException(_loc.get("no-rules-provided").getMessage());
  }
  if (rule.getCanDelimit() && !isDelimited(config, rule, name) && rule.requiresDelimiters(name)) {
    return true;
  }
  return false;
}

origin: org.apache.openjpa/openjpa-lib

public boolean requiresDelimiters(IdentifierConfiguration config, IdentifierRule rule, String name) {
  if (rule == null) {
    throw new IllegalArgumentException(_loc.get("no-rules-provided").getMessage());
  }
  if (rule.getCanDelimit() && !isDelimited(config, rule, name) && rule.requiresDelimiters(name)) {
    return true;
  }
  return false;
}

origin: org.apache.openejb.patch/openjpa

public String delimit(IdentifierConfiguration config, IdentifierRule rule, String name, boolean force) {
  if (!rule.getCanDelimit() || StringUtils.isEmpty(name)) {
    return name;
  }
  if ((force && !isDelimited(config, rule, name)) || requiresDelimiters(config, rule, name)) {
    return config.getLeadingDelimiter() + name + config.getTrailingDelimiter();
  }
  return name;
}
origin: org.apache.openjpa/openjpa-all

public String delimit(IdentifierConfiguration config, IdentifierRule rule, String name, boolean force) {
  if (!rule.getCanDelimit() || StringUtil.isEmpty(name)) {
    return name;
  }
  if ((force && !isDelimited(config, rule, name)) || requiresDelimiters(config, rule, name)) {
    return config.getLeadingDelimiter() + name + config.getTrailingDelimiter();
  }
  return name;
}
origin: org.apache.openjpa/openjpa-lib

public String delimit(IdentifierConfiguration config, IdentifierRule rule, String name, boolean force) {
  if (!rule.getCanDelimit() || StringUtil.isEmpty(name)) {
    return name;
  }
  if ((force && !isDelimited(config, rule, name)) || requiresDelimiters(config, rule, name)) {
    return config.getLeadingDelimiter() + name + config.getTrailingDelimiter();
  }
  return name;
}
org.apache.openjpa.lib.identifierIdentifierRulegetCanDelimit

Popular methods of IdentifierRule

  • getMaxLength
  • getName
  • getDelimitReservedWords
  • getMustDelimit
  • getReservedWords
  • getSpecialCharacters
  • isMustBeginWithLetter
  • isOnlyLettersDigitsUnderscores
  • isReservedWord
  • requiresDelimiters
    SQL identifier rules: 1) Can be up to 128 characters long 2) Must begin with a letter 3) Can contain

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JList (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top PhpStorm plugins
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