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

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

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

Popular methods of ElementJoinColumn

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JComboBox (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 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