JDBCStoreManager.joinSubclass
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.apache.openjpa.jdbc.kernel.JDBCStoreManager.joinSubclass (Showing top 10 results out of 315)

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

/**
 * Helper method to join from class to its subclass. Recursive to allow
 * for multiple hops, starting from the base class.
 */
private static Joins joinSubclass(Select sel, ClassMapping base,
  ClassMapping sub, Joins joins) {
  if (sub == base || sub.getTable() == base.getTable()
    || sel.isSelected(sub.getTable()))
    return null;
  // recurse first so we go least->most derived
  ClassMapping sup = sub.getJoinablePCSuperclassMapping();
  joins = joinSubclass(sel, base, sup, joins);
  if (joins == null)
    joins = sel.newJoins();
  return sub.joinSuperclass(joins, true);
}
origin: org.apache.openjpa/openjpa-all

/**
 * Helper method to join from class to its subclass. Recursive to allow
 * for multiple hops, starting from the base class.
 */
private static Joins joinSubclass(Select sel, ClassMapping base,
  ClassMapping sub, Joins joins) {
  if (sub == base || sub.getTable() == base.getTable()
    || sel.isSelected(sub.getTable()))
    return null;
  // recurse first so we go least->most derived
  ClassMapping sup = sub.getJoinablePCSuperclassMapping();
  joins = joinSubclass(sel, base, sup, joins);
  if (joins == null)
    joins = sel.newJoins();
  return sub.joinSuperclass(joins, true);
}
origin: org.apache.openjpa/openjpa-jdbc

/**
 * Helper method to join from class to its subclass. Recursive to allow
 * for multiple hops, starting from the base class.
 */
private static Joins joinSubclass(Select sel, ClassMapping base,
  ClassMapping sub, Joins joins) {
  if (sub == base || sub.getTable() == base.getTable()
    || sel.isSelected(sub.getTable()))
    return null;
  // recurse first so we go least->most derived
  ClassMapping sup = sub.getJoinablePCSuperclassMapping();
  joins = joinSubclass(sel, base, sup, joins);
  if (joins == null)
    joins = sel.newJoins();
  return sub.joinSuperclass(joins, true);
}
origin: org.apache.openjpa/com.springsource.org.apache.openjpa

/**
 * Helper method to join from class to its subclass. Recursive to allow
 * for multiple hops, starting from the base class.
 */
private static Joins joinSubclass(Select sel, ClassMapping base,
  ClassMapping sub, Joins joins) {
  if (sub == base || sub.getTable() == base.getTable()
    || sel.isSelected(sub.getTable()))
    return null;
  // recurse first so we go least->most derived
  ClassMapping sup = sub.getJoinablePCSuperclassMapping();
  joins = joinSubclass(sel, base, sup, joins);
  if (joins == null)
    joins = sel.newJoins();
  return sub.joinSuperclass(joins, true);
}
origin: org.apache.openejb.patch/openjpa

/**
 * Helper method to join from class to its subclass. Recursive to allow
 * for multiple hops, starting from the base class.
 */
private static Joins joinSubclass(Select sel, ClassMapping base,
  ClassMapping sub, Joins joins) {
  if (sub == base || sub.getTable() == base.getTable()
    || sel.isSelected(sub.getTable()))
    return null;
  // recurse first so we go least->most derived
  ClassMapping sup = sub.getJoinablePCSuperclassMapping();
  joins = joinSubclass(sel, base, sup, joins);
  if (joins == null)
    joins = sel.newJoins();
  return sub.joinSuperclass(joins, true);
}
origin: org.apache.openejb.patch/openjpa-jdbc

sel.where(joinSubclass(sel, mapping, subMappings[i], null));
origin: org.apache.openjpa/com.springsource.org.apache.openjpa

sel.where(joinSubclass(sel, mapping, subMappings[i], null));
origin: org.apache.openejb.patch/openjpa

sel.where(joinSubclass(sel, mapping, subMappings[i], null));
origin: org.apache.openjpa/openjpa-all

sel.where(joinSubclass(sel, mapping, subMappings[i], null));
origin: org.apache.openjpa/openjpa-jdbc

sel.where(joinSubclass(sel, mapping, subMappings[i], null));
org.apache.openjpa.jdbc.kernelJDBCStoreManagerjoinSubclass

Javadoc

Helper method to join from class to its subclass. Recursive to allow for multiple hops, starting from the base class.

Popular methods of JDBCStoreManager

  • getDataStoreIdSequence
  • newDataStoreId
  • setContext
  • <init>
  • connect
    Connect to the db.
  • connectInternal
    Connect to the database. This method is separated out so that it can be overridden.
  • createEagerSelects
    Mark the fields of this mapping as reserved so that eager fetches can't get into infinite recursive
  • customLoad
    Allow the mapping to custom load data. Return null if the mapping does not use custom loading.
  • exists
  • getConnection
  • getInitializeStateResult
    Select the data for the given instance and return the result. Return null if there is no data in the
  • getInitializeStateUnionResult
    Select a union of the data for the given instance from possible concrete mappings and return the res
  • getInitializeStateResult,
  • getInitializeStateUnionResult,
  • getType,
  • getVersion,
  • initializeState,
  • isEmptyResult,
  • load,
  • loadSubclasses,
  • optSelect

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu

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)