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

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

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

Popular methods of ElementJoinColumn

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

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JCheckBox (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 12 Jupyter Notebook extensions
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