Codota Logo
com.gs.obevo.db.impl.core
Code IndexAdd Codota to your IDE (free)

How to use com.gs.obevo.db.impl.core

Best Java code snippets using com.gs.obevo.db.impl.core (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: goldmansachs/obevo

@Override
public void validateSetup() {
  validateProperDbUtilsVersion();
}
origin: com.goldmansachs.obevo/obevo-db

private boolean isInitRequired(DbEnvironment env) {
  return !isAuditTablePresent(env) && getExistingTablesInEnvironment(env).notEmpty();
}
origin: com.goldmansachs.obevo/obevo-db

@Override
public void doPostDeployAction(DbEnvironment env, final ImmutableList<Change> sourceChanges) {
  if (env.isChecksumDetectionEnabled()) {
    if (!dbChecksumManager.isInitialized()) {
      // need this check done here to account for existing clients
      dbChecksumManager.initialize();
    }
    dbChecksumManager.applyChecksumDiffs(Predicates.and(getPlatformInclusionPredicate(env), getSourceChangesInclusionPredicate(env, sourceChanges)));
  }
}
origin: com.goldmansachs.obevo/obevo-db-db2

@Override
protected ChangeTypeBehaviorRegistryBuilder getChangeTypeBehaviors() {
  ChangeTypeBehaviorRegistryBuilder changeTypeBehaviors = super.getChangeTypeBehaviors();
  changeTypeBehaviors.putBehavior(ChangeType.SP_STR, updateRoutineType(ChangeType.SP_STR));
  changeTypeBehaviors.putBehavior(ChangeType.FUNCTION_STR, updateRoutineType(ChangeType.FUNCTION_STR));
  return changeTypeBehaviors;
}
origin: com.goldmansachs.obevo/obevo-db

@Override
public void printArtifactsToProcessForUser2(Changeset artifactsToProcess, DeployStrategy deployStrategy, DbEnvironment env, ImmutableCollection<Change> deployedChanges, ImmutableCollection<Change> sourceChanges) {
  if (deployStrategy.isInitAllowedOnHashExceptions() && !isInitRequired(env)) {
    LOG.info("*******************************************");
    LOG.info(INIT_WARNING_MESSAGE);
    LOG.info("*******************************************");
    LOG.info("");
  }
}
origin: goldmansachs/obevo

@Override
public void logEnvironmentMetrics(DbEnvironment env) {
  getDeployMetricsCollector().addMetric("dbDataSourceName", env.getDbDataSourceName());
}
origin: goldmansachs/obevo

@Override
public CsvStaticDataDeployer getCsvStaticDataLoader() {
  if (getIqDataSource().isIqClientLoadSupported()) {
    LOG.info("Using IQ Client load mechanism for IQ CSV Loads");
    IqLoadMode iqLoadMode = SystemUtils.IS_OS_WINDOWS ? IqLoadMode.IQ_CLIENT_WINDOWS : IqLoadMode.IQ_CLIENT;
    return new IqBulkLoadCsvStaticDataDeployer(this.env, this.getSqlExecutor(), this.getIqDataSource(),
        this.getDbMetadataManager(), this.env.getPlatform(), iqLoadMode, this.getWorkDir());
  } else {
    LOG.info("Using the default SQL insert/update/delete statements for IQ CSV Loads");
    return super.getCsvStaticDataLoader();
  }
}
origin: goldmansachs/obevo

@Before
public void setup() throws Exception {
  DbDeployerAppContext context = getAppContext.valueOf(1);
  context.setupEnvInfra();
  this.logicalSchema1 = context.getEnvironment().getSchemas().getFirst().getName();  // pick one from the environment at random as our logical schema so that we can test the retrieval logic
  this.logicalSchema2 = "MYSCHEMA2";  // this is just for testing in this DAO, no need to tie to the actual logical schema
  this.testSchema = context.getEnvironment().getPhysicalSchema(this.logicalSchema1);
  this.platform = context.getEnvironment().getPlatform();
  this.conn = context.getDataSource().getConnection();
  this.jdbcHelper = ((AbstractSqlExecutor) context.getSqlExecutor()).createJdbcHelper(context.getDataSource());
  this.artifactDeployerDao = (SameSchemaChangeAuditDao) ((DbDeployerAppContextImpl) context).getArtifactDeployerDao();
  this.deployExecutionDao = (SameSchemaDeployExecutionDao) context.getDeployExecutionDao();
}
origin: goldmansachs/obevo

@Override
protected ChangeTypeBehaviorRegistryBuilder getChangeTypeBehaviors() {
  ChangeTypeBehaviorRegistryBuilder changeTypeBehaviors = super.getChangeTypeBehaviors();
  changeTypeBehaviors.putBehavior(ChangeType.SP_STR, updateRoutineType(ChangeType.SP_STR));
  changeTypeBehaviors.putBehavior(ChangeType.FUNCTION_STR, updateRoutineType(ChangeType.FUNCTION_STR));
  return changeTypeBehaviors;
}
origin: goldmansachs/obevo

@Override
public void doPostDeployAction(DbEnvironment env, final ImmutableList<Change> sourceChanges) {
  if (env.isChecksumDetectionEnabled()) {
    if (!dbChecksumManager.isInitialized()) {
      // need this check done here to account for existing clients
      dbChecksumManager.initialize();
    }
    dbChecksumManager.applyChecksumDiffs(Predicates.and(getPlatformInclusionPredicate(env), getSourceChangesInclusionPredicate(env, sourceChanges)));
  }
}
origin: goldmansachs/obevo

private boolean isInitRequired(DbEnvironment env) {
  return !isAuditTablePresent(env) && getExistingTablesInEnvironment(env).notEmpty();
}
origin: com.goldmansachs.obevo/obevo-db

@Override
public void validateSetup() {
  validateProperDbUtilsVersion();
}
origin: goldmansachs/obevo

@Override
public void printArtifactsToProcessForUser2(Changeset artifactsToProcess, DeployStrategy deployStrategy, DbEnvironment env, ImmutableCollection<Change> deployedChanges, ImmutableCollection<Change> sourceChanges) {
  if (deployStrategy.isInitAllowedOnHashExceptions() && !isInitRequired(env)) {
    LOG.info("*******************************************");
    LOG.info(INIT_WARNING_MESSAGE);
    LOG.info("*******************************************");
    LOG.info("");
  }
}
origin: com.goldmansachs.obevo/obevo-db

@Override
public void logEnvironmentMetrics(DbEnvironment env) {
  getDeployMetricsCollector().addMetric("dbDataSourceName", env.getDbDataSourceName());
}
origin: goldmansachs/obevo

@Override
protected ChangeTypeBehaviorRegistryBuilder getChangeTypeBehaviors() {
  DbChangeType usertypeChangeType = (DbChangeType) platform().getChangeType(ChangeType.USERTYPE_STR);
  return super.getChangeTypeBehaviors()
      .putBehavior(ChangeType.USERTYPE_STR, new MsSqlUserTypeChangeTypeBehavior(env, usertypeChangeType, getSqlExecutor(), simpleArtifactDeployer(), grantChangeParser(), graphEnricher(), platform(), getDbMetadataManager()));
}
origin: com.goldmansachs.obevo/obevo-db-sybase-ase

  @Override
  protected ChangeTypeBehaviorRegistryBuilder getChangeTypeBehaviors() {
    DbChangeType usertypeChangeType = (DbChangeType) platform().getChangeType(ChangeType.USERTYPE_STR);
    return super.getChangeTypeBehaviors()
        .putBehavior(ChangeType.USERTYPE_STR, new AseUserTypeChangeTypeBehavior(env, usertypeChangeType, getSqlExecutor(), simpleArtifactDeployer(), grantChangeParser(), graphEnricher(), platform(), getDbMetadataManager()));
  }
}
origin: com.goldmansachs.obevo/obevo-db-mssql

