name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
morf_DataSetProducerAdapter_close_rdh
/** * * @see org.alfasoftware.morf.dataset.DataSetProducer#close() */ @Override public void close() { delegate.close(); }
3.26
morf_DataSetProducerAdapter_getSchema_rdh
/** * * @see org.alfasoftware.morf.dataset.DataSetProducer#getSchema() */@Override public Schema getSchema() { return delegate.getSchema(); }
3.26
morf_ConnectionResources_setFetchSizeForBulkSelects_rdh
/** * Sets the JDBC Fetch Size to use when performing bulk select operations, intended to replace the default in {@link SqlDialect#fetchSizeForBulkSelects()}. * The default behaviour for this method is interpreted as not setting the value. * * @param fetchSizeForBulkSelects * the JDBC fet...
3.26
morf_XmlPullProcessor_readTag_rdh
/** * Reads the next tag from the pull parser and throws an exception if its name does not * match <var>expectedTagName</var>. * * @param xmlStreamReader * The pull parser to read from * @param expectedTagName * The tag name expected */ public static void readTag(XMLStreamReader xmlStreamReader, String expe...
3.26
morf_MathsOperator_toString_rdh
/** * * @see java.lang.Enum#toString() */ @Override public String toString() { return f0; }
3.26
morf_FieldReference_m1_rdh
/** * Gets the null value handling type of the field. * * @return the direction */ public Optional<NullValueHandling> m1() { return nullValueHandling; }
3.26
morf_FieldReference_deepCopyInternal_rdh
/** * {@inheritDoc } * * @see org.alfasoftware.morf.sql.element.AliasedField#deepCopyInternal(DeepCopyTransformation) */ @Overrideprotected FieldReference deepCopyInternal(DeepCopyTransformation transformer) { return new FieldReference(getAlias(), transformer.deepCopy(table), name, direction, nullValueHandling)...
3.26
morf_FieldReference_m5_rdh
/** * Specifies the alias to use for the field. * * @param aliasName * the name of the alias * @return this */ @Override public Builder m5(String aliasName) { this.alias = aliasName; return this;}
3.26
morf_FieldReference_getName_rdh
/** * Gets the name of the field. * * @return the name */ public String getName() { return name; }
3.26
morf_FieldReference_asc_rdh
/** * sets ascending order on this field * * @return this */ public FieldReference asc() { if (immutableDslEnabled()) { return new Builder(noTransformation(), this).asc().build(); } else { this.direction = Direction.ASCENDING; return this; } }
3.26
morf_FieldReference_getDirection_rdh
/** * Gets the sort direction of the field. * * @return the direction */ public Direction getDirection() { return direction; }
3.26
morf_FieldReference_drive_rdh
/** * * @see org.alfasoftware.morf.util.ObjectTreeTraverser.Driver#drive(ObjectTreeTraverser) */ @Override public void drive(ObjectTreeTraverser traverser) { traverser.dispatch(getTable()); }
3.26
morf_FieldReference_m0_rdh
/** * Constructs a new field with an alias on a given table. * * @param name * the name of the field. * @return The field reference. */ public static Builder m0(String name) { return new Builder(null, name); }
3.26
morf_FieldReference_m4_rdh
/** * * @see org.alfasoftware.morf.sql.element.AliasedField#getImpliedName() */ @Override public String m4() { return StringUtils.isBlank(super.getImpliedName()) ? getName() : super.getImpliedName(); }
3.26
morf_FieldReference_toString_rdh
/** * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder result = new StringBuilder(); if (table != null) result.append(table).append("."); result.append(name); if ((direction != null) && (direction != Direction.NONE)) result.append(" ").append...
3.26
morf_FieldReference_noNullHandling_rdh
/** * sets null value handling type to none * * @return this */ public Builder noNullHandling() { this.nullValueHandling = Optional.of(NullValueHandling.NONE); return this; }
3.26
morf_FieldReference_setDirection_rdh
/** * Sets the direction to sort the field on. * * @param direction * the direction to set * @deprecated Use {@link #direction(Direction)} */ @Deprecated public void setDirection(Direction direction) { AliasedField.assetImmutableDslDisabled(); this.direction = direction; }
3.26
morf_FieldReference_nullsFirst_rdh
/** * sets null value handling type to first * * @return this */ public Builder nullsFirst() { this.nullValueHandling = Optional.of(NullValueHandling.FIRST); return this; }
3.26
morf_FieldReference_m2_rdh
/** * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean m2(Object obj) { if (this == obj) { return true; } // TODO incorrect - permits other types. Can't change this - need to fix existing misuse in subtypes if (obj instanceof FieldReference) { FieldReference...
3.26
morf_FieldReference_nullsLast_rdh
/** * sets null value handling type to last * * @return this */ public Builder nullsLast() { this.nullValueHandling = Optional.of(NullValueHandling.LAST); return this; }
3.26
morf_FieldReference_build_rdh
/** * Builds the {@link FieldReference}. * * @return The field reference. */ @Override public FieldReference build() { return new FieldReference(alias, table, name, direction, nullValueHandling); }
3.26
morf_FieldReference_direction_rdh
/** * Sets the direction to sort the field on. * * @param direction * the direction to set * @return this */ public Builder direction(Direction direction) { this.direction = direction; return this; }
3.26
morf_FieldReference_m3_rdh
/** * * @see java.lang.Object#hashCode() */ @Override public int m3() { return new HashCodeBuilder().appendSuper(super.hashCode()).append(direction).append(name).append(nullValueHandling).append(table).toHashCode(); }
3.26
morf_FieldReference_getTable_rdh
/** * Gets the table on which the field exists. * * @return the table */ public TableReference getTable() { return table; }
3.26
morf_FieldReference_desc_rdh
/** * sets descending order on this field * * @return this */ public Builder desc() { this.direction = Direction.DESCENDING; return this; }
3.26
morf_TableNameDecorator_indexes_rdh
/** * * @see org.alfasoftware.morf.metadata.Table#indexes() */ @Override public List<Index> indexes() { return decoratedIndexes; }
3.26
morf_TableNameDecorator_isTemporary_rdh
/** * {@inheritDoc } * * @see org.alfasoftware.morf.metadata.Table#isTemporary() */ @Override public boolean isTemporary() { return false; }
3.26
morf_TableNameDecorator_getName_rdh
/** * * @see org.alfasoftware.morf.metadata.Table#getName() */ @Override public String getName() { return name; }
3.26
morf_MySqlMetaDataProvider_m1_rdh
/** * MySQL can (and must) provide the auto-increment start value from the column remarks. * * @see org.alfasoftware.morf.jdbc.DatabaseMetaDataProvider#setAdditionalColumnMetadata(RealName, ColumnBuilder, ResultSet) */ @Override protected ColumnBuilder m1(RealName tableName, ColumnBuilder columnBuilder, ResultSet c...
3.26
morf_MySqlMetaDataProvider_m0_rdh
/** * SqlServerDialect maps CLOB data types to NVARCHAR(MAX) but NVARCHAR sqlTypes are mapped as Strings in the {@link DatabaseMetaDataProvider}. * This method uses the column width to determine whether a sqlType == Type.NVARCHAR should be mapped to a String * or to a CLOB data type. If the column wi...
3.26
morf_SchemaBean_getView_rdh
/** * * @see org.alfasoftware.morf.metadata.Schema#getView(java.lang.String) */ @Override public View getView(String name) { return views.get(name.toUpperCase()); }
3.26
morf_SchemaBean_views_rdh
/** * * @see org.alfasoftware.morf.metadata.Schema#views() */ @Override public Collection<View> views() { return views.values(); }
3.26
morf_SchemaBean_viewExists_rdh
/** * * @see org.alfasoftware.morf.metadata.Schema#viewExists(java.lang.String) */ @Override public boolean viewExists(String name) { return views.containsKey(name.toUpperCase()); }
3.26
morf_SchemaBean_getTable_rdh
/** * {@inheritDoc } * * @see org.alfasoftware.morf.metadata.Schema#getTable(java.lang.String) */ @Override public Table getTable(String name) { return tables.get(name.toUpperCase()); }
3.26
morf_SchemaBean_viewNames_rdh
/** * * @see org.alfasoftware.morf.metadata.Schema#viewNames() */ @Override public Collection<String> viewNames() { // Implemented like this rather than views.keySet() to retain case Set<String> names = new HashSet<>(); for (View view : views.values()) { names.add(view.getName()); } retu...
3.26
morf_SchemaBean_tableNames_rdh
/** * {@inheritDoc } * * @see org.alfasoftware.morf.metadata.Schema#tableNames() */ @Override public Collection<String> tableNames() { // Implemented like this rather than tables.keySet() to retain case Set<String> names = new HashSet<>(); for (Table v7 : tables.values()) { names.add(v7.getName(...
3.26
morf_SchemaBean_isEmptyDatabase_rdh
/** * {@inheritDoc } * * @see org.alfasoftware.morf.metadata.Schema#isEmptyDatabase() */ @Override public boolean isEmptyDatabase() { return tables.isEmpty(); } /** * {@inheritDoc }
3.26
morf_SchemaBean_tables_rdh
/** * {@inheritDoc } * * @see org.alfasoftware.morf.metadata.Schema#tables() */ @Override public Collection<Table> tables() {return tables.values(); }
3.26
morf_HumanReadableStatementProducer_produceFor_rdh
/** * Produces output via the supplied consumer. * * @param consumer * the consumer to consume the events. */ public void produceFor(final HumanReadableStatementConsumer consumer) { // Ensure the upgrade steps are in the correct order final Collection<Class<? extends UpgradeStep>> v0 = upgradeGraph.o...
3.26
morf_HumanReadableStatementProducer_renameIndex_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaEditor#renameIndex(java.lang.String, java.lang.String, java.lang.String) */ @Override public void renameIndex(String tableName, String fromIndexName, String toIndexName) { consumer.schemaChange(HumanReadableStatementHelper.generateRenameIndexString(tableName, from...
3.26
morf_HumanReadableStatementProducer_removeIndex_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaEditor#removeIndex(java.lang.String, org.alfasoftware.morf.metadata.Index) * */ @Override public void removeIndex(String tableName, Index index) { consumer.schemaChange(HumanReadableStatementHelper.generateRemoveIndexString(tableName, index)); }
3.26
morf_HumanReadableStatementProducer_changeIndex_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaEditor#changeIndex(java.lang.String, org.alfasoftware.morf.metadata.Index, org.alfasoftware.morf.metadata.Index) * */ @Override public void changeIndex(String tableName, Index fromIndex, Index toIndex) { consumer.schemaChange(HumanReadableStatementHelper.generateC...
3.26
morf_HumanReadableStatementProducer_analyseTable_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaEditor#analyseTable(String) * */ @Override public void analyseTable(String tableName) { consumer.schemaChange(HumanReadableStatementHelper.generateAnalyseTableFromString(tableName)); }
3.26
morf_HumanReadableStatementProducer_addTable_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaEditor#addTable(org.alfasoftware.morf.metadata.Table) * */ @Override public void addTable(Table definition) { consumer.schemaChange(HumanReadableStatementHelper.generateAddTableString(definition)); }
3.26
morf_HumanReadableStatementProducer_changeColumn_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaEditor#changeColumn(java.lang.String, org.alfasoftware.morf.metadata.Column, org.alfasoftware.morf.metadata.Column) * */ @Override public void changeColumn(String tableName, Column fromDefinition, Column toDefinition) { consumer.schemaChange(HumanReadableStatement...
3.26
morf_HumanReadableStatementProducer_removeTable_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaEditor#removeTable(org.alfasoftware.morf.metadata.Table) * */ @Overridepublic void removeTable(Table table) { consumer.schemaChange(HumanReadableStatementHelper.generateRemoveTableString(table)); }
3.26
morf_HumanReadableStatementProducer_addColumn_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaEditor#addColumn(java.lang.String, org.alfasoftware.morf.metadata.Column) * */ @Override public void addColumn(String tableName, Column definition, FieldLiteral columnDefault) { consumer.schemaChange(HumanReadableStatementHelper.generateAddColumnString(tableName...
3.26
morf_HumanReadableStatementProducer_addIndex_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaEditor#addIndex(java.lang.String, org.alfasoftware.morf.metadata.Index) * */ @Override public void addIndex(String tableName, Index index) { consumer.schemaChange(HumanReadableStatementHelper.generateAddIndexString(tableName, index)); }
3.26
morf_HumanReadableStatementProducer_getUpgradeStepVersion_rdh
/** * Gets the version the upgrade {@code step} belongs in. * First attempts to pull the version from the {@code @Version} * annotation, otherwise from the package name. * * @param step * the upgrade step. * @return the version the upgrade step belongs in. */ private String getUpgradeStepVersion(UpgradeStep s...
3.26
morf_HumanReadableStatementProducer_removeColumn_rdh
/** * * @see org.alfasoftware.morf.upgrade.SchemaEditor#removeColumn(java.lang.String, org.alfasoftware.morf.metadata.Column) * */ @Override public void removeColumn(String tableName, Column definition) { consumer.schemaChange(HumanReadableStatementHelper.generateRemoveColumnString(tableName, definition)); }
3.26
morf_ExecuteStatement_accept_rdh
/** * {@inheritDoc } * * @see org.alfasoftware.morf.upgrade.SchemaChange#accept(org.alfasoftware.morf.upgrade.SchemaChangeVisitor) */ @Override public void accept(SchemaChangeVisitor visitor) { visitor.visit(this); }
3.26
morf_ExecuteStatement_m0_rdh
/** * {@inheritDoc } * * @see org.alfasoftware.morf.upgrade.SchemaChange#isApplied(Schema, ConnectionResources) */ @Override public boolean m0(Schema schema, ConnectionResources database) { return true; }
3.26
morf_ExecuteStatement_apply_rdh
/** * {@inheritDoc } * * @see org.alfasoftware.morf.upgrade.SchemaChange#apply(org.alfasoftware.morf.metadata.Schema) */@Override public Schema apply(Schema schema) { return schema; }
3.26
morf_ExecuteStatement_reverse_rdh
/** * {@inheritDoc } * * @see org.alfasoftware.morf.upgrade.SchemaChange#reverse(org.alfasoftware.morf.metadata.Schema) */ @Override public Schema reverse(Schema schema) { return schema; }
3.26
morf_ExecuteStatement_getStatement_rdh
/** * Method to get the statement that is being executed * * @return {@link Statement} to be executed */ public Statement getStatement() { return statement; }
3.26
morf_MergingDatabaseDataSetConsumer_table_rdh
/** * * @see DataSetConsumer#table(Table, Iterable) */@Override public void table(Table table, Iterable<Record> records) { TableLoader.builder().withConnection(connection).withSqlScriptExecutor(sqlExecutor).withDialect(sqlDialect).explicitCommit(true).merge(true).insertingWithPresetAutonums().forTable(table).loa...
3.26
morf_DataValueLookupBuilderImpl_initialiseArray_rdh
/** * Creates the storage array. */ private Object[] initialiseArray(int numberOfColumns) { return new Object[numberOfColumns]; }
3.26
morf_DataValueLookupBuilderImpl_setAtIndex_rdh
/** * Writes the given value at the specified index. Assumes that the array * has sufficient size. */ private void setAtIndex(int index, Object value) { data[index] = value; }
3.26
morf_DataValueLookupBuilderImpl_grow_rdh
/** * Grow the array to accommodate new values. Based on {@link ArrayList}, but * without the overflow protection. We've got bigger problems if records get * that big. */ private void grow() { int size = metadata.getColumnNames().size(); data = Arrays.copyOf(data, size + (size >> 1)); }
3.26
morf_DataValueLookupBuilderImpl_hasSameMetadata_rdh
/** * Validation method, for testing only. * * @param other * The other. * @return true if equivalent metadata. */ @VisibleForTesting boolean hasSameMetadata(DataValueLookupBuilderImpl other) { return other.metadata.equals(this.metadata); }
3.26
morf_DataValueLookupBuilderImpl_getAndConvertByName_rdh
/** * Fetches the value of the specified column, converting it to the target * type using the associated {@link ValueConverter} to the target type. */ private final <STORED, RETURNED> RETURNED getAndConvertByName(String columnName, ValueMapper<STORED, RETURNED> mapper) { if (metadata == null) return nul...
3.26
morf_DataValueLookupBuilderImpl_set_rdh
/** * Sets the value of a specified column. Resizes or allocates the array as required. */private DataValueLookupBuilder set(String columnName, Object value) { CaseInsensitiveString key = CaseInsensitiveString.of(columnName); // No data yet - initialise if (metadata == null) { metadata = DataValue...
3.26
morf_DataValueLookupBuilderImpl_getAndConvertByIndex_rdh
/** * Fetches the value at the specified index, converting it to the target * type using the associated {@link ValueConverter} to the target type. * * @param <STORED> * The type actually stored in the internal array. * @param <RETURNED> * The type being returned by the API call. * @param i * The index. ...
3.26
morf_DirectoryDataSet_openOutputStreamForTable_rdh
/** * * @see org.alfasoftware.morf.xml.XmlStreamProvider.XmlOutputStreamProvider#openOutputStreamForTable(java.lang.String) */ @Override public OutputStream openOutputStreamForTable(String tableName) { try {return new FileOutputStream(new File(directory, tableName + ".xml")); } catch (FileNotFoundException...
3.26
morf_DirectoryDataSet_clearDestination_rdh
/** * * @see org.alfasoftware.morf.xml.XmlStreamProvider.XmlOutputStreamProvider#clearDestination() */@Override public void clearDestination() { for (File file : directory.listFiles()) { // skip files/folders that start with . such as .svn if (file.getName().startsWith("."))co...
3.26
morf_DirectoryDataSet_openInputStreamForTable_rdh
/** * * @see org.alfasoftware.morf.xml.XmlStreamProvider.XmlInputStreamProvider#openInputStreamForTable(java.lang.String) */@Override public InputStream openInputStreamForTable(String tableName) { try { return new FileInputStream(new File(directory, fileNameForTable(tableName)));} catch (FileNotFoundEx...
3.26
morf_ObjectTreeTraverser_dispatch_rdh
/** * Invokes the callback on the object. If the object implements Driver then * its drive method is invoked, propagating this traverser. Iterables and * arrays will have the callback invoked on their elements. * * @param object * the object node in the object graph. * @return this, for method chaining. * @pa...
3.26
morf_ObjectTreeTraverser_forCallback_rdh
/** * Creates a new traverser for a callback. * * @param callback * The callback * @return the resulting traverser */public static ObjectTreeTraverser forCallback(Callback callback) { return new ObjectTreeTraverser(callback); }
3.26
morf_AbstractSelectStatement_m2_rdh
/** * Gets the alias of this select statement. * * @return the alias */ public String m2() { return alias; }
3.26
morf_AbstractSelectStatement_getFromSelects_rdh
/** * * @return the fromSelects */ public List<SelectStatement> getFromSelects() { return fromSelects; }
3.26
morf_AbstractSelectStatement_drive_rdh
/** * * @see org.alfasoftware.morf.util.ObjectTreeTraverser.Driver#drive(org.alfasoftware.morf.util.ObjectTreeTraverser) */ @Override public void drive(ObjectTreeTraverser dispatcher) { dispatcher.dispatch(table).dispatch(fields).dispatch(joins).dispatch(fromSelects).dispatch(whereCriterion).dispatch(orderBys); }
3.26
morf_AbstractSelectStatement_getTable_rdh
/** * Gets the first table * * @return the table */ public TableReference getTable() { return table; }
3.26
morf_AbstractSelectStatement_where_rdh
/** * Specifies the where criteria. For use in code where the criteria are being generated dynamically. * The iterable can be empty but not null. * * @param criteria * the criteria to filter the results by. They will be <i>AND</i>ed together. * @return a new select statement with the change applied. */ public ...
3.26
morf_AbstractSelectStatement_copyOnWriteOrMutate_rdh
/** * Either uses {@link #shallowCopy()} and mutates the result, returning it, * or mutates the statement directly, depending on * {@link AliasedField#immutableDslEnabled()}. * * TODO for removal along with mutable behaviour. * * @param transform * A transform which modifies the shallow copy builder. * @para...
3.26
morf_AbstractSelectStatement_fullOuterJoin_rdh
/** * Specifies an full outer join to a subselect: * * <blockquote><pre> * TableReference sale = tableRef("Sale"); * TableReference customer = tableRef("Customer"); * * // Define the subselect - a group by showing total sales by age in the * // previous month. * SelectStatement amountsByAgeLastMonth = select(f...
3.26
morf_AbstractSelectStatement_asTable_rdh
/** * * @return a reference to the alias of the select statement. */ public TableReference asTable() { return new TableReference(m2()); }
3.26
morf_AbstractSelectStatement_from_rdh
/** * Selects fields from one or more inner selects: * * <blockquote><pre> * SelectStatement statement = select().from(select().from(&quot;Foo&quot;)); * </pre></blockquote> * * @param fromSelect * the select statements to select from * @return a new select statement with the change applied. */ public T fro...
3.26
morf_AbstractSelectStatement_getJoins_rdh
/** * Gets the list of joined tables in the order they are joined * * @return the joined tables */ public List<Join> getJoins() { return joins; }
3.26
morf_AbstractSelectStatement_getWhereCriterion_rdh
/** * Gets the where criteria. * * @return the where criteria */ public Criterion getWhereCriterion() { return whereCriterion;}
3.26
morf_AbstractSelectStatement_innerJoin_rdh
/** * Specifies an inner join to a subselect: * * <blockquote><pre> * TableReference sale = tableRef("Sale"); * TableReference customer = tableRef("Customer"); * * // Define the subselect - a group by showing total sales by age * SelectStatement amountsByAge = select(field("age"), sum(field("amount"))) * ....
3.26
morf_AbstractSelectStatement_alias_rdh
/** * Sets the alias for this select statement. This is useful if you are * including multiple select statements in a single select (not to be confused * with a join) and wish to reference the select statement itself. * * @param alias * the alias to set. * @return the new select statement with the change appli...
3.26
morf_AbstractSelectStatement_getOrderBys_rdh
/** * Gets the fields which the select is ordered by * * @return the order by fields */ public List<AliasedField> getOrderBys() { return orderBys; }
3.26
morf_AbstractSelectStatement_getFields_rdh
/** * Gets the list of fields * * @return the fields */ public List<AliasedField> getFields() {return fields; }
3.26
morf_AbstractSelectStatement_m0_rdh
/** * * @param aliasedFields * The fields to add * @deprecated Do not use {@link AbstractSelectStatement} mutably. Create a new statement. */ @Deprecated protected void m0(Iterable<? extends AliasedFieldBuilder> aliasedFields) { AliasedField.assetImmutableDslDisabled(); fields.addAll(FluentIterable.from(aliasedF...
3.26
morf_AbstractSelectStatement_m4_rdh
/** * * @see java.lang.Object#toString() */ @Override public String m4() { StringBuilder result = new StringBuilder(); if (fields.isEmpty()) { result.append("*"); } else { result.append(fields); } if (table != null) { result.append(" FROM [").append(table).append("]"); } if (!fromSelects.isEmpty()) { result.append(...
3.26
morf_AbstractSelectStatement_addFields_rdh
/** * * @param aliasedFields * The fields to add * @deprecated Do not use {@link AbstractSelectStatement} mutably. Create a new statement. */ @Deprecated protected void addFields(AliasedFieldBuilder... aliasedFields) { addFields(Arrays.asList(aliasedFields)); }
3.26
morf_AbstractSelectStatement_crossJoin_rdh
/** * Specifies a cross join (creating a cartesian product) to a subselect: * * <blockquote><pre> * // Each sale as a percentage of all sales * TableReference sale = tableRef("Sale"); * SelectStatement outer = select( * sale.field("id"), * sale.field("amount") * .divideBy(totalSales.asTabl...
3.26
morf_AbstractSelectStatement_leftOuterJoin_rdh
/** * Specifies an left outer join to a subselect: * * <blockquote><pre> * TableReference sale = tableRef("Sale"); * TableReference customer = tableRef("Customer"); * * // Define the subselect - a group by showing total sales by age in the * // previous month. * SelectStatement amountsByAgeLastMonth = select(f...
3.26
morf_AbstractSelectStatement_orderBy_rdh
/** * Specifies the fields by which to order the result set. For use in builder code. * See {@link #orderBy(AliasedField...)} for the DSL version. * * @param orderFields * the fields to order by * @return a new select statement with the change applied. */ public T orderBy(Iterable<AliasedField> orderFields) { ...
3.26
morf_DummyXmlOutputStreamProvider_m0_rdh
/** * * @return Convert the output to a String */ public String m0() { return new String(testOutputStream.toByteArray()); }
3.26
morf_DummyXmlOutputStreamProvider_m1_rdh
/** * * @return Whether clearDestination was called. */ public boolean m1() { return cleared; }
3.26
morf_DummyXmlOutputStreamProvider_clearDestination_rdh
/** * * @see org.alfasoftware.morf.xml.XmlStreamProvider.XmlOutputStreamProvider#clearDestination() */ @Override public void clearDestination() { cleared = true; }
3.26
morf_DummyXmlOutputStreamProvider_openOutputStreamForTable_rdh
/** * * @see org.alfasoftware.morf.xml.XmlStreamProvider.XmlOutputStreamProvider#openOutputStreamForTable(java.lang.String) */ @Override public OutputStream openOutputStreamForTable(String tableName) { return testOutputStream; }
3.26
morf_DummyXmlOutputStreamProvider_open_rdh
/** * * @see org.alfasoftware.morf.xml.XmlStreamProvider#open() */ @Override public void open() { // Nothing to do }
3.26
morf_H2Dialect_tableNameWithSchemaName_rdh
/** * * @see org.alfasoftware.morf.jdbc.SqlDialect#tableNameWithSchemaName(org.alfasoftware.morf.sql.element.TableReference) */ @Override protected String tableNameWithSchemaName(TableReference tableRef) { if (!StringUtils.isEmpty(tableRef.getDblink())) throw new IllegalStateException((("DB Links are not...
3.26
morf_H2Dialect_internalTableDeploymentStatements_rdh
/** * * @see org.alfasoftware.morf.jdbc.SqlDialect#tableDeploymentStatements(org.alfasoftware.morf.metadata.Table) */ @Override public Collection<String> internalTableDeploymentStatements(Table table) { List<String> statements = new ArrayList<>(); // Create the table deployment statement StringBuilder ...
3.26
morf_H2Dialect_getSqlForWindowFunction_rdh
/** * * @see org.alfasoftware.morf.jdbc.SqlDialect#getSqlForWindowFunction(Function) */ @Override protected String getSqlForWindowFunction(Function function) { FunctionType functionType = function.getType(); switch (functionType) { case ROW_NUMBER : return "ROW_NUMBER()"; default ...
3.26
morf_H2Dialect_addPrimaryKeyConstraintStatement_rdh
/** * * @param table * The table to add the constraint for * @param primaryKeyColumnNames * List of the column names of the primary key * @return The statement */ private String addPrimaryKeyConstraintStatement(Table table, List<String> primaryKeyColumnNames) { return (((((("ALTER TABLE " + schemaNamePre...
3.26
morf_H2Dialect_renameTableStatements_rdh
/** * * @see org.alfasoftware.morf.jdbc.SqlDialect#renameTableStatements(org.alfasoftware.morf.metadata.Table, org.alfasoftware.morf.metadata.Table) */ @Override public Collection<String> renameTableStatements(Table from, Table to) { Builder<String> builder = ImmutableList.builder(); if (!primaryKeysForTabl...
3.26
morf_H2Dialect_getSqlForYYYYMMDDToDate_rdh
/** * * @see org.alfasoftware.morf.jdbc.SqlDialect#getSqlForYYYYMMDDToDate(org.alfasoftware.morf.sql.element.Function) */ @Override protected String getSqlForYYYYMMDDToDate(Function function) { AliasedField field = function.getArguments().get(0); return ((((("CAST(SUBSTRING(" + getSqlFrom(field)) + ", 1,...
3.26