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

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

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

origin: org.apache.openejb.patch/openjpa-jdbc

private int getMaxLen(String rule, DBIdentifier name, int maxLen) {
  IdentifierConfiguration config = getIdentifierConfiguration();
  if (maxLen < 1) {
    IdentifierRule nrule = config.getIdentifierRule(rule);
    maxLen = nrule.getMaxLength();
  }
  // Subtract delimiter length if name is delimited or will be delimited
  if (config.delimitAll() || name.isDelimited()) {
    maxLen = maxLen - (config.getLeadingDelimiter().length() + config.getTrailingDelimiter().length());
  }
  
  return maxLen;
}

origin: org.apache.openjpa/openjpa-all

private int getMaxLen(String rule, DBIdentifier name, int maxLen) {
  IdentifierConfiguration config = getIdentifierConfiguration();
  if (maxLen < 1) {
    IdentifierRule nrule = config.getIdentifierRule(rule);
    maxLen = nrule.getMaxLength();
  }
  // Subtract delimiter length if name is delimited or will be delimited
  if (config.delimitAll() || name.isDelimited()) {
    maxLen = maxLen - (config.getLeadingDelimiter().length() + config.getTrailingDelimiter().length());
  }
  
  return maxLen;
}

origin: org.apache.openjpa/openjpa-jdbc

private int getMaxLen(String rule, DBIdentifier name, int maxLen) {
  IdentifierConfiguration config = getIdentifierConfiguration();
  if (maxLen < 1) {
    IdentifierRule nrule = config.getIdentifierRule(rule);
    maxLen = nrule.getMaxLength();
  }
  // Subtract delimiter length if name is delimited or will be delimited
  if (config.delimitAll() || name.isDelimited()) {
    maxLen = maxLen - (config.getLeadingDelimiter().length() + config.getTrailingDelimiter().length());
  }
  
  return maxLen;
}

origin: org.apache.openejb.patch/openjpa

private int getMaxLen(String rule, DBIdentifier name, int maxLen) {
  IdentifierConfiguration config = getIdentifierConfiguration();
  if (maxLen < 1) {
    IdentifierRule nrule = config.getIdentifierRule(rule);
    maxLen = nrule.getMaxLength();
  }
  // Subtract delimiter length if name is delimited or will be delimited
  if (config.delimitAll() || name.isDelimited()) {
    maxLen = maxLen - (config.getLeadingDelimiter().length() + config.getTrailingDelimiter().length());
  }
  
  return maxLen;
}

org.apache.openjpa.lib.identifierIdentifierRulegetMaxLength

Popular methods of IdentifierRule

  • getName
  • getCanDelimit
  • 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

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JFileChooser (javax.swing)
  • Best IntelliJ 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