@Override
protected ChangeTypeBehaviorRegistryBuilder getChangeTypeBehaviors() {
  DbChangeType usertypeChangeType = (DbChangeType) platform().getChangeType(ChangeType.USERTYPE_STR);
  return super.getChangeTypeBehaviors()
      .putBehavior(ChangeType.USERTYPE_STR, new MsSqlUserTypeChangeTypeBehavior(env, usertypeChangeType, getSqlExecutor(), simpleArtifactDeployer(), grantChangeParser(), graphEnricher(), platform(), getDbMetadataManager()));
}
origin: goldmansachs/obevo

  @Override
  protected ChangeTypeBehaviorRegistryBuilder getChangeTypeBehaviors() {
    DbChangeType usertypeChangeType = (DbChangeType) platform().getChangeType(ChangeType.USERTYPE_STR);
    return super.getChangeTypeBehaviors()
        .putBehavior(ChangeType.USERTYPE_STR, new AseUserTypeChangeTypeBehavior(env, usertypeChangeType, getSqlExecutor(), simpleArtifactDeployer(), grantChangeParser(), graphEnricher(), platform(), getDbMetadataManager()));
  }
}
origin: com.goldmansachs.obevo/obevo-db-postgresql

  @Override
  protected ChangeTypeBehaviorRegistryBuilder getChangeTypeBehaviors() {
    ChangeType routineChangeType = platform().getChangeTypes().detect(new Predicate<ChangeType>() {
      @Override
      public boolean accept(ChangeType it) {
        return it.getName().equals(ChangeType.FUNCTION_STR);
      }
    });
    return super.getChangeTypeBehaviors()
        .putBehavior(ChangeType.FUNCTION_STR, new PostgreSqlFunctionChangeTypeBehavior(env, (DbChangeType) routineChangeType, getSqlExecutor(), simpleArtifactDeployer(), grantChangeParser(), graphEnricher(), platform(), getDbMetadataManager()));
  }
}
origin: goldmansachs/obevo

  @Override
  protected ChangeTypeBehaviorRegistryBuilder getChangeTypeBehaviors() {
    ChangeType routineChangeType = platform().getChangeTypes().detect(new Predicate<ChangeType>() {
      @Override
      public boolean accept(ChangeType it) {
        return it.getName().equals(ChangeType.FUNCTION_STR);
      }
    });
    return super.getChangeTypeBehaviors()
        .putBehavior(ChangeType.FUNCTION_STR, new PostgreSqlFunctionChangeTypeBehavior(env, (DbChangeType) routineChangeType, getSqlExecutor(), simpleArtifactDeployer(), grantChangeParser(), graphEnricher(), platform(), getDbMetadataManager()));
  }
}
com.gs.obevo.db.impl.core

Most used classes

  • JdbcHelper
    Class that keeps only the minimal calls that were in Spring JdbcTemplate and SimpleJdbcTemplate. Thi
  • JdbcDataSourceFactory
    DataSourceFactory that will attempt to connect to the target database by constructing a JDBC URL, wh
  • DbDeployerAppContextImpl
  • DbDataComparisonUtil
  • SameSchemaChangeAuditDao
    AuditDao that will write the audit to the same db schema as the Change audit
  • CsvReaderDataSource,
  • CsvStaticDataDeployer,
  • DbDataComparisonConfig,
  • DbDataComparisonConfigFactory,
  • DataAccessException,
  • BaselineTableChangeParser,
  • DbDeployer,
  • SameSchemaChangeAuditDaoTest,
  • AbstractDbChangeTypeBehavior,
  • CsvReaderDataSource$NoOpTypeConverter,
  • CsvReaderDataSourceTest,
  • CsvStaticDataDeployerTest,
  • CsvStaticDataReader$MyDerivedField,
  • CsvStaticDataReader
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