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

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

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

Popular methods of ElementJoinColumn

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

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • compareTo (BigDecimal)
  • getExternalFilesDir (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • JFrame (javax.swing)
  • From CI to AI: The AI layer in your organization
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