name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
morf_Function_toString_rdh
/** * * @see java.lang.Object#toString() */ @Override public String toString() { return (((type.toString() + "(") + StringUtils.join(arguments, ", ")) + ")") + super.toString(); }
3.26
morf_Function_sumDistinct_rdh
/** * Helper method to create an instance of the "sum(distinct)" SQL function. * * @param fieldToEvaluate * the field to evaluate in the sum function. This can be any expression resulting in a single column of data. * @return an instance of the sum function */ public static Function sumDistinct(AliasedField fie...
3.26
morf_Function_random_rdh
/** * Helper method to create an instance of the "random" SQL function. * * @return an instance of the random function. */ public static Function random() { return new Function(FunctionType.RANDOM); }
3.26
morf_Function_addMonths_rdh
/** * Helper method to create an instance of the "addMonths" SQL function. * * @param expression * the expression to evaluate * @param number * an expression evaluating to the number of months to add (or if negative, subtract) * @return an instance of the addMonths function */ public static Function addMont...
3.26
morf_Function_every_rdh
/** * Helper method to create an instance of the "every" SQL function. * * @param fieldToEvaluate * the field to evaluate in the every function. * @return an instance of the every function */ public static Function every(AliasedField fieldToEvaluate) { return new Function(FunctionType.EVERY, fieldToEvaluate...
3.26
morf_Function_trim_rdh
/** * Helper method to create an instance of the "trim" SQL function, * which will result in argument having leading and trailing spaces removed. * * @param expression * the field to evaluate. * @return an instance of the trim function. */ public static Function trim(AliasedField expression) { return new Funct...
3.26
morf_Function_lastDayOfMonth_rdh
/** * Find the last day of the month from a given date. * * @param date * field to evaluate containing a date * @return an instance of a function to find the last day of the month */ public static Function lastDayOfMonth(AliasedField date) { return new Function(FunctionType.LAST_DAY_OF_MONTH, date); }
3.26
morf_Function_leftPad_rdh
/** * Convenience helper method to create an instance of the <code>LPAD</code> SQL function. * <p>Pads the <code>character</code> on the left of <code>field</code> so that the size equals <code>length</code></p> * <p>The field should be of type {@link org.alfasoftware.morf.metadata.DataType#STRING}</p> * * @param ...
3.26
morf_Function_rightTrim_rdh
/** * Helper method to create an instance of the "rightTrim" SQL function, * which will result in argument having trailing spaces removed. * * @param expression * the field to evaluate. * @return an instance of the rightTrim function. */ public static Function rightTrim(AliasedField expression) { return new F...
3.26
morf_Function_count_rdh
/** * Helper method to create an instance of the "count" SQL function. * * @param field * the field to evaluate in the count function. * @return an instance of a count function */ public static Function count(AliasedField field) { return new Function(FunctionType.COUNT, field); }
3.26
morf_Function_blobLength_rdh
/** * Helper method to create an instance of the "length-of-BLOB" SQL function. * * @param fieldToEvaluate * the field to evaluate in the length function. This can be any expression resulting in a single column of data. * @return an instance of the length function. */ public static Function blobLength(Aliased...
3.26
morf_Function_dateToYyyyMMddHHmmss_rdh
/** * Helper method to create an instance of the "DATE_TO_YYYYMMDDHHMMSS" SQL function. * {@code expression} must result in a string. * * @see Cast * @param expression * the expression to evaluate * @return an instance of the DATE_TO_YYYYMMDDHHMMSS function */ public static Function dateToYyyyMMddHHmmss(Alias...
3.26
morf_Function_min_rdh
/** * Helper method to create an instance of the "minimum" SQL function. * * @param fieldToEvaluate * the field to evaluate in the minimum function. This can be any expression resulting in a single column of data. * @return an instance of the minimum function */ public static Function min(AliasedField fieldTo...
3.26
morf_Function_max_rdh
/** * Helper method to create an instance of the "maximum" SQL function. * * @param fieldToEvaluate * the field to evaluate in the maximum function. This can be any expression resulting in a single column of data. * @return an instance of the maximum function */ public static Function max(AliasedField fieldToEv...
3.26
morf_Function_coalesce_rdh
/** * Helper method to create an instance of the "coalesce" SQL function, * which will result in the first non-null argument. * * @param fields * the fields to evaluate. * @return an instance of the coalesce function. */ public static Function coalesce(Iterable<? extends AliasedField> fields) { return new Func...
3.26
morf_Function_mod_rdh
/** * Helper method to create an instance of the "modulo" SQL function. * * @param fieldToEvaluate * the field to evaluate in the modulo function * @param modulus * The modulus value to use * @return an instance of the modulo function */ public static Function mod(AliasedField fieldToEvaluate, AliasedField ...
3.26
morf_Function_now_rdh
/** * Helper method to create an instance of the "now" SQL function that returns the * current timestamp in UTC across all database platforms. * * @return an instance of a now function as a UTC timestamp. */ public static Function now() { return new Function(FunctionType.NOW); }
3.26
morf_Function_addDays_rdh
/** * Helper method to create an instance of the "addDays" SQL function. * * @param expression * the expression to evaluate * @param number * an expression evaluating to the number of days to add (or if negative, subtract) * @return an instance of the addDays function */ public static Function addDays(Alias...
3.26
morf_Function_isnull_rdh
/** * Helper method to create an instance of the "isnull" SQL function. * * @param fieldToEvaluate * the field to evaluate in the is null function * @param replacementValue * The replacement value * @return an instance of the is null function * @deprecated Use {@link #coalesce(AliasedField...)} instead. */...
3.26
morf_Function_deepCopyInternal_rdh
/** * * @see org.alfasoftware.morf.sql.element.AliasedField#deepCopyInternal(DeepCopyTransformation) */ @Override protected Function deepCopyInternal(DeepCopyTransformation transformer) { return new Function(this, transformer); }
3.26
morf_Function_upperCase_rdh
/** * Helper method to create an instance of the <code>UPPER</code> SQL function. * Converts all of the characters in this String to upper case using the rules * of the default locale. * * @param expression * the expression to evaluate. * @return an instance of the upper function. */ public static Function up...
3.26
morf_Function_randomString_rdh
/** * Helper method to create a function for generating random strings via SQL. * * @param length * The length of the generated string * @return an instance of the randomString function. */ public static Function randomString(AliasedField length) { return new Function(FunctionType.RANDOM_STRING, length); }
3.26
morf_Function_floor_rdh
/** * Helper method to create an instance of the "floor" SQL function, which will * round the provided value down to an integer value. * <p> * Example : 3.2, 3.5 and 3.9 will all round to 3 * </p> * * @param expression * the expression to evaluate * @return an instance of the floor function */ public static...
3.26
morf_Function_some_rdh
/** * Helper method to create an instance of the "some" SQL function. * * @param fieldToEvaluate * the field to evaluate in the some function. * @return an instance of the some function */ public static Function some(AliasedField fieldToEvaluate) { return new Function(FunctionType.SOME, fieldToEvaluate); }
3.26
morf_Function_leftTrim_rdh
/** * Helper method to create an instance of the "leftTrim" SQL function, * which will result in argument having leading spaces removed. * * @param expression * the field to evaluate. * @return an instance of the leftTrim function. */ public static Function leftTrim(AliasedField expression) { return new Functi...
3.26
morf_Function_greatest_rdh
/** * Helper method to create an instance of the "greatest" SQL function. * * @param fields * the fields to evaluate. * @return an instance of the "greatest" function. */ public static Function greatest(AliasedField... fields) { return new Function(FunctionType.GREATEST, fields); }
3.26
morf_Function_m1_rdh
/** * Helper method to create an instance of the "YYYYMMDDToDate" SQL function. * {@code expression} must result in a string. * * @see Cast * @param expression * the expression to evaluate * @return an instance of the YYYYMMDDToDate function */public static Function m1(AliasedField expression) { return ne...
3.26
morf_Function_averageDistinct_rdh
/** * Helper method to create an instance of the "average(distinct)" SQL function. * * @param field * the field to evaluate in the average function. * @return an instance of a average function. */public static Function averageDistinct(AliasedField field) { return new Function(FunctionType.AVERAGE_DISTINCT, ...
3.26
morf_Function_daysBetween_rdh
/** * The number of days between two dates including one bound, but excluding the other; * so {@code daysBetween(2012-12-20, 2012-12-21)} is 1. * * @param fromDate * Lower bound. * @param toDate * Upper bound. * @return function An instance of the "days between" function. */ public static AliasedField days...
3.26
morf_Function_least_rdh
/** * Helper method to create an instance of the "least" SQL function. * * @param fields * the fields to evaluate. * @return an instance of the "least" function. */ public static Function least(Iterable<? extends AliasedField> fields) { return new Function(FunctionType.LEAST, fields); }
3.26
morf_Function_lowerCase_rdh
/** * Helper method to create an instance of the <code>LOWER</code> SQL function. * Converts all of the characters in this String to lower case using the rules * of the default locale. * * @param expression * the expression to evaluate. * @return an instance of the lower function. */ public static Function lo...
3.26
morf_Function_getArguments_rdh
/** * Gets the list of arguments associated with the function. * * @return the arguments */ public List<AliasedField> getArguments() { return arguments; }
3.26
morf_Function_getType_rdh
/** * Get the type of the function. * * @return the type */ public FunctionType getType() { return type; }
3.26
morf_Function_countDistinct_rdh
/** * Helper method to create an instance of the "count(distinct)" SQL function. * * @param field * the field to evaluate in the count function. * @return an instance of a count function */ public static Function countDistinct(AliasedField field) { return new Function(FunctionType.COUNT_DISTINCT, field); }
3.26
morf_Function_length_rdh
/** * Helper method to create an instance of the "length" SQL function. * * @param fieldToEvaluate * the field to evaluate in the length function. This can be any expression resulting in a single column of data. * @return an instance of the length function. */ public static Function length(AliasedField fieldToE...
3.26
morf_Function_power_rdh
/** * Helper method to create a function for raising one argument to the power of another. * <p> * Example : power(10,3) would become 1000 * </p> * * @param operand1 * the base * @param operand2 * the exponent * @return an instance of the multiply function. */ public static Function power(AliasedField o...
3.26
morf_UseParallelDml_getDegreeOfParallelism_rdh
/** * * @return the degree of parallelism for this PARALLEL query hint. */ public Optional<Integer> getDegreeOfParallelism() { return degreeOfParallelism; }
3.26
morf_ConnectionResourcesBean_setInstanceName_rdh
/** * * @see org.alfasoftware.morf.jdbc.AbstractConnectionResources#setInstanceName(java.lang.String) */ @Overridepublic void setInstanceName(String instanceName) { this.instanceName = instanceName; }
3.26
morf_ConnectionResourcesBean_getStatementPoolingMaxStatements_rdh
/** * * @see org.alfasoftware.morf.jdbc.ConnectionResources#getStatementPoolingMaxStatements() */ @Override public int getStatementPoolingMaxStatements() { return statementPoolingMaxStatements;}
3.26
morf_ConnectionResourcesBean_setUserName_rdh
/** * * @see org.alfasoftware.morf.jdbc.AbstractConnectionResources#setUserName(java.lang.String) */ @Override public void setUserName(String userName) { this.userName = userName; }
3.26
morf_ConnectionResourcesBean_setPort_rdh
/** * * @see org.alfasoftware.morf.jdbc.AbstractConnectionResources#setPort(int) */@Override public void setPort(int port) { this.port = port; }
3.26
morf_ConnectionResourcesBean_getInstanceName_rdh
/** * * @see org.alfasoftware.morf.jdbc.AbstractConnectionResources#getInstanceName() */ @Overridepublic String getInstanceName() { return instanceName; }
3.26
morf_ConnectionResourcesBean_setStatementPoolingMaxStatements_rdh
/** * * @see org.alfasoftware.morf.jdbc.AbstractConnectionResources#setStatementPoolingMaxStatements(int) */ @Override public void setStatementPoolingMaxStatements(int statementPoolingMaxStatements) { this.statementPoolingMaxStatements = statementPoolingMaxStatements; }
3.26
morf_ConnectionResourcesBean_setSchemaName_rdh
/** * * @see org.alfasoftware.morf.jdbc.AbstractConnectionResources#setSchemaName(java.lang.String) */ @Override public void setSchemaName(String schemaName) {this.schemaName = schemaName; }
3.26
morf_ConnectionResourcesBean_setFetchSizeForBulkSelectsAllowingConnectionUseDuringStreaming_rdh
/** * * @see org.alfasoftware.morf.jdbc.AbstractConnectionResources#setFetchSizeForBulkSelectsAllowingConnectionUseDuringStreaming(Integer) */ @Override public void setFetchSizeForBulkSelectsAllowingConnectionUseDuringStreaming(Integer fetchSizeForBulkSelectsAllowingConnectionUseDuringStreaming) { this.fetchSizeForB...
3.26
morf_ConnectionResourcesBean_getFetchSizeForBulkSelectsAllowingConnectionUseDuringStreaming_rdh
/** * * @see ConnectionResources#getFetchSizeForBulkSelectsAllowingConnectionUseDuringStreaming() */ @Overridepublic Integer getFetchSizeForBulkSelectsAllowingConnectionUseDuringStreaming() { return fetchSizeForBulkSelectsAllowingConnectionUseDuringStreaming; }
3.26
morf_ConnectionResourcesBean_equals_rdh
/** * * @see java.lang.Object#equals(java.lang.Object) */ @Override public final boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ConnectionResourcesBean other = ((ConnectionResourcesB...
3.26
morf_ConnectionResourcesBean_getPort_rdh
/** * * @see org.alfasoftware.morf.jdbc.AbstractConnectionResources#getPort() */ @Override public int getPort() { return port; }
3.26
morf_ConnectionResourcesBean_getHostName_rdh
/** * * @see org.alfasoftware.morf.jdbc.AbstractConnectionResources#getHostName() */ @Override public String getHostName() { return hostName; }
3.26
morf_ConnectionResourcesBean_setDatabaseType_rdh
/** * * @see org.alfasoftware.morf.jdbc.AbstractConnectionResources#setDatabaseType(java.lang.String) */ @Override public void setDatabaseType(String databaseType) { this.databaseType = databaseType; }
3.26
morf_ConnectionResourcesBean_getUserName_rdh
/** * * @see org.alfasoftware.morf.jdbc.AbstractConnectionResources#getUserName() */ @Override public String getUserName() { return userName; }
3.26
morf_ConnectionResourcesBean_getDatabaseType_rdh
/** * * @see org.alfasoftware.morf.jdbc.ConnectionResources#getDatabaseType() */ @Overridepublic String getDatabaseType() { return databaseType; }
3.26
morf_ConnectionResourcesBean_m2_rdh
/** * * @see org.alfasoftware.morf.jdbc.AbstractConnectionResources#getPassword() */ @Override public String m2() { return password; }
3.26
morf_ConnectionResourcesBean_setFetchSizeForBulkSelects_rdh
/** * * @see org.alfasoftware.morf.jdbc.AbstractConnectionResources#setFetchSizeForBulkSelects(Integer) */ @Override public void setFetchSizeForBulkSelects(Integer fetchSizeForBulkSelects) { this.fetchSizeForBulkSelects = fetchSizeForBulkSelects; }
3.26
morf_ConnectionResourcesBean_hashCode_rdh
/** * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { final int prime = 31; int result = 1; result = (prime * result) + (databaseName == null ? 0 : databaseName.hashCode()); result = (prime * result) + (databaseType == null ? 0 : databaseType.hashCode()); result = (prim...
3.26
morf_ConnectionResourcesBean_setPassword_rdh
/** * * @see org.alfasoftware.morf.jdbc.AbstractConnectionResources#setPassword(java.lang.String) */ @Override public void setPassword(String password) { this.password = password; }
3.26
morf_ConnectionResourcesBean_getFetchSizeForBulkSelects_rdh
/** * * @see ConnectionResources#getFetchSizeForBulkSelects() */ @Override public Integer getFetchSizeForBulkSelects() { return fetchSizeForBulkSelects;}
3.26
morf_ConnectionResourcesBean_getDatabaseName_rdh
/** * * @see org.alfasoftware.morf.jdbc.ConnectionResources#getDatabaseName() */ @Override public String getDatabaseName() { return databaseName; }
3.26
morf_ConnectionResourcesBean_toString_rdh
/** * {@inheritDoc } * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append(this.getClass().getSimpleName()).append(": "); builder.append("JDBC URL [").append(getJdbcUrl()).append("] "); builder.append("Username [").ap...
3.26
morf_ChangelogStatementConsumer_writeWrapped_rdh
/** * Writes one or more lines of text, applying line wrapping. */ private void writeWrapped(final String text) { // Handle the case of multiple lines if (text.contains(System.lineSeparator())) { for (String line : text.split(System.lineSeparator())) { writeWrapped(line); } ...
3.26
morf_ExistingViewStateLoader_isEmpty_rdh
/** * * @return true if there are no views to deploy or drop. */ public boolean isEmpty() { return viewsToDrop.isEmpty() && f0.isEmpty(); }
3.26
morf_ExistingViewStateLoader_getViewsToDrop_rdh
/** * * @return the views which need to be dropped. */ public Collection<View> getViewsToDrop() { return viewsToDrop; }
3.26
morf_ExistingViewStateLoader_getViewsToDeploy_rdh
/** * * @return the views which need to be deployed. */ public Collection<View> getViewsToDeploy() { return f0; }
3.26
morf_ExistingViewStateLoader_viewChanges_rdh
/** * Loads the set of view changes which need to be made to match the target schema. * * @param sourceSchema * the existing schema. * @param targetSchema * the target schema. * @return the views which should not be present, and the views which need deploying. */ public Result viewChanges(Schema sourceSchem...
3.26
morf_UpdateStatement_set_rdh
/** * Specifies the fields to set. * * @param destinationFields * the fields to update in the database table * @return a statement with the changes applied. */ public UpdateStatement set(AliasedField... destinationFields) { if (AliasedField.immutableDslEnabled()) { return shallowCopy().set(destinat...
3.26
morf_UpdateStatement_where_rdh
/** * Specifies the where criteria. * * <blockquote><pre> * update([table]) * .set([fields]) * .where([criteria]);</pre></blockquote> * * @param criterion * the criteria to filter the results by * @return a statement with the changes applied. */ public UpdateStatement where(Criterion criterion) {if (Al...
3.26
morf_UpdateStatement_getTable_rdh
/** * Gets the table being inserted into * * @return the table being inserted into */ public TableReference getTable() { return table; }
3.26
morf_UpdateStatement_deepCopy_rdh
/** * * @see org.alfasoftware.morf.util.DeepCopyableWithTransformation#deepCopy(org.alfasoftware.morf.util.DeepCopyTransformation) */ @Override public UpdateStatementBuilder deepCopy(DeepCopyTransformation transformer) { return new UpdateStatementBuilder(this, transformer); }
3.26
morf_UpdateStatement_drive_rdh
/** * * @see org.alfasoftware.morf.util.ObjectTreeTraverser.Driver#drive(ObjectTreeTraverser) */ @Override public void drive(ObjectTreeTraverser traverser) { traverser.dispatch(getTable()).dispatch(getWhereCriterion()).dispatch(getFields()).dispatch(getHints()); }
3.26
morf_UpdateStatement_getFields_rdh
/** * Gets the list of fields * * @return the fields */ public List<AliasedField> getFields() { return fields; }
3.26
morf_UpdateStatement_getWhereCriterion_rdh
/** * Gets the where criteria. * * @return the where criteria */ public Criterion getWhereCriterion() { return whereCriterion; }
3.26
morf_UpdateStatement_useParallelDml_rdh
/** * Request that this statement is executed with a parallel execution plan for data manipulation language (DML). This request will have no effect unless the database implementation supports it and the feature is enabled. * * <p>For statement that will affect a high p...
3.26
morf_UpdateStatement_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 UpdateStatementBuilder shallowCopy() { return new UpdateStatementBuilder(this); }
3.26
morf_UpdateStatement_getHints_rdh
/** * * @return all hints in the order they were declared. */ public List<Hint> getHints() { return hints; }
3.26
morf_UpdateStatement_update_rdh
/** * Constructs an update statement. * * @param tableReference * the database table to update * @return Builder. */ public static UpdateStatementBuilder update(TableReference tableReference) { return new UpdateStatementBuilder(tableReference); }
3.26
morf_TableOutputter_unsupportedOperationExceptionMessageSuffix_rdh
/** * Creates an {@link UnsupportedOperationException} message suffix for a given * {@link Column} and {@link WritableSheet}. * * @param column * the {@link Column} * @param writableSheet * the {@link WritableSheet} * @return the {@link UnsupportedOperationException} message suffix */ private String unsupp...
3.26
morf_TableOutputter_createBlankWriteableCell_rdh
/** * Creates a blank {@link WritableCell} for a given column number and row index. * * @param columnNumber * the column number * @param rowIndex * the row index * @return a blank {@link WritableCell} */ private WritableCell createBlankWriteableCell(int columnNumber, int rowIndex) { return new Blank(co...
3.26
morf_TableOutputter_createCell_rdh
/** * Creates the cell at the given position. * * @param currentWorkSheet * to add the cell to * @param column * The meta data for the column in the source table * @param columnNumb...
3.26
morf_TableOutputter_tableHasUnsupportedColumns_rdh
/** * Indicates if the table has a column with a column type which we can't * output to a spreadsheet. * * @param table * The table metadata. * @return */ boolean tableHasUnsupportedColumns(Table table) { return Iterables.any(table.columns(), new Predicate<Column>() { @Override public bool...
3.26
morf_TableOutputter_outputHelp_rdh
/** * * @param workSheet * to add the help to * @param table * to fetch metadata from * @param startRow * to start adding rows at * @param helpTextRowNumbers * - map to insert row numbers for each help field into * @return the index of the next row to use * @throws WriteException * if any of the w...
3.26
morf_TableOutputter_createTitle_rdh
/** * Inserts a row at the top of the sheet with the given title * * @param sheet * to add the title to * @param title * to add * @param fileName * of the ALFA file to which the sheet relates */ private void createTitle(WritableSheet sheet, String title, String fileName) { try { // Friendly...
3.26
morf_TableOutputter_outputExampleData_rdh
/** * Outputs the example data rows. * * @param numberOfExamples * to output * @param workSheet * to add the data rows to * @param table * to get metadata from * @param startRow * to start adding the example rows at * @param records * to add as examples * @return the new row to carry on outputtin...
3.26
morf_TableOutputter_spreadsheetifyName_rdh
/** * Converts camel capped names to something we can show in a spreadsheet. * * @param name * Name to convert. * @return A human readable version of the name wtih camel caps replaced by spaces. */ private String spreadsheetifyName(String name) { return StringUtils.capitalize(name).replaceAll("([A-Z][a-z])...
3.26
morf_TableOutputter_table_rdh
/** * Output the given table to the given workbook. * * @param maxSampleRows * the maximum number of rows to export in the "sample data" section * (all rows are included in the "Parameters to set up" section). * @param workbook * to add the table to. * @param table * to add to the workbook. * @param r...
3.26
morf_TableOutputter_outputDataHeadings_rdh
/** * Outputs the data headings row. * * @param workSheet * to add the row to * @param table * to fetch metadata from * @param startRow * to add the headings at * @param helpTextRowNumbers * - the map of column names to row index for each * bit of help text * @throws WriteException * if any of ...
3.26
morf_TableOutputter_getStandardFormat_rdh
/** * * @return the format to use for normal cells * @throws WriteException * if the format could not be created */ private WritableCellFormat getStandardFormat() throws WriteException { WritableCellFormat standardFormat = new WritableCellFormat(getStandardFont()); standardFormat.setVerticalAlignment(Vertica...
3.26
morf_TableOutputter_getStandardFont_rdh
/** * * @return the standard font to use */ private WritableFont getStandardFont() { return new WritableFont(WritableFont.ARIAL, 8); }
3.26
morf_ResolvedTables_portableSqlStatementUsed_rdh
/** * Store information about usage of {@link PortableSqlStatement}. */ public void portableSqlStatementUsed() { portableSqlStatementUsed = true; }
3.26
morf_ResolvedTables_getModifiedTables_rdh
/** * * @return Unmodifiable set of modified tables */ public Set<String> getModifiedTables() {return Collections.unmodifiableSet(modifiedTables); }
3.26
morf_ResolvedTables_isPortableSqlStatementUsed_rdh
/** * * @return true if {@link PortableSqlStatement} has been used in the analysed SQL/DDL element. */ public boolean isPortableSqlStatementUsed() { return portableSqlStatementUsed; }
3.26
morf_ResolvedTables_addModifiedTable_rdh
/** * Store information about modification of given table. * * @param tableName * modified table */ public void addModifiedTable(String tableName) { modifiedTables.add(tableName.toUpperCase()); readTables.remove(tableName.toUpperCase()); }
3.26
morf_ResolvedTables_getReadTables_rdh
/** * * @return Unmodifiable set of read tables */ public Set<String> getReadTables() { return Collections.unmodifiableSet(readTables); }
3.26
morf_ResolvedTables_addReadTable_rdh
/** * Store information about read of given table. * * @param tableName * read table */ public void addReadTable(String tableName) { if (!modifiedTables.contains(tableName.toUpperCase())) { readTables.add(tableName.toUpperCase()); } }
3.26
morf_Operator_opposite_rdh
/** * Helper method to invert an operator. * * @param operator * the operator to invert * @return the inverted operator */ public static Operator opposite(Operator operator) { switch (operator) { case f0 : return NEQ; case NEQ : return f0; case GT : ...
3.26
morf_Operator_toString_rdh
/** * * @see java.lang.Enum#toString() */ @Override public String toString() { return stringRepresentation; }
3.26
morf_OptimiseForRowCount_getRowCount_rdh
/** * * @return the number of rows for which to optimise. */ public int getRowCount() { return rowCount; }
3.26
morf_SqlScriptExecutor_withParameterMetadata_rdh
/** * * @see org.alfasoftware.morf.jdbc.SqlScriptExecutor.QueryBuilder#withParameterMetadata(java.lang.Iterable) */ @Override public QueryBuilder withParameterMetadata(Iterable<SqlParameter> parameterMetadata) { this.parameterMetadata = parameterMetadata; return this; }
3.26
morf_SqlScriptExecutor_withConnection_rdh
/** * * @see org.alfasoftware.morf.jdbc.SqlScriptExecutor.QueryBuilder#withConnection(java.sql.Connection) */ @Override public QueryBuilder withConnection(Connection connection) { this.connection = connection; return this; }
3.26
morf_SqlScriptExecutor_execute_rdh
/** * * @param sqlStatement * The SQL statement to execute * @param parameterMetadata * The metadata of the parameters being supplied. * @param parameterData * The values of the parameters. * @return The number of rows updated/affected by this statement * @see #execute(String, Connection, Iterable, DataV...
3.26
morf_SqlScriptExecutor_doWork_rdh
/** * Performs some work using a JDBC connection derived from the injected data source. * * @param work * a {@link Work} implementation. */ public void doWork(Work work) { try { if (dataSource == null) { // Either initialise this executor with a DataSource or use the execute(Iterable<Stri...
3.26