Codota Logo
ForeignKey
Code IndexAdd Codota to your IDE (free)

How to use
ForeignKey
in
org.objectstyle.ashwood.dbutil

Best Java code snippets using org.objectstyle.ashwood.dbutil.ForeignKey (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: org.objectstyle.ashwood/ashwood

rs = metaData.getImportedKeys(catalog, schema, name);
while (rs.next()) {
  ForeignKey fk = new ForeignKey();
  foreignKeys.add(fk);
  fk.setOwner(this);
  fk.setPkTableCatalog(rs.getString("PKTABLE_CAT"));
  fk.setPkTableSchema(rs.getString("PKTABLE_SCHEM"));
  fk.setPkTableName(rs.getString("PKTABLE_NAME"));
  fk.setPkColumnName(rs.getString("PKCOLUMN_NAME"));
  fk.setColumnName(rs.getString("FKCOLUMN_NAME"));
  fk.setKeySequence(rs.getShort("KEY_SEQ"));
  fk.setUpdateRule(rs.getShort("UPDATE_RULE"));
  fk.setDeleteRule(rs.getShort("DELETE_RULE"));
  fk.setName(rs.getString("FK_NAME"));
  fk.setPkName(rs.getString("PK_NAME"));
  fk.setDeferrability(rs.getShort("DEFERRABILITY"));
origin: org.objectstyle.ashwood/ashwood

ForeignKey fk = i.next();
out.print("  ");
if (fk.getName() != null)
  out.print("CONSTRAINT " + fk.getName() + " ");
out.print("FOREIGN KEY (" + fk.getColumnName()
    + ") REFERENCES " + fk.getPkTableName());
if (fk.getPkColumnName() != null)
  out.print(" (" + fk.getPkColumnName() + ")");
if (i.hasNext())
  out.println(',');
origin: org.apache.cayenne/cayenne-nodeps

DbAttribute targetAttribute = join.getTarget();
if (targetAttribute.isPrimaryKey()) {
  ForeignKey fk = new ForeignKey();
  fk.setPkTableCatalog(target.getCatalog());
  fk.setPkTableSchema(target.getSchema());
  fk.setPkTableName(target.getName());
  fk.setPkColumnName(targetAttribute.getName());
  fk.setColumnName(join.getSourceName());
  fk.setKeySequence(keySequence++);
  table.addForeignKey(fk);
origin: org.objectstyle.ashwood/ashwood

  table.addPrimaryKey(pk);
ForeignKey fk = new ForeignKey(fkColumn);
fk.setPkColumnName(pkColumnName);
fk.setPkName(pkName);
fk.setPkTableCatalog(catalog);
fk.setPkTableName(referencedTableName);
fk.setPkTableSchema(schemaName);
table.addForeignKey(fk);
origin: org.objectstyle.cayenne/cayenne

DbAttribute targetAttribute = join.getTarget();
if (targetAttribute.isPrimaryKey()) {
  ForeignKey fk = new ForeignKey();
  fk.setPkTableCatalog(target.getCatalog());
  fk.setPkTableSchema(target.getSchema());
  fk.setPkTableName(target.getName());
  fk.setPkColumnName(targetAttribute.getName());
  fk.setColumnName(join.getSourceName());
  fk.setKeySequence(keySequence++);
  table.addForeignKey(fk);
org.objectstyle.ashwood.dbutilForeignKey

Most used methods

  • <init>
  • setColumnName
  • setKeySequence
  • setPkColumnName
  • setPkTableCatalog
  • setPkTableName
  • setPkTableSchema
  • getColumnName
  • getName
  • getPkColumnName
  • getPkTableCatalog
  • getPkTableName
  • getPkTableCatalog,
  • getPkTableName,
  • getPkTableSchema,
  • setDeferrability,
  • setDeleteRule,
  • setName,
  • setOwner,
  • setPkName,
  • setUpdateRule

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • Kernel (java.awt.image)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now