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

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

Best Java code snippets using org.apache.openjpa.persistence.jdbc.ElementJoinColumn.columnDefinition (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.jdbcElementJoinColumncolumnDefinition

Popular methods of ElementJoinColumn

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

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Top Sublime Text 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