DBIdentifier.getNameInternal
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.apache.openjpa.jdbc.identifier.DBIdentifier.getNameInternal (Showing top 20 results out of 315)

  • Common ways to obtain DBIdentifier
private void myMethod () {
DBIdentifier d =
  • String name;DBIdentifier.DBIdentifierType id;DBIdentifier.newIdentifier(name, id)
  • String name;DBIdentifier.newColumn(name)
  • Column col;col.getIdentifier()
  • Smart code suggestions by Codota
}
origin: org.apache.openjpa/openjpa-jdbc

private boolean equals(DBIdentifier sName, boolean ignoreCase) {
  if (sName.getNameInternal() == null && getNameInternal() == null) {
    return true;
  }
  if (getNameInternal() == null) {
    return false;
  }
  if (getIgnoreCase() || sName.getIgnoreCase() ||
    ignoreCase || !Normalizer.isDelimited(getNameInternal())) {
    return getNameInternal().equalsIgnoreCase(sName.getNameInternal());
  }
  return getNameInternal().equals(sName.getNameInternal());
}
origin: org.apache.openjpa/openjpa-all

private boolean equals(DBIdentifier sName, boolean ignoreCase) {
  if (sName.getNameInternal() == null && getNameInternal() == null) {
    return true;
  }
  if (getNameInternal() == null) {
    return false;
  }
  if (getIgnoreCase() || sName.getIgnoreCase() ||
    ignoreCase || !Normalizer.isDelimited(getNameInternal())) {
    return getNameInternal().equalsIgnoreCase(sName.getNameInternal());
  }
  return getNameInternal().equals(sName.getNameInternal());
}
origin: org.apache.openjpa/openjpa-all

/**
 * Returns true if the identifier is delimited.
 */
public boolean isDelimited() {
  if (DBIdentifier.isEmpty(this)) {
    return false;
  }
  return Normalizer.isDelimited(getNameInternal());
}
origin: org.apache.openjpa/openjpa-jdbc

/**
 * Returns true if the identifier is delimited.
 */
public boolean isDelimited() {
  if (DBIdentifier.isEmpty(this)) {
    return false;
  }
  return Normalizer.isDelimited(getNameInternal());
}
origin: org.apache.openejb.patch/openjpa-jdbc

/**
 * Returns true if the identifier is delimited.
 */
public boolean isDelimited() {
  if (DBIdentifier.isEmpty(this)) {
    return false;
  }
  return Normalizer.isDelimited(getNameInternal());
}
origin: org.apache.openejb.patch/openjpa

/**
 * Returns true if the identifier is delimited.
 */
public boolean isDelimited() {
  if (DBIdentifier.isEmpty(this)) {
    return false;
  }
  return Normalizer.isDelimited(getNameInternal());
}
origin: org.apache.openjpa/openjpa-jdbc

/**
 * Returns a new DBIdentifier with the given string combined using 
 * delimiting rules and appropriate separators.
 * @param name
 * @param length
 */
public static DBIdentifier combine(DBIdentifier name, String str) {
  DBIdentifier sName = name.clone();
  String strName = sName.getNameInternal();
  strName = Normalizer.combine(strName, str);
  sName.setNameInternal(strName);
  return sName;
}
origin: org.apache.openejb.patch/openjpa

/**
 * Returns a new DBIdentifier with the given string appended.
 * @param name
 * @param length
 * @return
 */
public static DBIdentifier append(DBIdentifier name, String str) {
  DBIdentifier sName = name.clone();
  String strName = sName.getNameInternal();
  strName = Normalizer.append(strName, str);
  sName.setNameInternal(strName);
  return sName;
}
origin: org.apache.openjpa/openjpa-all

/**
 * Returns a new DBIdentifier with the given string appended.
 * @param name
 * @param length
 */
public static DBIdentifier append(DBIdentifier name, String str) {
  DBIdentifier sName = name.clone();
  String strName = sName.getNameInternal();
  strName = Normalizer.append(strName, str);
  sName.setNameInternal(strName);
  return sName;
}
origin: org.apache.openjpa/openjpa-jdbc

/**
 * Returns a new DBIdentifier with the given string appended.
 * @param name
 * @param length
 */
public static DBIdentifier append(DBIdentifier name, String str) {
  DBIdentifier sName = name.clone();
  String strName = sName.getNameInternal();
  strName = Normalizer.append(strName, str);
  sName.setNameInternal(strName);
  return sName;
}
origin: org.apache.openjpa/openjpa-all

/**
 * Returns a new DBIdentifier with the given string combined using 
 * delimiting rules and appropriate separators.
 * @param name
 * @param length
 */
public static DBIdentifier combine(DBIdentifier name, String str) {
  DBIdentifier sName = name.clone();
  String strName = sName.getNameInternal();
  strName = Normalizer.combine(strName, str);
  sName.setNameInternal(strName);
  return sName;
}
origin: org.apache.openejb.patch/openjpa

