Tabnine Logo
ElementJoinColumn.referencedAttributeName
Code IndexAdd Tabnine to your IDE (free)

How to use
referencedAttributeName
method
in
org.apache.openjpa.persistence.jdbc.ElementJoinColumn

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

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

/**
 * Create a new schema column with information from the given annotation.
 */
private static Column newColumn(ElementJoinColumn join) {
  Column col = new Column();
  if (!StringUtils.isEmpty(join.name()))
    col.setName(join.name());
  if (!StringUtils.isEmpty(join.columnDefinition()))
    col.setTypeName(join.columnDefinition());
  if (!StringUtils.isEmpty(join.referencedColumnName()))
    col.setTarget(join.referencedColumnName());
  if (!StringUtils.isEmpty(join.referencedAttributeName()))
    col.setTargetField(join.referencedAttributeName());
  col.setNotNull(!join.nullable());
  col.setFlag (Column.FLAG_UNINSERTABLE, !join.insertable ());
  col.setFlag (Column.FLAG_UNUPDATABLE, !join.updatable ());
  return col;
}

origin: org.apache.openejb.patch/openjpa

/**
 * Create a new schema column with information from the given annotation.
 */
private Column newColumn(ElementJoinColumn join, boolean delimit) {
  Column col = new Column();
  if (!StringUtils.isEmpty(join.name()))
    col.setIdentifier(DBIdentifier.newColumn(join.name(), delimit));
  if (!StringUtils.isEmpty(join.columnDefinition()))
    col.setTypeIdentifier(DBIdentifier.newColumnDefinition(join.columnDefinition()));
  if (!StringUtils.isEmpty(join.referencedColumnName()))
    setTargetIdentifier(col, join.referencedColumnName());
  if (!StringUtils.isEmpty(join.referencedAttributeName()))
    col.setTargetField(join.referencedAttributeName());
  col.setNotNull(!join.nullable());
  col.setFlag (Column.FLAG_UNINSERTABLE, !join.insertable ());
  col.setFlag (Column.FLAG_UNUPDATABLE, !join.updatable ());
  return col;
}

origin: org.apache.openjpa/openjpa-persistence-jdbc

/**
 * Create a new schema column with information from the given annotation.
 */
private Column newColumn(ElementJoinColumn join, boolean delimit) {
  Column col = new Column();
  if (!StringUtil.isEmpty(join.name()))
    col.setIdentifier(DBIdentifier.newColumn(join.name(), delimit));
  if (!StringUtil.isEmpty(join.columnDefinition()))
    col.setTypeIdentifier(DBIdentifier.newColumnDefinition(join.columnDefinition()));
  if (!StringUtil.isEmpty(join.referencedColumnName()))
    setTargetIdentifier(col, join.referencedColumnName());
  if (!StringUtil.isEmpty(join.referencedAttributeName()))
    col.setTargetField(join.referencedAttributeName());
  col.setNotNull(!join.nullable());
  col.setFlag (Column.FLAG_UNINSERTABLE, !join.insertable ());
  col.setFlag (Column.FLAG_UNUPDATABLE, !join.updatable ());
  return col;
}

origin: org.apache.openjpa/openjpa-all

/**
 * Create a new schema column with information from the given annotation.
 */
private Column newColumn(ElementJoinColumn join, boolean delimit) {
  Column col = new Column();
  if (!StringUtil.isEmpty(join.name()))
    col.setIdentifier(DBIdentifier.newColumn(join.name(), delimit));
  if (!StringUtil.isEmpty(join.columnDefinition()))
    col.setTypeIdentifier(DBIdentifier.newColumnDefinition(join.columnDefinition()));
  if (!StringUtil.isEmpty(join.referencedColumnName()))
    setTargetIdentifier(col, join.referencedColumnName());
  if (!StringUtil.isEmpty(join.referencedAttributeName()))
    col.setTargetField(join.referencedAttributeName());
  col.setNotNull(!join.nullable());
  col.setFlag (Column.FLAG_UNINSERTABLE, !join.insertable ());
  col.setFlag (Column.FLAG_UNUPDATABLE, !join.updatable ());
  return col;
}

org.apache.openjpa.persistence.jdbcElementJoinColumnreferencedAttributeName

Popular methods of ElementJoinColumn

  • columnDefinition
  • insertable
  • name
  • nullable
  • referencedColumnName
  • unique
  • updatable
  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Option (scala)
  • Top plugins for WebStorm
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