Codota Logo
ChangeInput.getObjectName
Code IndexAdd Codota to your IDE (free)

How to use
getObjectName
method
in
com.gs.obevo.api.appdata.ChangeInput

Best Java code snippets using com.gs.obevo.api.appdata.ChangeInput.getObjectName (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: goldmansachs/obevo

  @Override
  public Object valueOf(ChangeInput it) {
    return it.getObjectName();
  }
}, "MyTemplate2")));
origin: goldmansachs/obevo

  @Override
  public Object valueOf(ChangeInput it) {
    return it.getObjectName();
  }
}, "MyTemplate1")));
origin: com.goldmansachs.obevo/obevo-core

/**
 * This getDbObjectKey() string concatenation is a kludge until we refactor the DB object stuff itself out to its
 * own object
 */
public String getDbObjectKey() {
  return this.getObjectKey().getSchema() + ":" + this.getObjectName();
}
origin: goldmansachs/obevo

/**
 * This getDbObjectKey() string concatenation is a kludge until we refactor the DB object stuff itself out to its
 * own object
 */
public String getDbObjectKey() {
  return this.getObjectKey().getSchema() + ":" + this.getObjectName();
}
origin: goldmansachs/obevo

  for (Constraint constraint : table.getConstraints()) {
    sb.append(",");
    this.printConstraint(sb, constraint, change.getObjectName());
  this.printConstraint(sb, parsedValue.getAlterTableAdd().getConstraint(), change.getObjectName());
} else if (alterTableDrop != null) {
  sb.append("ALTER TABLE ").append(alterTableDrop.getTableName()).append(" ");
  this.printDrop(sb, dropStatement, alterTableDrop.getTableName());
} else if (dropStatement != null) {
  this.printDrop(sb, dropStatement, change.getObjectName());
} else {
  LOG.warn("This output was not mapped in this code branch; it should have been: {}", parsedValue);
origin: com.goldmansachs.obevo/obevo-db

  for (Constraint constraint : table.getConstraints()) {
    sb.append(",");
    this.printConstraint(sb, constraint, change.getObjectName());
  this.printConstraint(sb, parsedValue.getAlterTableAdd().getConstraint(), change.getObjectName());
} else if (alterTableDrop != null) {
  sb.append("ALTER TABLE ").append(alterTableDrop.getTableName()).append(" ");
  this.printDrop(sb, dropStatement, alterTableDrop.getTableName());
} else if (dropStatement != null) {
  this.printDrop(sb, dropStatement, change.getObjectName());
} else {
  LOG.warn("This output was not mapped in this code branch; it should have been: {}", parsedValue);
origin: goldmansachs/obevo

@Test
public void readFileWithBody() throws Exception {
  RerunnableChangeParser parser = new RerunnableChangeParser();
  String fileContent =
      "main\n" +
          "//// BODY\n" +
          "body content\n" +
          "";
  ChangeType mainChangeType = mock(ChangeType.class);
  ChangeType bodyChangeType = mock(ChangeType.class);
  when(mainChangeType.getBodyChangeType()).thenReturn(bodyChangeType);
  ImmutableList<ChangeInput> changes = parser.value(mainChangeType, null, fileContent, objectName, "schema", null);
  Verify.assertSize(2, changes);
  ChangeInput c1 = changes.get(0);
  assertEquals(objectName, c1.getObjectName());
  assertEquals("main", c1.getContent());
  ChangeInput c2 = changes.get(1);
  assertEquals(objectName, c2.getObjectName());
  assertEquals("body", c2.getChangeKey().getChangeName());
  assertEquals("body content", c2.getContent());
}
origin: goldmansachs/obevo

@Test
public void readSimpleFile() throws Exception {
  RerunnableChangeParser parser = new RerunnableChangeParser();
  String fileContent = "\n" +
      "mycontent" +
      "";
  ImmutableList<ChangeInput> changes = parser.value(mock(ChangeType.class), null, fileContent, objectName, "schema", null);
  Verify.assertSize(1, changes);
  ChangeInput change = changes.get(0);
  assertEquals(objectName, change.getObjectName());
  assertEquals("\nmycontent", change.getContent());
  assertEquals(null, change.getDropContent());
}
origin: goldmansachs/obevo

@Test
public void readFileWithMetaAndDrop() throws Exception {
  RerunnableChangeParser parser = new RerunnableChangeParser();
  String fileContent = "\n" +
      "//// METADATA dependencies=\"abc,123\"\n" +
      "mycontent\n" +
      "line2\n" +
      "//// DROP_COMMAND\n" +
      "mydrop" +
      "";
  ImmutableList<ChangeInput> changes = parser.value(mock(ChangeType.class), null, fileContent, objectName, "schema", null);
  Verify.assertSize(1, changes);
  ChangeInput change = changes.get(0);
  assertEquals(objectName, change.getObjectName());
  assertEquals("mycontent\nline2", change.getContent());
  assertEquals(Sets.immutable.with(new CodeDependency("abc", CodeDependencyType.EXPLICIT), new CodeDependency("123", CodeDependencyType.EXPLICIT)), change.getCodeDependencies());
  assertEquals("mydrop", change.getDropContent());
}
com.gs.obevo.api.appdataChangeInputgetObjectName

Popular methods of ChangeInput

  • getChangeKey
  • <init>
  • getContent
  • getMetadataSection
  • getObjectKey
  • setActive
  • setChangeKey
  • setContent
  • setContentHash
  • setRollbackIfAlreadyDeployedContent
  • getApplyGrants
  • getBaselinedChanges
  • getApplyGrants,
  • getBaselinedChanges,
  • getChangeTypeName,
  • getCodeDependencies,
  • getContentHash,
  • getDropContent,
  • getFileLocation,
  • getRestrictions,
  • getRollbackIfAlreadyDeployedContent

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • addToBackStack (FragmentTransaction)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Runner (org.openjdk.jmh.runner)
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