Tabnine Logo
AnnotationPersistenceMappingParser.toTableName
Code IndexAdd Tabnine to your IDE (free)

How to use
toTableName
method
in
org.apache.openjpa.persistence.jdbc.AnnotationPersistenceMappingParser

Best Java code snippets using org.apache.openjpa.persistence.jdbc.AnnotationPersistenceMappingParser.toTableName (Showing top 4 results out of 315)

origin: org.apache.openjpa/com.springsource.org.apache.openjpa

/**
 * Set class table.
 */
private void parseTable(ClassMapping cm, Table table) {
  String tableName = toTableName(table.schema(), table.name());
  if (tableName != null)
    cm.getMappingInfo().setTableName(tableName);
  for (UniqueConstraint uniqueConstraint:table.uniqueConstraints()) {
    Unique unique = newUnique(cm, null, uniqueConstraint.columnNames());
    cm.getMappingInfo().addUnique(unique);
  }
}
origin: org.apache.openjpa/com.springsource.org.apache.openjpa

/**
 * Parse @JoinTable.
 */
private void parseJoinTable(FieldMapping fm, JoinTable join) {
  fm.getMappingInfo().setTableName(toTableName(join.schema(),
    join.name()));
  parseJoinColumns(fm, fm.getMappingInfo(), false, join.joinColumns());
  parseJoinColumns(fm, fm.getElementMapping().getValueInfo(), false,
    join.inverseJoinColumns());
}
origin: org.apache.openjpa/com.springsource.org.apache.openjpa

/**
 * Parse @ContainerTable.
 */
protected void parseContainerTable(FieldMapping fm, ContainerTable ctbl) {
  fm.getMappingInfo().setTableName(toTableName(ctbl.schema(),
    ctbl.name()));
  parseXJoinColumns(fm, fm.getMappingInfo(), false, ctbl.joinColumns());
  if (ctbl.joinForeignKey().specified())
    parseForeignKey(fm.getMappingInfo(), ctbl.joinForeignKey());
  if (ctbl.joinIndex().specified())
    parseIndex(fm.getMappingInfo(), ctbl.joinIndex());
}
origin: org.apache.openjpa/com.springsource.org.apache.openjpa

meta.setTable(toTableName(gen.schema(), gen.table()));
meta.setPrimaryKeyColumn(gen.pkColumnName());
meta.setSequenceColumn(gen.valueColumnName());
org.apache.openjpa.persistence.jdbcAnnotationPersistenceMappingParsertoTableName

Javadoc

Form a qualified table name from a schema and table name.

Popular methods of AnnotationPersistenceMappingParser

  • <init>
  • getLog
  • getRepository
  • getSourceFile
  • handleUnknownClassMappingAnnotation
    Allow subclasses to handle unknown annotations.
  • handleUnknownMemberMappingAnnotation
    Allow subclasses to handle unknown annotations.
  • handleUnknownPackageMappingAnnotation
    Allow subclasses to handle unknown annotations.
  • newColumn
    Create a new schema column with information from the given annotation.
  • parseAssociationOverrides
    Parse given @AssociationOverride annotations on an embedded mapping.
  • parseAttributeOverrides
    Parse given @AttributeOverride annotations on an embedded mapping.
  • parseColumns
    Parse @Column(s).
  • parseContainerTable
    Parse @ContainerTable.
  • parseColumns,
  • parseContainerTable,
  • parseDataStoreIdColumn,
  • parseDiscriminatorColumn,
  • parseElementColumns,
  • parseElementJoinColumns,
  • parseEmbeddedMapping,
  • parseEnumerated,
  • parseForeignKey,
  • parseIndex

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Permission (java.security)
    Legacy security code; do not use.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • ImageIO (javax.imageio)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top plugins for Android Studio
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