name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
morf_ChangeIndex_applyChange_rdh | /**
* Changes an index from the start point to the end point.
*
* @param schema
* {@link Schema} to apply the change against resulting in new
* metadata.
* @param indexStartPoint
* the start definition for the index
* @param indexEndPoint
* the end definition for... | 3.26 |
morf_ChangeIndex_isApplied_rdh | /**
* {@inheritDoc }
*
* @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(ta... | 3.26 |
morf_ChangeIndex_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_ChangeIndex_apply_rdh | /**
* {@inheritDoc }
*
* @see org.alfasoftware.morf.upgrade.SchemaChange#apply(org.alfasoftware.morf.metadata.Schema)
*/
@Override
public Schema apply(Schema schema) {
return applyChange(schema, fromIndex, toIndex);
} | 3.26 |
morf_ChangeIndex_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_ChangeIndex_reverse_rdh | /**
* {@inheritDoc }
*
* @see org.alfasoftware.morf.upgrade.SchemaChange#reverse(org.alfasoftware.morf.metadata.Schema)
*/
@Override
public Schema
reverse(Schema schema) {
return applyChange(schema, toIndex, fromIndex);
} | 3.26 |
morf_ChangeIndex_getFromIndex_rdh | /**
* Gets the index prior to the change
*
* @return the index prior to the change
*/
public Index getFromIndex() {
return fromIndex;
} | 3.26 |
morf_RemoveIndex_getIndexToBeRemoved_rdh | /**
*
* @return The index to be removed.
*/
public Index getIndexToBeRemoved() {
return indexToBeRemoved;
} | 3.26 |
morf_RemoveIndex_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_RemoveIndex_getTableName_rdh | /**
*
* @return The name of the table to remove the index from.
*/
public String getTableName() {return tableName;
} | 3.26 |
morf_RemoveIndex_isApplied_rdh | /**
* {@inheritDoc }
*
* @see org.alfasoftware.morf.upgrade.SchemaChange#isApplied(Schema, ConnectionResources)
*/
@Overridepublic boolean isApplied(Schema schema, ConnectionResources database) {
if (!schema.tableExists(tableName))
return false;
Table table = sch... | 3.26 |
morf_RemoveIndex_reverse_rdh | /**
* {@inheritDoc }
*
* @see org.alfasoftware.morf.upgrade.SchemaChange#reverse(org.alfasoftware.morf.metadata.Schema)
*/
@Override
public Schema reverse(Schema schema) {
Table original = schema.getTable(tableName);
List<String> v8 = new ArrayList<>();
for (Index index : original.indexes()) {
v... | 3.26 |
morf_RemoveIndex_apply_rdh | /**
* {@inheritDoc }
*
* @see org.alfasoftware.morf.upgrade.SchemaChange#apply(org.alfasoftware.morf.metadata.Schema)
*/
@Override
public Schema apply(Schema schema) {
Table original = schema.getTable(tableName);
boolean foundIndex = false;
List<String> indexes = new ArrayList<>();
for (Index inde... | 3.26 |
morf_SchemaEditor_addPrimaryKey_rdh | /**
* Create the primary key of a table.
*
* @param tableName
* The original table name
* @param newPrimaryKeyColumns
* The new primary key columns for the table.
*/
default void addPrimaryKey(String tableName, List<String> newPrimaryKeyColumns) {
changePrimaryKeyColumns(tableName, Collections.emptyList(... | 3.26 |
morf_SchemaEditor_removePrimaryKey_rdh | /**
* Drop the primary key of a table.
*
* @param tableName
* The original table name
* @param oldPrimaryKeyColumns
* The current/old primary key columns for the table.
*/
default void removePrimaryKey(String tableName, List<String> oldPrimaryKeyColumns) {
changePrimaryKeyColumns(tableName, oldPrima... | 3.26 |
morf_DataValue_defaultHashCode_rdh | /**
* Default hashCode implementation for instances.
*
* @param obj
* The object.
* @return The hashCode.
*/
public static int defaultHashCode(DataValue obj) {
final int prime = 31;
int result = 1;
result = (prime * result) + obj.getName().hashCode();
... | 3.26 |
morf_DataValue_defaultEquals_rdh | /**
* Default equals implementation for instances.
*
* @param obj1
* this
* @param obj2
* the other
* @return true if equivalent.
*/
public static boolean defaultEquals(DataValue obj1, Object obj2) {
if (obj1 == obj2)
return true;
if (obj2 == null)return false;
if (!(obj2 instanceof D... | 3.26 |
morf_AllowParallelDmlHint_toString_rdh | /**
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return getClass().getSimpleName();} | 3.26 |
morf_AddIndex_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_AddIndex_getNewIndex_rdh | /**
*
* @return The new index.
*/
public Index getNewIndex() {
return newIndex;
} | 3.26 |
morf_AddIndex_reverse_rdh | /**
* {@inheritDoc }
*
* @see org.alfasoftware.morf.upgrade.SchemaChange#reverse(org.alfasoftware.morf.metadata.Schema)
*/
@Override
public Schema reverse(Schema schema) {
Table original = schema.getTable(tableName);
List<String> indexeNames = new ArrayList<>();
boolean v8 = false;
for (Index index ... | 3.26 |
morf_AddIndex_getTableName_rdh | /**
*
* @return the name of the table to add the column to.
*/
public String getTableName() {
return tableName;
} | 3.26 |
morf_AddIndex_isApplied_rdh | /**
* {@inheritDoc }
*
* @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_AddIndex_apply_rdh | /**
* {@inheritDoc }
*
* @see org.alfasoftware.morf.upgrade.SchemaChange#apply(org.alfasoftware.morf.metadata.Schema)
*/
@Override public Schema apply(Schema schema) {
Table original = schema.getTable(tableName);
if (original == null) {
throw new IllegalArgumentException(String.format("Cannot add ... | 3.26 |
morf_PostgreSQL_getXADataSource_rdh | /**
* Returns a PostgreSQL XA data source.
*
* @throws IllegalStateException
* If the data source cannot be created.
* @see org.alfasoftware.morf.jdbc.DatabaseType#getXADataSource(String, String, String)
*/
@Override
public XADataSource
getXADataSource(String jdbcUrl, String username, String password) {
tr... | 3.26 |
morf_DatabaseExceptionHelper_isCausedByTimeoutException_rdh | /**
* <p>Checks if the throwable was caused by timeout exception.</p>
* <b>This method has been tested for Oracle and MySQL only and might not work
* for other DB engines.</b>
*
* @param throwable
* to check
* @return true if the throwable is caused by a timeout, false otherwise... | 3.26 |
morf_SchemaAndDataChangeVisitor_visit_rdh | /**
* Perform visit operation on a {@link WindowFunction} instance.
*
* @param windowFunction
* instance of {@link WindowFunction} to visit.
*/
default void visit(WindowFunction windowFunction) {
// Do nothing on default
} | 3.26 |
morf_UnionSetOperator_getSelectStatement_rdh | /**
* {@inheritDoc }
*
* @see org.alfasoftware.morf.sql.SetOperator#getSelectStatement()
*/
@Overridepublic SelectStatement getSelectStatement() {
return selectStatement;
} | 3.26 |
morf_UnionSetOperator_accept_rdh | /**
*
* @see org.alfasoftware.morf.sql.SchemaAndDataChangeVisitable#accept(org.alfasoftware.morf.upgrade.SchemaAndDataChangeVisitor)
*/
@Override
public void accept(SchemaAndDataChangeVisitor visitor) {
visitor.visit(this);
selectStatement.accept(visitor);
} | 3.26 |
morf_UnionSetOperator_drive_rdh | /**
*
* @see org.alfasoftware.morf.util.ObjectTreeTraverser.Driver#drive(ObjectTreeTraverser)
*/
@Override
public void drive(ObjectTreeTraverser traverser) {
traverser.dispatch(getSelectStatement());
} | 3.26 |
morf_UnionSetOperator_toString_rdh | /**
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return (("UNION " + unionStrategy) + " ") + selectStatement;
} | 3.26 |
morf_UnionSetOperator_getUnionStrategy_rdh | /**
*
* @return The duplicate row elimination strategy.
* @see UnionStrategy
*/
public UnionStrategy getUnionStrategy() {
return unionStrategy;
} | 3.26 |
morf_UnionSetOperator_deepCopy_rdh | /**
*
* @see org.alfasoftware.morf.util.DeepCopyableWithTransformation#deepCopy(org.alfasoftware.morf.util.DeepCopyTransformation)
*/
@Override
public Builder<SetOperator> deepCopy(DeepCopyTransformation transformer) {
return TempTransitionalBuilderWrapper.<SetOperator>wrapper(new UnionSetOperator(getUnionStrat... | 3.26 |
morf_UnionSetOperator_validateOrderBy_rdh | /**
* Don't allow sub-select statements to have ORDER BY statements, as this is
* an invalid construct in in SQL-92.
*
* @param selectStatement
* the select statement to be validated.
*/
private void
validateOrderBy(SelectStatement selectStatement) throws IllegalArgumentException {
if (!selectStatement.getO... | 3.26 |
morf_CaseInsensitiveString_equals_rdh | /**
* Direct instance comparison (we ensure that instances never get duplicated).
* Use {@link #equalsString(String)} to compare with strings.
*
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object obj) {
return this == obj;
} | 3.26 |
morf_CaseInsensitiveString_unsafeClearCache_rdh | /**
* Do not under any circumstances use this outside a strictly single-threaded test.
* Clearing the cache will cause new instances to be created for previous strings.
* If that occurs, the shortcut equals logic we use will no longer hold true.
*
* <p>If it becomes necessary to flush the cache at runtime to avoid... | 3.26 |
morf_CaseInsensitiveString_of_rdh | /**
* Returns the string, wrapped as case insensitive.
*
* @param string
* The string.
* @return The wrapped instance;
*/static CaseInsensitiveString of(String string) {
// Fast case - return the existing interned instance
CaseInsensitiveString result = cache.get(string);
if (result == null) {
... | 3.26 |
morf_CaseInsensitiveString_m0_rdh | /**
* When deserializing, resolve via the static factory. This prevents us getting duplicate
* instances.
*
* @return The interned instance.
*/
private Object m0() {
return of(string);
} | 3.26 |
morf_CaseInsensitiveString_hashCode_rdh | /**
* Case-insensitive hashcode implementation.
*
* @see java.lang.Object#hashCode()
*/
@Override
public int hashCode() {
return hash;
} | 3.26 |
morf_CaseInsensitiveString_toString_rdh | /**
* Returns the internal representation of the string value. Note that the
* case of this is unpredictable. Do not use to compare to other strings;
* instead use {@link #equalsString(String)}.
*
* @see java.lang.Object#toString()
*/@Override
public String toString() {
return string;
} | 3.26 |
morf_IndexBean_getName_rdh | /**
*
* @see org.alfasoftware.morf.metadata.Index#getName()
*/
@Override
public String getName() {
return name;
} | 3.26 |
morf_IndexBean_isUnique_rdh | /**
*
* @return the unique
*/
@Override
public boolean isUnique() {
return unique;
} | 3.26 |
morf_IndexBean_columnNames_rdh | /**
*
* @see org.alfasoftware.morf.metadata.Index#columnNames()
*/
@Override
public List<String> columnNames() {
return columnNames;
} | 3.26 |
morf_DialectSpecificHint_isSameDatabaseType_rdh | /**
* Tests whether the supplied databaseType string is equal to the databaseType that is held by this class.
* The test is performed using {@link java.lang.String#equals(Object)}.
*
* @param databaseType
* a database type identifier. Eg: ORACLE, PGSQL, SQL_SERVER
* @return true if the databaseType parameter is... | 3.26 |
morf_RenameIndex_getFromIndexName_rdh | /**
* Gets the name of the index prior to the change
*
* @return the name of the index prior to the change
*/
public String getFromIndexName() {
return fromIndexName;
} | 3.26 |
morf_RenameIndex_m0_rdh | /**
* Gets the name of the table to change.
*
* @return the name of the table to change
*/
public String m0() {
return tableName;
} | 3.26 |
morf_RenameIndex_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_RenameIndex_applyChange_rdh | /**
* Renames an index from the name specified to the new name.
*
* @param schema
* {@link Schema} to apply the change against resulting in new
* metadata.
* @param indexStartName
* the starting name for the index
* @param indexEndName
* the end name for the index
* @return MetaData with {@link Schema... | 3.26 |
morf_RenameIndex_reverse_rdh | /**
* {@inheritDoc }
*
* @see org.alfasoftware.morf.upgrade.SchemaChange#reverse(org.alfasoftware.morf.metadata.Schema)
*/@Override public Schema reverse(Schema schema) {
return applyChange(schema,
toIndexName, fromIndexName);
} | 3.26 |
morf_RenameIndex_getToIndexName_rdh | /**
* Gets the name of the index after the change
*
* @return the name of the index after the change
*/
public String getToIndexName() {
return toIndexName;
} | 3.26 |
morf_RenameIndex_apply_rdh | /**
* {@inheritDoc }
*
* @see org.alfasoftware.morf.upgrade.SchemaChange#apply(org.alfasoftware.morf.metadata.Schema)
*/
@Override
public Schema apply(Schema schema) {
return applyChange(schema, fromIndexName, toIndexName);
}
/**
* {@inheritDoc } | 3.26 |
morf_DataSetConnectorMultiThreaded_calculateThreadCount_rdh | /**
* Calculates the number of threads to use
*
* @return The number of threads to use for dumping the database.
*/
private int calculateThreadCount() {
int processorCount = Runtime.getRuntime().availableProcessors();
switch (processorCount) {
case 0 :throw new RuntimeException("Could not find at le... | 3.26 |
morf_DataSetConnectorMultiThreaded_connect_rdh | /**
* Transmits all data from the producer to the consumer.
*/
public void connect() {
CloseState closeState = CloseState.INCOMPLETE;
ExecutorService executor = Executors.newFixedThreadPool(threadCount);
try {
consumer.open();
producer.open();
... | 3.26 |
morf_DataSetConnectorMultiThreaded_run_rdh | /**
* Cryo-s the table with the name given in the constructor from the producer to
* the consumer.
*/
@Override
public void run() {
consumer.table(producer.getSchema().getTable(tableName), producer.records(tableName));
} | 3.26 |
morf_DropViewListener_deregisterAllViews_rdh | /**
*
* @return List of sql statements.
* @deprecated kept to ensure backwards compatibility.
*/
@Override
@Deprecated
public Iterable<String> deregisterAllViews() {
return ImmutableList.of();
} | 3.26 |
morf_DropViewListener_deregisterView_rdh | /**
*
* @param view
* View being de-registered.
* @return List of sql statements.
* @deprecated kept to ensure backwards compatibility.
*/
@Override
@Deprecated
public Iterable<String> deregisterView(View view) {
return ImmutableList.of();
} | 3.26 |
morf_AbstractSelectStatementBuilder_getTable_rdh | /**
* Gets the first table
*
* @return the table
*/
TableReference getTable() {
return table;
} | 3.26 |
morf_AbstractSelectStatementBuilder_fields_rdh | /**
* Adds fields to the select list.
*
* @param fields
* The fields to add
* @return this, for method chaining.
*/
public T fields(AliasedFieldBuilder... fields) {
return fields(Arrays.asList(fields));
} | 3.26 |
morf_AbstractSelectStatementBuilder_m0_rdh | /**
* Gets the list of fields
*
* @return the fields
*/
List<AliasedField> m0() {
return fields;
} | 3.26 |
morf_AbstractSelectStatementBuilder_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 this, for method chaining.
*/
public T alias(... | 3.26 |
morf_AbstractSelectStatementBuilder_from_rdh | /**
* Selects fields from one or more inner selects:
*
* <blockquote><pre>
* SelectStatement statement = select().from(select().from("Foo"));
* </pre></blockquote>
*
* @param fromSelect
* the select statements to select from
* @return this, for method chaining.
*/
public T from(SelectStatement... ... | 3.26 |
morf_AbstractSelectStatementBuilder_getFromSelects_rdh | /**
*
* @return the fromSelects
*/
List<SelectStatement> getFromSelects() {
return fromSelects;
} | 3.26 |
morf_AbstractSelectStatementBuilder_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_AbstractSelectStatementBuilder_orderBy_rdh | /**
* Specifies the fields by which to order the result set. For use in builder code.
* See {@link #orderBy(AliasedFieldBuilder...)} for the DSL version.
*
* @param orderFields
* the fields to order by
* @return this, for method chaining.
*/
public T orderBy(Iterable<? extends AliasedFieldBuilder> orderFields)... | 3.26 |
morf_AbstractSelectStatementBuilder_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_AbstractSelectStatementBuilder_getJoins_rdh | /**
* Gets the list of joined tables in the order they are joined
*
* @return the joined tables
*/
List<Join> getJoins() {
return joins;
} | 3.26 |
morf_AbstractSelectStatementBuilder_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_AbstractSelectStatementBuilder_getAlias_rdh | /**
* Gets the alias of this select statement.
*
* @return the alias
*/
String getAlias() {
return alias;
} | 3.26 |
morf_AbstractSelectStatementBuilder_getWhereCriterion_rdh | /**
* Gets the where criteria.
*
* @return the where criteria
*/
Criterion getWhereCriterion() {
return whereCriterion;
} | 3.26 |
morf_AbstractSelectStatementBuilder_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 this, for method chaining.
*/
public T where(Iterable<Crit... | 3.26 |
morf_AbstractSelectStatementBuilder_getOrderBys_rdh | /**
* Gets the fields which the select is ordered by
*
* @return the order by fields
*/
List<AliasedField> getOrderBys() {
return orderBys;
} | 3.26 |
morf_AbstractSelectStatementBuilder_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_AbstractSelectStatementBuilder_castToChild_rdh | /**
*
* @param abstractSelectStatement
* @return */
@SuppressWarnings("unchecked")
private T
castToChild(AbstractSelectStatementBuilder<U, T> abstractSelectStatement) {return ((T) (abstractSelectStatement));
} | 3.26 |
morf_DataValueLookup_getValues_rdh | /**
* Returns all the key/value pairs stored.
*
* @return An iterable of data values.
*/
public default Iterable<? extends DataValue> getValues() {
throw new UnsupportedOperationException(("Data value lookup type " + getClass().getName()) + " currently lacks supported for getValues()");
} | 3.26 |
morf_DataValueLookup_getDate_rdh | /**
* Gets the value as a {@link java.sql.Date}. Will attempt conversion where possible
* and throw a suitable conversion exception if the conversion fails.
* May return {@code null} if the value is not set or is explicitly set
* to {@code null}.
*
* @param name
* The column name.
* @return The value.
*/
pu... | 3.26 |
morf_DataValueLookup_getObject_rdh | /**
* Gets the value as either a long, integer, boolean, date, local date, big decimal,
* byte array or string according to the type definition when called.
*
* <p>Just dispatches to the corresponding typed method (e.g. {@link #getBoolean(String)}).
*
* <p>Most useful when interacting with {@link ResultSet}. In o... | 3.26 |
morf_DataValueLookup_getBoolean_rdh | /**
* Gets the value as a boolean. Will attempt conversion where possible
* and throw a suitable conversion exception if the conversion fails.
* May return {@code null} if the value is not set or is explicitly set
* to {@code null}.
*
* @param name
* The column name.
* @return The value.
*/
public default B... | 3.26 |
morf_DataValueLookup_getLocalDate_rdh | /**
* Gets the value as a Joda {@link LocalDate}. Will attempt conversion where possible
* and throw a suitable conversion exception if the conversion fails.
* May return {@code null} if the value is not set or is explicitly set
* to {@code null}.
*
* @param name
* The column name.
* @return The value.
*/
p... | 3.26 |
morf_DataValueLookup_getBigDecimal_rdh | /**
* Gets the value as a {@link BigDecimal}. Will attempt conversion where possible
* and throw a suitable conversion exception if the conversion fails.
* May return {@code null} if the value is not set or is explicitly set
* to {@code null}.
*
* @param name
* The column name.
* @return The value.
*/
publi... | 3.26 |
morf_DataValueLookup_getLong_rdh | /**
* Gets the value as a long. Will attempt conversion where possible
* and throw a suitable conversion exception if the conversion fails.
* May return {@code null} if the value is not set or is explicitly set
* to {@code null}.
*
* @param name
* The column name.
* @return The value.
*/
public default Long... | 3.26 |
morf_DataValueLookup_defaultEquals_rdh | /**
* Default equals implementation for instances.
*
* @param obj1
* this
* @param obj2
* the other
* @return true if equivalent.
*/
public static boolean defaultEquals(DataValueLookup obj1, Object obj2) {
if (obj1 == obj2)
return true;
if (obj2 == null)
return false;
... | 3.26 |
morf_DataValueLookup_getInteger_rdh | /**
* Gets the value as an integer. Will attempt conversion where possible
* and throw a suitable conversion exception if the conversion fails.
* May return {@code null} if the value is not set or is explicitly set
* to {@code null}.
*
* @param name
* The column name.
* @return The value.
*/
public default ... | 3.26 |
morf_DataValueLookup_defaultHashCode_rdh | /**
* Default hashCode implementation for instances.
*
* @param obj
* The object.
* @return The hashCode.
*/
public static int defaultHashCode(DataValueLookup obj) {
final int prime = 31;
int result = 1;
for (DataValue value : obj.getValues()) {
result = (prime * result) + value.hashCode();
... | 3.26 |
morf_DataValueLookup_getDouble_rdh | /**
* Gets the value as a double. Will attempt conversion where possible and
* throw a suitable conversion exception if the conversion fails. May return
* {@code null} if the value is not set or is explicitly set to {@code null}.
* <p>
* Warning: this returns a floating-point value which cannot represent values
*... | 3.26 |
morf_DataValueLookup_getByteArray_rdh | /**
* Gets the value as a byte array. If the original data is a byte array,
* it is returned verbatim. Otherwise a conversion is attempted.
* If converted to or from a string, the value will be converted to or
* from a base 64-encoded string to preserve the content. That is:
*
* <pre><code>// Equal: Byte array... | 3.26 |
morf_DrawIOGraphPrinterImpl_print_rdh | /**
* Prints the given graph to the String instance in a format suitable for importing into Draw.io
*
* @param graph
* - {@link MutableGraph} of {@link Node}
* @param layoutFormat
* - {@link LayoutFormat} - the specific layout format to use
*/
@Override
public String
print(DrawIOGraphPrinter.PrintableGraph<D... | 3.26 |
morf_Join_on_rdh | /**
* Add ON criteria for the join.
*
* @param onCondition
* the criteria
* @return this
* @deprecated Do not use. Will be removed shortly - {@link Join} should be immutable.
*/
@Deprecated
public Join on(Criterion onCondition) {AliasedField.assetImmutableDslDisabled();
this.f0 = onCondition;
return
... | 3.26 |
morf_Join_getType_rdh | /**
* Get the type of join.
*
* @return the type
*/
public JoinType getType() {
return type;
} | 3.26 |
morf_Join_toString_rdh | /**
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
if (table != null) {
return (((type.toString() + " ") + table.toString()) + " ON ") + f0;
} else {
return (((type.toString() + " (") + subSelect.toString()) + ") ON ") + f0;
}
} | 3.26 |
morf_Join_getCriterion_rdh | /**
* Get the criteria used in the join.
*
* @return the criteria
*/
public Criterion getCriterion() {
return f0;
} | 3.26 |
morf_Join_getSubSelect_rdh | /**
*
* @return the subSelect
*/
public SelectStatement getSubSelect() {
return subSelect;
} | 3.26 |
morf_Join_getTable_rdh | /**
* Get the table to join to.
*
* @return the table
*/
public TableReference getTable() {
return table;
} | 3.26 |
morf_Join_deepCopy_rdh | /**
*
* @see org.alfasoftware.morf.util.DeepCopyableWithTransformation#deepCopy(org.alfasoftware.morf.util.DeepCopyTransformation)
*/
@Override
public Builder<Join> deepCopy(DeepCopyTransformation transformer) {
return TempTransitionalBuilderWrapper.wrapper(new Join(this, transformer));
} | 3.26 |
morf_UpgradeHelper_postSchemaUpgrade_rdh | /**
* postUpgrade - generates a collection of SQL statements to run after he upgrade.
*
* @param upgradeSchemas
* - source and target schemas for the upgrade.
* @param viewChanges
* - Changes to be made to views.
... | 3.26 |
morf_UpgradeHelper_preSchemaUpgrade_rdh | /**
* preUpgrade - generates a collection of SQL statements to run before the upgrade.
*
* @param upgradeSchemas
* - Holds the source and target schema.
* @param viewChanges
* - Changes to be made to views.
* @param viewChangesDeploymentHelper
* - Deployment helper for the view changes.
* @return - Colle... | 3.26 |
morf_UpgradeHelper_copySourceSchema_rdh | /**
* Gets the source schema from the {@code database}.
*
* @param database
* the database to connect to.
* @param dataSource
* the dataSource to use.
* @param exceptionRegexes
* – Regular expression for table exclusions.
* @return the schema.
*/
public static Schema copySourceSchema(ConnectionResource... | 3.26 |
morf_InlineTableUpgrader_writeStatements_rdh | /**
* Write out SQL
*/
private void writeStatements(Collection<String> statements) {
sqlStatementWriter.writeSql(statements); } | 3.26 |
morf_InlineTableUpgrader_visitPortableSqlStatement_rdh | /**
* Write the sql statement.
*
* @param sql
* The {@link PortableSqlStatement}
*/
private void visitPortableSqlStatement(PortableSqlStatement sql)
{
sql.inplaceUpdateTransitionalTableNames(tracker);
writeStatement(sql.getStatement(sqlDialect.getDatabaseType().identifier(),
sqlDialect.schemaNamePref... | 3.26 |
morf_InlineTableUpgrader_writeStatement_rdh | /**
* Write out SQL
*/
private void writeStatement(String statement) {
writeStatements(Collections.singletonList(statement));
} | 3.26 |
morf_InlineTableUpgrader_visitStatement_rdh | /**
* Write the DSL statement.
*
* @param statement
* The {@link Statement}.
*/
private void visitStatement(Statement statement) {
writeStatements(sqlDialect.convertStatementToSQL(statement, currentSchema, idTable));
} | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.