name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
morf_InsertStatement_useDirectPath_rdh
/** * If supported by the dialect, hints to the database that an {@code APPEND} query hint should be used in the insert statement. * * <p>In general, as with all query plan modification, <strong>do not use this unless you know * exactly what you are doing</strong>.</p> * * <p>These directives are applied in the ...
3.26
morf_InsertStatement_getFromTable_rdh
/** * Gets the table to select from. This is a short-hand for "SELECT * FROM [Table]". * * @return the table to select from. */ public TableReference getFromTable() { return fromTable; }
3.26
morf_InsertStatement_avoidDirectPath_rdh
/** * If supported by the dialect, hints to the database that an {@code APPEND} query hint should be used in the insert statement. * * <p>In general, as with all query plan modification, <strong>do not use this unless you know * exactly what you are doing</strong>.</p> * * <p>These directives are applied in the S...
3.26
morf_InsertStatement_drive_rdh
/** * * @see org.alfasoftware.morf.util.ObjectTreeTraverser.Driver#drive(ObjectTreeTraverser) */ @Override public void drive(ObjectTreeTraverser traverser) { traverser.dispatch(f0).dispatch(fromTable).dispatch(selectStatement).dispatch(fields).dispatch(values).dispatch(fieldDefaults.values()); }
3.26
morf_InsertStatement_insert_rdh
/** * Creates a new insert statement. See class-level documentation for usage instructions. * * @return A builder. */ public static InsertStatementBuilder insert() { return new InsertStatementBuilder();}
3.26
morf_InsertStatement_getFieldDefaults_rdh
/** * Gets the field defaults that should be used when inserting new fields. * * @return a map of field names to field default values to use during this insert. */ public Map<String, AliasedField> getFieldDefaults() { return fieldDefaults; }
3.26
morf_InsertStatement_m2_rdh
/** * Gets the table being inserted into * * @return the table being inserted into */ public TableReference m2() { return f0; }
3.26
morf_InsertStatement_deepCopy_rdh
/** * * @see org.alfasoftware.morf.util.DeepCopyableWithTransformation#deepCopy(org.alfasoftware.morf.util.DeepCopyTransformation) */ @Override public InsertStatementBuilder deepCopy(DeepCopyTransformation transformer) { return new InsertStatementBuilder(this, transformer); }
3.26
morf_InsertStatement_shallowCopy_rdh
/** * Performs a shallow copy to a builder, allowing a duplicate * to be created and modified. * * @return A builder, initialised as a duplicate of this statement. */ @Override public InsertStatementBuilder shallowCopy() { return new InsertStatementBuilder(this); }
3.26
morf_InsertStatement_fields_rdh
/** * Specifies the fields to insert into the table. * * <p> * NOTE: This method should not be used in conjunction with {@link #values}. * </p> * * @param destinationFields * the fields to insert into the database table * @return a statement with the changes applied. */ public InsertStatement fields(Iterabl...
3.26
morf_InsertStatement_withDefaults_rdh
/** * Specifies the defaults to use when inserting new fields * * @param defaultValues * the list of values to use as defaults * @return a statement with the changes applied. */ public InsertStatement withDefaults(AliasedFieldBuilder... defaultValues) { return copyOnWriteOrMutate(b -> b.withDefaults(defaultVal...
3.26
morf_TableHelper_buildColumnNameList_rdh
/** * Builds a list of column names from the column definitions and optionally * includes the ID and VERSION fields at the beginning. * * @param table * the table to get the list of column names for * @return a list of column names for the table */ public static List<String> buildColumnNameList(Table table) { ...
3.26
morf_TableHelper_columnWithName_rdh
/** * Finds a column with the specified name in the specified table. * * @param table * the table to find the column in * @param columnName * the name of the column to look for (case insensitive) * @return the matching column, or null if one cannot be found */ public static Column columnWithName(Table table...
3.26
morf_DatabaseTypeIdentifierTestUtils_mockDataSourceFor_rdh
/** * Create a mock data source reporting the correct {@link DatabaseMetaData}. * * @param product * {@link DatabaseMetaData#getDatabaseProductName()} * @param versionString * {@link DatabaseMetaData#getDatabaseProductVersion()} * @param versionMajor * {@link DatabaseMetaData#getDatabaseMajorVersion()} *...
3.26
morf_PortableSqlStatement_getStatement_rdh
/** * Generates the statement. * * @param databaseTypeIdentifier * The database type identifier ({@link DatabaseType#identifier()}). * @param tablePrefix * The prefix for table names (e.g. the database schema for Oracle) - Not required * for database types which default an appropriate value from the connec...
3.26
morf_PortableSqlStatement_getValueOf_rdh
/** * Returns value of enum. * * @param s * The code * @return The DatabaseUpradeSupported */ public static DataUpgradeSupported getValueOf(String s) { for (DataUpgradeSupported type : DataUpgradeSupported.values()) { if (type.code.equals(s)) { return type; } } throw new ...
3.26
morf_PortableSqlStatement_inplaceUpdateTransitionalTableNames_rdh
/** * Sets the {@link TableNameResolver}. * * @param nameResolver * The {@link TableNameResolver}. */ public void inplaceUpdateTransitionalTableNames(TableNameResolver nameResolver) { this.nameResolver = nameResolver; }
3.26
morf_PortableSqlStatement_m0_rdh
/** * Adds an unsupported marker for a given database. * * @param databaseTypeIdentifier * The db type identifier ({@link DatabaseType#identifier()}). * @param supported * The {@link DataUpgradeSupported} value. * @return This {@link PortableSqlStatement}. */ public PortableSqlStatement m0(String databaseTy...
3.26
morf_PortableSqlStatement_deepCopy_rdh
/** * Deep copy. * * @return null. */ @Override public Statement deepCopy() { return null; }
3.26
morf_PortableSqlStatement_add_rdh
/** * Adds an SQL statement to be run for a given db. * * @param databaseTypeIdentifier * The database type identifier ({@link DatabaseType#identifier()}). * @param stream * The {@link InputStream} containing the SQL. * @return This {@link PortableSqlStatement}. */ public PortableSqlStatement add(String dat...
3.26
morf_PortableSqlStatement_getStatements_rdh
/** * * @return the statements */ public Map<String, String> getStatements() { return statements; }
3.26
morf_PortableSqlStatement_generateStatement_rdh
/** * Generates the SQL statement. * * @param sourceSQL * The source SQL. * @param tablePrefix * The prefix for table names (e.g. the database schema for Oracle) - Not required * for database types which default an appropriate value from the connection details (e.g. MySql). * @return The SQL statement wit...
3.26
morf_SqlScriptExecutorProvider_executionStart_rdh
/** * * @see org.alfasoftware.morf.jdbc.SqlScriptExecutor.SqlScriptVisitor#executionStart() */ @Override public void executionStart() { // Defaults to no-op }
3.26
morf_SqlScriptExecutorProvider_get_rdh
/** * Gets an instance of a {@link SqlScriptExecutor} with the provided visitor * set. * * @param visitor * the visitor. * @return an instance of an {@link SqlScriptExecutor}. */ public SqlScriptExecutor get(SqlScriptVisitor visitor) { if (connectionResources != nu...
3.26
morf_SqlScriptExecutorProvider_executionEnd_rdh
/** * * @see org.alfasoftware.morf.jdbc.SqlScriptExecutor.SqlScriptVisitor#executionEnd() */ @Override public void executionEnd() { // Defaults to no-op }
3.26
morf_SqlScriptExecutorProvider_defaultVisitor_rdh
/** * Defaults the {@code visitor} to be a NullVisitor if the visitor is null. * * @param visitor * the visitor to potentially default. * @return a not-null visitor. */ protected SqlScriptVisitor defaultVisitor(SqlScriptVisitor visitor) { if (visitor != null) { return visitor; } return new N...
3.26
morf_SqlScriptExecutorProvider_beforeExecute_rdh
/** * * @see org.alfasoftware.morf.jdbc.SqlScriptExecutor.SqlScriptVisitor#beforeExecute(java.lang.String) */@Override public void beforeExecute(String sql) { // Defaults to no-op }
3.26
morf_SqlScriptExecutorProvider_create_rdh
/** * * @param connectionResources * The connection resources to use. * @return new instance of {@link SqlScriptExecutorProvider} */ public SqlScriptExecutorProvider create(final ConnectionResources connectionResources) { return new SqlScriptExecutorProvider(connectionResources); }
3.26
morf_SqlScriptExecutorProvider_m0_rdh
/** * * @param dataSource * The database connection source to use * @param sqlDialect * The dialect to use for the dataSource * @return new instance of {@link SqlScriptExecutorProvider} */ public SqlScriptExecutorProvider m0(final DataSource dataSource, final SqlDialect sqlDialect) { return new SqlScrip...
3.26
morf_ChangeColumn_getTableName_rdh
/** * Gets the name of the table to change. * * @return the name of the table to change */ public String getTableName() { return tableName; }
3.26
morf_ChangeColumn_accept_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaChange#accept(org.alfasoftware.morf.upgrade.SchemaChangeVisitor) */@Override public void accept(SchemaChangeVisitor visitor) { visitor.visit(this); }
3.26
morf_ChangeColumn_apply_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaChange#apply(org.alfasoftware.morf.metadata.Schema) */ @Override public Schema apply(Schema schema) { return applyChange(schema, fromColumn, toColumn); }
3.26
morf_ChangeColumn_getFromColumn_rdh
/** * Gets the column definition prior to the change * * @return the column definition prior to the change */ public Column getFromColumn() { return fromColumn; }
3.26
morf_ChangeColumn_applyChange_rdh
/** * Changes a column definition from the start point to the end point. * * @param schema * {@link Schema} to apply the change against resulting in new metadata. * @param columnStartPoint * the start definition for the column * @param columnEndPoint * the end definitio...
3.26
morf_ChangeColumn_reverse_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaChange#reverse(org.alfasoftware.morf.metadata.Schema) */ @Override public Schema reverse(Schema schema) { return applyChange(schema, toColumn, fromColumn); }
3.26
morf_ChangeColumn_isApplied_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaChange#isApplied(Schema, ConnectionResources) */ @Override public boolean isApplied(Schema schema, ConnectionResources database) { if (!schema.tableExists(tableName)) { return false; } Table table = schema.getTable(tableName); ...
3.26
morf_ChangeColumn_verifyWidthAndScaleChanges_rdh
/** * Verify that any width and scale changes */ private void verifyWidthAndScaleChanges() { // Reductions in width of Strings are permitted, although they will only work if the data fits in the narrower column if (Objects.equals(toColumn.getType(), fromColumn.getType()) && DataType.STRING.equals(fromColumn.g...
3.26
morf_ChangeColumn_m0_rdh
/** * Gets the column definition after the change * * @return the column definition after the change */ public Column m0() { return toColumn; }
3.26
morf_ChangeColumn_verifyDataTypeChanges_rdh
/** * Verify That any data type transistions are allowed. */ private void verifyDataTypeChanges() { // if there's no change, there's no problem if (Objects.equals(fromColumn.getType(), toColumn.getType())) { return; } // look up what target types we are allowed to change to Collection<Data...
3.26
morf_UpgradeScriptAdditionsProvider_getUpgradeScriptAdditions_rdh
/** * Returns all script additions with the filtering criteria applied. * The filtering logic should be provided by calling {@link #setAllowedPredicate(Predicate)} first. * * @return set of upgrade script additions. */ default Set<UpgradeScriptAddition> getUpgradeScriptAdditions() { return Collections.emptySe...
3.26
morf_UpgradeScriptAdditionsProvider_setAllowedPredicate_rdh
/** * Allows for filtering of script additions. * * @param scriptAdditionsPredicate * Upgrade script additions. */ default void setAllowedPredicate(Predicate<UpgradeScriptAddition> scriptAdditionsPredicate) { }
3.26
morf_ColumnTypeBean_getType_rdh
/** * * @return the type */ @Override public DataType getType() { return type; }
3.26
morf_ColumnTypeBean_getScale_rdh
/** * * @return the scale */ @Override public int getScale() { return scale; }
3.26
morf_ColumnTypeBean_getWidth_rdh
/** * * @return the width */ @Override public int getWidth() { return width; }
3.26
morf_ColumnTypeBean_isNullable_rdh
/** * * @return the nullable */ @Override public boolean isNullable() { return nullable; }
3.26
morf_ColumnTypeBean_toString_rdh
/** * * @see java.lang.Object#toString() */ @Override public String toString() { return String.format("ColumnType-%s-%d-%d-%s", type, width, scale, nullable); }
3.26
morf_AutoNumberRemovalHelper_m0_rdh
/** * Removes the row, referring to a {@linkplain Table}, from the AutoNumber table. * * @param dataEditor * Executor of statements * @param table * The table for which autonumbering will be rmeoved */public static void m0(DataEditor dataEditor, Table table) { dataEditor.executeStatement(delete(tableRef(...
3.26
morf_CorrectPrimaryKeyColumns_apply_rdh
/** * * @see org.alfasoftware.morf.upgrade.ChangePrimaryKeyColumns#apply(org.alfasoftware.morf.metadata.Schema) */ @Override public Schema apply(Schema schema) { oldPrimaryKeyColumns = namesOfColumns(primaryKeysForTable(schema.getTable(tableName)));return super.apply(schema); }
3.26
morf_CorrectPrimaryKeyColumns_getOldPrimaryKeyColumns_rdh
/** * * @see org.alfasoftware.morf.upgrade.ChangePrimaryKeyColumns#getOldPrimaryKeyColumns() */ @Override public List<String> getOldPrimaryKeyColumns() { return oldPrimaryKeyColumns == null ? super.getOldPrimaryKeyColumns() : oldPrimaryKeyColumns; }
3.26
morf_CorrectPrimaryKeyColumns_reverse_rdh
/** * * @see org.alfasoftware.morf.upgrade.ChangePrimaryKeyColumns#reverse(org.alfasoftware.morf.metadata.Schema) */ @Override public Schema reverse(Schema schema) { if (oldPrimaryKeyColumns != null) { return applyChange(schema, newPrimaryKeyColumns, oldPrimaryKeyColumns)...
3.26
morf_FieldLiteral_deepCopyInternal_rdh
/** * * @see org.alfasoftware.morf.sql.element.AliasedField#deepCopyInternal(DeepCopyTransformation) */ @Override protected FieldLiteral deepCopyInternal(final DeepCopyTransformation transformer) { return new FieldLiteral(this.getAlias(), this.value, this.dataType); }
3.26
morf_FieldLiteral_as_rdh
/** * * @see org.alfasoftware.morf.sql.element.AliasedField#as(java.lang.String) */ @Overridepublic FieldLiteral as(String aliasName) { return ((FieldLiteral) (super.as(aliasName))); }
3.26
morf_FieldLiteral_m0_rdh
/** * Constructs a {@linkplain FieldLiteral} from a specified object. * * @param object * the object to construct the {@linkplain FieldLiteral} from * @return the new {@linkplain FieldLiteral} */ public static FieldLiteral m0(Object object) { if (object instanceof String) { return new FieldLiteral(...
3.26
morf_FieldLiteral_toString_rdh
/** * * @see java.lang.Object#toString() */ @Override public String toString() { return (dataType.equals(DataType.STRING) ? ("\"" + value) + "\"" : value == null ? "NULL" : value) + super.toString(); }
3.26
morf_FieldLiteral_getValue_rdh
/** * * @return the value */ public String getValue() { return value; }
3.26
morf_FieldLiteral_getDataType_rdh
/** * * @return the dataType */ public DataType getDataType() { return dataType; }
3.26
morf_FieldLiteral_equals_rdh
/** * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; FieldLiteral other = ((FieldLiteral) (obj)); return new...
3.26
morf_RenameTable_isTemporary_rdh
/** * * @see org.alfasoftware.morf.metadata.Table#isTemporary() */ @Override public boolean isTemporary() { return baseTable.isTemporary(); }
3.26
morf_RenameTable_accept_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaChange#accept(org.alfasoftware.morf.upgrade.SchemaChangeVisitor) */ @Override public void accept(SchemaChangeVisitor visitor) { visitor.visit(this); }
3.26
morf_RenameTable_getOldTableName_rdh
/** * * @return the existing table name to change from. */ public String getOldTableName() { return oldTableName; }
3.26
morf_RenameTable_reverse_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaChange#reverse(org.alfasoftware.morf.metadata.Schema) */ @Override public Schema reverse(Schema schema) { return applyChange(schema, newTableName, oldTableName); }
3.26
morf_RenameTable_apply_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaChange#apply(org.alfasoftware.morf.metadata.Schema) */ @Override public Schema apply(Schema schema) { return applyChange(schema, oldTableName, newTableName); }
3.26
morf_RenameTable_isApplied_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaChange#isApplied(org.alfasoftware.morf.metadata.Schema, org.alfasoftware.morf.jdbc.ConnectionResources) */ @Override public boolean isApplied(Schema schema, ConnectionResources database) { return schema.tableExists(newTableName); }
3.26
morf_RenameTable_columns_rdh
/** * * @see org.alfasoftware.morf.metadata.Table#columns() */ @Override public List<Column> columns() { return baseTable.columns(); }
3.26
morf_RenameTable_indexes_rdh
/** * * @see org.alfasoftware.morf.metadata.Table#indexes() */ @Override public List<Index> indexes() { return baseTable.indexes(); }
3.26
morf_WithMetaDataAdapter_open_rdh
/** * {@inheritDoc } * * @see org.alfasoftware.morf.dataset.DataSetProducer#open() */ @Override public void open() { super.open(); schemaProducer.open(); }
3.26
morf_WithMetaDataAdapter_close_rdh
/** * {@inheritDoc } * * @see org.alfasoftware.morf.dataset.DataSetProducer#close() */ @Override public void close() { super.close(); schemaProducer.close(); }
3.26
morf_WithMetaDataAdapter_getSchema_rdh
/** * {@inheritDoc } * * @see org.alfasoftware.morf.dataset.DataSetProducer#getSchema() */ @Override public Schema getSchema() { final Schema targetSchema = schemaProducer.getSchema(); final Schema sourceSchema = super.getSchema(); if (schema == null) { schema = new Schema() { @Override ...
3.26
morf_SchemaModificationAdapter_dropExistingIndexesIfNecessary_rdh
/** * Drop all existing indexes of the table that's about to be deployed. */ private void dropExistingIndexesIfNecessary(Table tableToDeploy) { tableToDeploy.indexes().forEach(index -> { Table existingTableWithSameIndex = existingIndexNamesAndTables.remove(index.getName().toUpperCase()); if ((existingTableWi...
3.26
morf_SchemaModificationAdapter_initialiseTableSchema_rdh
/** * Make sure the database is ready to receive the data. Check the table schema matches what we expect, if it doesn't drop and re-create. * * @param table * The source table we're expecting. */ private void initialiseTableSchema(Table table) {SqlScriptExecutor sqlExecutor = databaseDataSetConsumer.getSqlExecut...
3.26
morf_SchemaModificationAdapter_close_rdh
/** * * @see org.alfasoftware.morf.dataset.DataSetAdapter#close(org.alfasoftware.morf.dataset.DataSetConsumer.CloseState) */ @Override public void close(CloseState closeState) { // only drop the remaining tables if the data copy completed cleanly if (closeState == CloseState.COMPLETE) { dropRemaining...
3.26
morf_SchemaModificationAdapter_dropExistingViewsIfNecessary_rdh
/** * Drops all views from the existing schema if it has not already done so. This should be called whenever tables are dropped or modified to guard against an invalid situation. */ private synchronized void dropExistingViewsIfNecessary() { if (viewsDropped) { return; } SqlScriptE...
3.26
morf_SchemaModificationAdapter_dropRemainingTables_rdh
/** * Drop all the tables that are left over at the end of the import */ private void dropRemainingTables() { SqlScriptExecutor sqlExecutor = databaseDataSetConsumer.getSqlExecutor(); for (String tableName : remainingTables) { log.debug(("Dropping table [" + tableName) + "] which was not in the transmitted data...
3.26
morf_ResultSetMismatch_getRightValue_rdh
/** * * @return Value from the right hand result set. */ public String getRightValue() { return rightValue; }
3.26
morf_ResultSetMismatch_toString_rdh
/** * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder mismatchDetails = new StringBuilder(); if (key.length > 0) { mismatchDetails.append("Row key:").append(Arrays.toString(key)).append(" "); } mismatchDetails.append("Type:[").append(mismat...
3.26
morf_ResultSetMismatch_getMismatchColumnIndex_rdh
/** * * @return Mismatch column index. */ public int getMismatchColumnIndex() { return mismatchColumnIndex; }
3.26
morf_ResultSetMismatch_getMismatchType_rdh
/** * * @return Mismatch type. */ public MismatchType getMismatchType() { return mismatchType; }
3.26
morf_ResultSetMismatch_getLeftValue_rdh
/** * * @return Value from the left hand result set. */ public String getLeftValue() { return leftValue; }
3.26
morf_ResultSetMismatch_getKey_rdh
/** * * @return key identifying the mismatch. */ public String[] getKey() { return Arrays.copyOf(key, key.length); }
3.26
morf_UpgradeTableResolutionVisitor_getResolvedTables_rdh
/** * * @return tables resolved by this visitor */ public ResolvedTables getResolvedTables() { return resolvedTables; }
3.26
morf_TableDataHomology_compareRecords_rdh
/** * Compare all the columns for these records. * * @param table * the active {@link Table} * @param recordNumber * The current record number * @param record1 * The first record * @param record2 * The second record */ private void compareRecords(Table table, int recordNumber, Record record1, Recor...
3.26
morf_TableDataHomology_copyAndSort_rdh
/** * * @return A sorted copy of the Record list */ private List<Record> copyAndSort(final Table table, Iterable<Record> records, Comparator<Record> comparator) { // we need to transform the records to RecordBeans so we don't re-use the Record return FluentIterable.from(records).transform(r -> RecordHelpe...
3.26
morf_TableDataHomology_compareTable_rdh
/** * Compare all the records for this table. * * @param table * the active {@link Table} * @param records1 * the first set of records * @param records2 * the second set of records */ public void compareTable(final Table table, Iterable<Record> records1, Iterable<Record> records2) { Iterator<Record>...
3.26
morf_Deployment_deploySchema_rdh
/** * Static convenience method which deploys the specified database schema, prepopulating * the upgrade step table with all pre-existing upgrade information. Assumes no initial * start position manipulation is required and the application can start with an empty * database. * * @param targetSchema * The targe...
3.26
morf_Deployment_writeStatements_rdh
/** * Creates deployment statements using the supplied source meta data. * * @param targetSchema * Schema that is to be deployed. * @param sqlStatementWriter * Recipient for the deployment statements. */ private void writeStatements(Schema targetSchema, SqlStatementWriter sqlStatementWriter) { // Sort ...
3.26
morf_Deployment_writeUpgradeSteps_rdh
/** * Add an upgrade step for each upgrade step. * * <p>The {@link Deployment} class ensures that all contributed domain tables are written in the database, but we need to * ensure that the upgrade steps that were used to create are in written so that next time the application is run the upgrade * doesn't try to r...
3.26
morf_Deployment_getPath_rdh
/** * Return an "upgrade" path corresponding to a full database deployment, matching * the given schema. * * <p>This method adds all upgrade steps after creating the tables/views.</p> * * @param targetSchema * Schema that is to be deployed. * @param upgradeSteps * All available upgrade steps. * @return A ...
3.26
morf_Deployment_deploy_rdh
/** * Creates deployment statements using the supplied source meta data. * * @param upgradeSteps * All available upgrade steps. * @param targetSchema * Schema that is to be deployed. */ public void deploy(Schema targetSchema, Collection<Class<? extends UpgradeStep>> upgradeSteps) { UpgradePath path = get...
3.26
morf_ExistingTableStateLoader_loadAppliedStepUUIDs_rdh
/** * * @return The set of all UUIDs which have previously been applied to this database. */ Set<UUID> loadAppliedStepUUIDs() { Set<UUID> results = new HashSet<>();// Query the database to see if the UpgradeAudit SelectStatement upgradeAuditSelect = select(field("upgradeUUID")).from(tableRef(DatabaseUpgradeT...
3.26
morf_FieldFromSelect_deepCopyInternal_rdh
/** * * @see org.alfasoftware.morf.sql.element.AliasedField#deepCopyInternal(DeepCopyTransformation) */ @Override protected AliasedField deepCopyInternal(DeepCopyTransformation transformer) { return new FieldFromSelect(getAlias(), transformer.deepCopy(selectStatement)); }
3.26
morf_FieldFromSelect_toString_rdh
/** * * @see java.lang.Object#toString() */ @Overridepublic String toString() { return selectStatement.toString() + super.toString(); }
3.26
morf_FieldFromSelect_drive_rdh
/** * * @see org.alfasoftware.morf.util.ObjectTreeTraverser.Driver#drive(ObjectTreeTraverser) */ @Override public void drive(ObjectTreeTraverser traverser) { traverser.dispatch(getSelectStatement()); }
3.26
morf_FieldFromSelect_getSelectStatement_rdh
/** * * @return the selectStatement */ public SelectStatement getSelectStatement() { return selectStatement; }
3.26
morf_SqlServer_matchesProduct_rdh
/** * * @see org.alfasoftware.morf.jdbc.DatabaseType#matchesProduct(java.lang.String) */ @Override public boolean matchesProduct(String product) { return product.toLowerCase().contains("microsoft sql server");}
3.26
morf_SqlServer_extractJdbcUrl_rdh
/** * * @see org.alfasoftware.morf.jdbc.AbstractDatabaseType#extractJdbcUrl(java.lang.String) */ @Override public Optional<JdbcUrlElements> extractJdbcUrl(String jdbcUrl) { Stack<String> splitURL = splitJdbcUrl(jdbcUrl);String scheme = splitURL.pop(); if (!scheme.equal...
3.26
morf_SqlServer_formatJdbcUrl_rdh
/** * * @see org.alfasoftware.morf.jdbc.DatabaseType#formatJdbcUrl(org.alfasoftware.morf.jdbc.JdbcUrlElements) */ @Override public String formatJdbcUrl(JdbcUrlElements jdbcUrlElements) { return ((("jdbc:sqlserver://" + jdbcUrlElements.getHostName()) + (StringUtils.isNotBlank(jdbcUrlElements.getInstanceName()) ? ...
3.26
morf_MySql_openSchema_rdh
/** * * @see org.alfasoftware.morf.jdbc.DatabaseType#openSchema(Connection, String, String) */ @Override public Schema openSchema(Connection connection, String databaseName, String schemaName) { return new MySqlMetaDataProvider(connection, databaseName); } /** * Returns a MySQL XA data source. Note that this ...
3.26
morf_MySql_extractJdbcUrl_rdh
/** * * @see org.alfasoftware.morf.jdbc.AbstractDatabaseType#extractJdbcUrl(java.lang.String) */ @Override public Optional<JdbcUrlElements> extractJdbcUrl(String jdbcUrl) { Stack<String> splitURL = splitJdbcUrl(jdbcUrl); String scheme = splitURL.pop(); if (!scheme.equalsIgnoreCase("mysql")) { ret...
3.26
morf_MySql_matchesProduct_rdh
/** * * @see org.alfasoftware.morf.jdbc.DatabaseType#matchesProduct(java.lang.String) */ @Override public boolean matchesProduct(String product) { return product.equalsIgnoreCase("MySQL"); }
3.26
morf_MySql_formatJdbcUrl_rdh
/** * * @see org.alfasoftware.morf.jdbc.DatabaseType#formatJdbcUrl(org.alfasoftware.morf.jdbc.JdbcUrlElements) */ @Override public String formatJdbcUrl(JdbcUrlElements jdbcUrlElements) { return (((("jdbc:mysql://" + jdbcUrlElements.getHostName()) + (jdbcUrlElements.getPort() == 0 ? "" : ":" + jdbcUrlElements.get...
3.26