/**
 * Returns a new DBIdentifier with the given string combined using 
 * delimiting rules and appropriate separators.
 * @param name
 * @param length
 * @return
 */
public static DBIdentifier combine(DBIdentifier name, String str) {
  DBIdentifier sName = name.clone();
  String strName = sName.getNameInternal();
  strName = Normalizer.combine(strName, str);
  sName.setNameInternal(strName);
  return sName;
}
origin: org.apache.openjpa/openjpa-jdbc

/**
 * Returns a copy of an identifier with name trimmed to null.
 * @param name
 */
public static DBIdentifier trimToNull(DBIdentifier name) {
  if (DBIdentifier.isNull(name)) {
    return name;
  }
  DBIdentifier sName = name.clone();
  sName.setNameInternal(StringUtil.trimToNull(sName.getNameInternal()));
  return sName;
}
origin: org.apache.openjpa/openjpa-jdbc

/**
 * Returns a new DBIdentifier truncated to length
 * @param name
 * @param length
 */
public static DBIdentifier truncate(DBIdentifier name, int length) {
  DBIdentifier sName = name.clone();
  String strName = sName.getNameInternal();
  if (StringUtil.isEmpty(strName)) {
    return sName;
  }
  strName = Normalizer.truncate(strName, length);
  sName.setNameInternal(strName);
  return sName;
}
origin: org.apache.openjpa/openjpa-all

/**
 * Returns a copy of an identifier with name trimmed to null.
 * @param name
 */
public static DBIdentifier trimToNull(DBIdentifier name) {
  if (DBIdentifier.isNull(name)) {
    return name;
  }
  DBIdentifier sName = name.clone();
  sName.setNameInternal(StringUtil.trimToNull(sName.getNameInternal()));
  return sName;
}
origin: org.apache.openjpa/openjpa-all

/**
 * Clones an identifier using deep copy.
 */
public DBIdentifier clone() {
  DBIdentifier sName = new DBIdentifier();
  sName.setNameInternal(getNameInternal());
  sName.setType(getType());
  sName.setIgnoreCase(getIgnoreCase());
  return sName;
}

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

/**
 * Clones an identifier using deep copy.
 */
public DBIdentifier clone() {
  DBIdentifier sName = new DBIdentifier();
  sName.setNameInternal(getNameInternal());
  sName.setType(getType());
  sName.setIgnoreCase(getIgnoreCase());
  return sName;
}

origin: org.apache.openejb.patch/openjpa

/**
 * Clones an identifier using deep copy.
 */
public DBIdentifier clone() {
  DBIdentifier sName = new DBIdentifier();
  sName.setNameInternal(getNameInternal());
  sName.setType(getType());
  sName.setIgnoreCase(getIgnoreCase());
  return sName;
}

origin: org.apache.openjpa/openjpa-jdbc

/**
 * Clones an identifier using deep copy.
 */
public DBIdentifier clone() {
  DBIdentifier sName = new DBIdentifier();
  sName.setNameInternal(getNameInternal());
  sName.setType(getType());
  sName.setIgnoreCase(getIgnoreCase());
  return sName;
}

origin: org.apache.openjpa/openjpa-jdbc

/**
 * Set the name of this identifier based upon a given identifier.
 */
public void setName(DBIdentifier name) {
  assertNotNull();
  if (DBIdentifier.isNull(name)) {
    setNameInternal(null);
    setType(name.getType());
    return;
  }
  setNameInternal(name.getNameInternal());
  setType(name.getType());
}
org.apache.openjpa.jdbc.identifierDBIdentifiergetNameInternal

Popular methods of DBIdentifier

  • newColumn
    Constructs a new identifier of type Column,optionally delimiting the name.
  • newSchema
    Constructs a new identifier of type Schema, optionally delimiting the name.
  • clone
    Clones an identifier using deep copy.
  • combine
    Returns a new DBIdentifier with the given string combined using delimiting rules and appropriate sep
  • equalsIgnoreCase
    Static equality operator which ignores case.
  • getName
  • isEmpty
    Returns true if the identifier is null or the name is null or empty.
  • isNull
    Returns true if the identifier is null.
  • newCatalog
    Constructs a new identifier of type Catalog ,optionally delimiting the name.
  • newColumnDefinition
    Constructs a new identifier of type Column Definition.
  • newConstant
    Constructs a new identifier of type Constant.
  • newConstraint
    Constructs a new identifier of type Constraint, optionally delimiting the name.
  • newConstant,
  • newConstraint,
  • newForeignKey,
  • newIndex,
  • newSequence,
  • newTable,
  • toArray,
  • truncate,
  • <init>,
  • append

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Kernel (java.awt.image)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)