name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
framework_TreeTableRowElement_toggleExpanded_rdh | /**
* Either expand collapsed row or collapse expanded row.
*/
public void toggleExpanded() {
List<WebElement> expandButtons = getWrappedElement().findElements(By.className("v-treetable-treespacer"));
if (!expandButtons.isEmpty()) {
expandButtons.get(0).click();
}
} | 3.26 |
framework_FieldGroup_m0_rdh | /**
* Returns a collection of all fields that have been bound.
* <p>
* The fields are not returned in any specific order.
* </p>
*
* @return A collection with all bound Fields
*/
public Collection<Field<?>> m0() {
return fieldToPropertyId.keySet();
} | 3.26 |
framework_FieldGroup_setEnabled_rdh | /**
* Updates the enabled state of all bound fields.
*
* @param fieldsEnabled
* true to enable all bound fields, false to disable them
*/public void setEnabled(boolean
fieldsEnabled) {
enabled = fieldsEnabled;
for (Field<?> field : m0()) {
field.setEnabled(fieldsEnabled);
}
} | 3.26 |
framework_FieldGroup_bindMemberFields_rdh | /**
* Binds member fields found in the given object.
* <p>
* This method processes all (Java) member fields whose type extends
* {@link Field} and that can be mapped to a property id. Property id
* mapping is done based on the field name or on a @{@link PropertyId}
* annotation on the field. All non-null fields f... | 3.26 |
framework_FieldGroup_firePostCommitEvent_rdh | /**
* Sends a postCommit event to all registered commit handlers
*
* @throws CommitException
* If the commit should be aborted
*/
private void firePostCommitEvent() throws CommitException {
CommitHandler[] handlers = commitHandlers.toArray(new CommitHandler[commitHandlers.size()]);
for (CommitHandler han... | 3.26 |
framework_FieldGroup_findPropertyId_rdh | /**
* Searches for a property id from the current itemDataSource that matches
* the given memberField.
* <p>
* If perfect match is not found, uses a case insensitive search that also
* ignores underscores. Returns null if no match is found. Throws a
* SearchException if no item data source has been set.
* </p>
... | 3.26 |
framework_FieldGroup_discard_rdh | /**
* Discards all changes done to the bound fields.
* <p>
* Only has effect if buffered mode is used.
*/
public void discard() {
for (Field<?> f : fieldToPropertyId.keySet()) {
try {
f.discard();} catch (Exception e) {
... | 3.26 |
framework_FieldGroup_clearField_rdh | /**
* Clears field and any possible existing binding.
*
* @param field
* The field to be cleared
* @since 7.7.5
*/
protected void clearField(Field<?>
field) {
// Clear any possible existing binding to clear the field
field.setPropertyDataSource(null);
boolean fieldReadOnly = field.isReadOnly();
... | 3.26 |
framework_FieldGroup_setItemDataSource_rdh | /**
* Updates the item that is used by this FieldBinder. Rebinds all fields to
* the properties in the new item.
*
* @param itemDataSource
* The new item to use
*/
public void setItemDataSource(Item itemDataSource) {
this.itemDataSource = itemDataSource;
bindFields();
} | 3.26 |
framework_FieldGroup_build_rdh | /**
* Creates a field based on the given data type.
* <p>
* The data type is the type that we want to edit using the field. The field
* type is the type of field we want to create, can be {@link Field} if any
* Field is good.
* </p>
*
* @param caption
* The caption for the new field
* @param dataType
* T... | 3.26 |
framework_FieldGroup_bindFields_rdh | /**
* Binds all fields to the properties in the item in use.
*
* @since 7.7.5
*/
protected void
bindFields() {
for (Field<?> f : fieldToPropertyId.keySet()) {
bind(f, fieldToPropertyId.get(f));
}
} | 3.26 |
framework_FieldGroup_unbind_rdh | /**
* Detaches the field from its property id and removes it from this
* FieldBinder.
* <p>
* Note that the field is not detached from its property data source if it
* is no longer connected to the same property id it was bound to using this
* FieldBinder.
*
* @param field
* The field to detach
* @throws Bi... | 3.26 |
framework_FieldGroup_getInvalidFields_rdh | /**
* Returns a map containing fields which failed validation and the
* exceptions the corresponding validators threw.
*
* @return a map with all the invalid value exceptions
*/
... | 3.26 |
framework_FieldGroup_firePreCommitEvent_rdh | /**
* Sends a preCommit event to all registered commit handlers
*
* @throws CommitException
* If the commit should be aborted
*/
private void firePreCommitEvent() throws CommitException {CommitHandler[] handlers = commitHandlers.toArray(new CommitHandler[commitHandlers.size()]);
for (CommitHandler handler : ... | 3.26 |
framework_FieldGroup_getItemProperty_rdh | /**
* Gets the property with the given property id from the item.
*
* @param propertyId
* The id if the property to find
* @return The property with the given id from the item
* @throws BindException
* If the property was not found in the item or no item has been
* set
*/
protected Property getItemProper... | 3.26 |
framework_FieldGroup_addCommitHandler_rdh | /**
* Adds a commit handler.
* <p>
* The commit handler is called before the field values are committed to the
* item ( {@link CommitHandler#preCommit(CommitEvent)}) and after the item
* has been updated ({@link CommitHandler#postCommit(CommitEvent)}). If a
* {@link CommitHandler} throws a CommitException the who... | 3.26 |
framework_FieldGroup_m1_rdh | /**
* Binds member fields found in the given object and optionally builds
* member fields that have not been initialized.
* <p>
* This method processes all (Java) member fields whose type extends
* {@link Field} and that can be mapped to a property id. Property ids are
* searched in the following order: @{@link P... | 3.26 |
framework_FieldGroup_buildAndBindMemberFields_rdh | /**
* Binds member fields found in the given object and builds member fields
* that have not been initialized.
* <p>
* This method processes all (Java) member fields whose type extends
* {@link Field} and that can be mapped to a property id. Property ids are
* searched in the following order: @{@link PropertyId} ... | 3.26 |
framework_FieldGroup_setReadOnly_rdh | /**
* Sets the read only state to the given value for all fields with writable
* data source. Fields with read only data source will always be set to read
* only.
*
* @param fieldsReadOnly
* true to set the fields with writable data source to read only,
* false to set them to read write
*/
public void set... | 3.26 |
framework_FieldGroup_clear_rdh | /**
* Clears the value of all fields.
*
* @since 7.4
*/
public void clear() {
for (Field<?> f : m0()) {
if (f instanceof AbstractField) {
((AbstractField) (f)).clear();
}
}
} | 3.26 |
framework_FieldGroup_buildAndBind_rdh | /**
* Builds a field using the given caption and binds it to the given property
* id using the field binder. Ensures the new field is of the given type.
*
* @param caption
* The caption for the field
* @param propertyId
* The property id to bind to. Must be present in the field
* finder.
* @throws BindEx... | 3.26 |
framework_FieldGroup_getFieldsInDeclareOrder_rdh | /**
* Returns an array containing Field objects reflecting all the fields of
* the class or interface represented by this Class object. The elements in
* the array returned are sorted in declare order from sub class to super
* class.
*
* @param searchClass
* @return */
protected static List<Field> getFieldsInDe... | 3.26 |
framework_FieldGroup_setFieldFactory_rdh | /**
* Sets the field factory for the {@link FieldGroup}. The field factory is
* only used when {@link FieldGroup} creates a new field.
*
* @param fieldFactory
* The field factory to use
*/
public void setFieldFactory(FieldGroupFieldFactory fieldFactory) {
this.f0 = fieldFactory;
} | 3.26 |
framework_FieldGroup_getUnboundPropertyIds_rdh | /**
* Returns a collection of all property ids that exist in the item set using
* {@link #setItemDataSource(Item)} but have not been bound to fields.
* <p>
* Will always return an empty collection before an item has been set using
* {@link #setItemDataSource(Item)}.
* </p>
* <p>
* No guarantee is given for the ... | 3.26 |
framework_FieldGroup_removeCommitHandler_rdh | /**
* Removes the given commit handler.
*
* @see #addCommitHandler(CommitHandler)
* @param commitHandler
* The commit handler to remove
*/
public void removeCommitHandler(CommitHandler commitHandler) {
commitHandlers.remove(commitHandler);
} | 3.26 |
framework_FieldGroup_isModified_rdh | /**
* Checks if any bound field has been modified.
*
* @return true if at least one field has been modified, false otherwise
*/
public boolean isModified() {
for (Field<?> field : m0()) {
if (field.isModified()) {
return true;
}
}
return false;
} | 3.26 |
framework_FieldGroup_getFieldFactory_rdh | /**
* Gets the field factory for the {@link FieldGroup}. The field factory is
* only used when {@link FieldGroup} creates a new field.
*
* @return The field factory in use
*/
public FieldGroupFieldFactory getFieldFactory() {
return f0;
} | 3.26 |
framework_FieldGroup_getItemDataSource_rdh | /**
* Gets the item used by this FieldBinder. Note that you must call
* {@link #commit()} for the item to be updated unless buffered mode has
* been switched off.
*
* @see #setBuffered(boolean)
* @see #commit()
* @return The item used by this FieldBinder
*/
public Item getItemDataSource() {
return itemDataS... | 3.26 |
framework_FieldGroup_isValid_rdh | /**
* Checks the validity of the bound fields.
* <p>
* Call the {@link Field#validate()} for the fields to get the individual
* error messages.
*
* @return true if all bound fields are valid, false otherwise.
*/
public boolean isValid() {
try {
for (Field<?> field : m0()) {
field.validate... | 3.26 |
framework_FieldGroup_getPropertyType_rdh | /**
* Gets the type of the property with the given property id.
*
* @param propertyId
* The propertyId. Must be find
* @return The type of the property
*/
protected Class<?> getPropertyType(Object propertyId) throws BindException {
if (getItemDataSource() == null) {
throw new BindException(("Proper... | 3.26 |
framework_FieldGroup_configureField_rdh | /**
* Configures a field with the settings set for this FieldBinder.
* <p>
* By default this updates the buffered, read only and enabled state of the
* field. Also adds validators when applicable. Fields with read only data
* source are always configured as read only.
*
* @param field
* The field to update
*... | 3.26 |
framework_FieldGroup_isBuffered_rdh | /**
* Checks the buffered mode for the bound fields.
* <p>
*
* @see #setBuffered(boolean) for more details on buffered mode
* @see Field#isBuffered()
* @return true if buffered mode is on, false otherwise
*/
public boolean isBuffered()
{
return buffered;
} | 3.26 |
framework_FieldGroup_setBuffered_rdh | /**
* Sets the buffered mode for the bound fields.
* <p>
* When buffered mode is on the item will not be updated until
* {@link #commit()} is called. If buffered mode is off the item will be
* updated once the fields are updated.
* </p>
* <p>
* The default is to use buffered mode.
* </p>
*
* @see Field#setBu... | 3.26 |
framework_FieldGroup_isEnabled_rdh | /**
* Returns the enabled status for the fields.
* <p>
* Note that this will not accurately represent the enabled status of all
* fields if you change the enabled status of the fields through some other
* method than {@link #setEnabled(boolean)}.
*
* @return true if the fields are enabled, false otherwise
*/
pu... | 3.26 |
framework_FieldGroup_wrapInTransactionalProperty_rdh | /**
* Wrap property to transactional property.
*/
protected <T> Property.Transactional<T> wrapInTransactionalProperty(Property<T> itemProperty) {
return new TransactionalPropertyWrapper<T>(itemProperty);
} | 3.26 |
framework_FieldGroup_bind_rdh | /**
* Binds the field with the given propertyId from the current item. If an
* item has not been set then the binding is postponed until the item is set
* using {@link #setItemDataSource(Item)}.
* <p>
* This method also adds validators when applicable.
* </p>
*
* @param field
* The field to bind
* @param pr... | 3.26 |
framework_FieldGroup_commit_rdh | /**
* Commits all changes done to the bound fields.
* <p>
* Calls all {@link CommitHandler}s before and after committing the field
* changes to the item data source. The whole commit is aborted and state is
* restored to what it was before commit was called if any
* {@link CommitHandler} throws a CommitException ... | 3.26 |
starts_Handle_toString_rdh | /**
* Returns the textual representation of this handle. The textual
* representation is:
*
* <pre>
* owner '.' name desc ' ' '(' tag ')'
* </pre>
*
* . As this format is unambiguous, it can be parsed if necessary.
*/
@Override
public String toString() {
return (((((owner + '.') + name) + desc) + " (") + t... | 3.26 |
starts_Writer_writeGraph_rdh | /**
* Write the graph to file, together with any new edges (if any) that we get
* from parsing classes that changed.
*
* @param graph
* The graph that we want to write
* @param artifactsDir
* The directory in which we are writing STARTS artifacts
* @param print
* Write graph to file if true
* @param gra... | 3.26 |
starts_Writer_getJarToChecksumMapping_rdh | /**
* Compute the checksum for the given map and return the jar
* and the checksum as a string.
*
* @param jar
* The jar whose checksum we need to compute.
*/
public static Pair<String, String> getJarToChecksumMapping(String jar) {
Pair<String, String> pair = new Pair<>(jar, "-1");
byte[] bytes;
int bufSize = 6... | 3.26 |
starts_Writer_urlToFQN_rdh | /**
* Convert the result of URL.toExternalForm() on classes in the program to a fully-qualified name.
*
* @param url
* External form of the URL to convert
* @return A fully-qualified name of the URL
*/
public static String
urlToFQN(String url) {
// ASSUMPTION: "classes/" rarely occurs in the rest of the path
re... | 3.26 |
starts_Attribute_put_rdh | /**
* Writes all the attributes of this attribute list in the given byte
* vector.
*
* @param cw
* the class writer to be used to convert the attributes into
* byte arrays, with the {@link #write write} method.
* @param code
* the bytecode of the method corresponding to these code
* attributes, or <cod... | 3.26 |
starts_Attribute_getCount_rdh | /**
* Returns the length of the attribute list that begins with this attribute.
*
* @return the length of the attribute list that begins with this attribute.
*/
final int getCount() {
int count = 0;
Attribute attr = this;
while (attr != null) {
count += 1;
attr = attr.next;
}
return count;
}
/**
* Returns the... | 3.26 |
starts_Attribute_isCodeAttribute_rdh | /**
* Returns <code>true</code> if this type of attribute is a code attribute.
*
* @return <code>true</code> if this type of attribute is a code attribute.
*/public boolean isCodeAttribute() {
return false;
} | 3.26 |
starts_Attribute_isUnknown_rdh | /**
* Returns <code>true</code> if this type of attribute is unknown. The default
* implementation of this method always returns <code>true</code>.
*
* @return <code>true</code> if this type of attribute is unknown.
*/
public boolean isUnknown() {
return true;
} | 3.26 |
starts_Attribute_write_rdh | /**
* Returns the byte array form of this attribute.
*
* @param cw
* the class to which this attribute must be added. This
* parameter can be used to add to the constant pool of this
* class the items that corresponds to this attribute.
* @param code
* the bytecode of the method corresponding to this co... | 3.26 |
starts_AnnotationVisitor_visitEnum_rdh | /**
* Visits an enumeration value of the annotation.
*
* @param name
* the value name.
* @param desc
* the class descriptor of the enumeration class.
* @param value
* the actual enumeration value.
*/
public void visitEnum(String name, String desc, String value) {
if (av != null) {
av.visitEn... | 3.26 |
starts_AnnotationVisitor_visit_rdh | /**
* Visits a primitive value of the annotation.
*
* @param name
* the value name.
* @param value
* the actual value, whose type must be {@link Byte},
* {@link Boolean}, {@link Character}, {@link Short},
* {@link Integer} , {@link Long}, {@link Float}, {@link Double},
* {@link String} or {@link Type... | 3.26 |
starts_AnnotationVisitor_visitEnd_rdh | /**
* Visits the end of the annotation.
*/
public void visitEnd() {
if (av != null) {
av.visitEnd();
}
} | 3.26 |
starts_RTSUtil_computeAffectedTests_rdh | /**
* This method computes the affected tests and sets the "changed" field to
* contain the set of dependencies that changed since the last run.
*/
public static Set<String> computeAffectedTests(HashSet<String> allTests, Set<String> nonAffected, Map<String, Set<String>> testDeps) {
long start = System.currentT... | 3.26 |
starts_Loadables_m0_rdh | /**
* This method takes (i) the dependencies that jdeps found and (i) the map from tests to reachable
* types in the graph, and uses these to find types jdeps found but which are not reachable by any test.
*
* @param deps
* The dependencies that jdeps found.
* @param testDeps
* The map from test to types tha... | 3.26 |
starts_EkstaziHelper_processEkstaziDebugInfo_rdh | /**
* Process the Ekstazi debug output to get what classes Ekstazi thinks changed, and write those changed classes
* to file.
*
* @param baosErr
* Ekstazi Debug Output
* @param artifactsDir
* Directory in which we store STARTS artifacts (i.e., ".starts")
* @return The (possibly empty) set of changed classes... | 3.26 |
starts_ZLCHelper_updateZLCFile_rdh | // Set<String> tests = new HashSet<>();
// if (testDeps.keySet().contains(fqn)) {
// a test class changed, it affects on itself
// tests.add(fqn);
// }
// for (String test : testDeps.keySet()) {
// if (testDeps.get(test).contains(fqn)) tests.add(test);
// }
// if (tests.isEmpty()) {
// this dep no longer has ant tests ... | 3.26 |
starts_JavaAgent_agentmain_rdh | /**
* This method is invoked if we start the agent after the VM already started.
* We use this method to hijack the surefire instance being run, so that we
* can set its argLine correctly all the time.
*
* @param options
* The options that we pass to the agent
* @param instrumentation
* The instrumentation ... | 3.26 |
starts_ChecksumUtil_makeCheckSumMap_rdh | /**
* This method creates the checksum map only for tests that are affected by changes.
*
* @param loader
* The classloader from which to find .class files
* @param testDeps
* The transitive closure of dependencies for each test
* @param affected
* The set of tests that are affected by the changes
* @ret... | 3.26 |
starts_ChecksumUtil_m0_rdh | /**
* Check for so-called "well-known" classes that we don't track for RTS purposes.
* Copied from Ekstazi.
*
* @param klas
* The class we want to check
* @return true if klas is a well-known class
*/
public static boolean m0(String klas) {
return (((klas.contains("!/org/junit") || klas.contains("!/junit")... | 3.26 |
morf_CaseStatement_toString_rdh | /**
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder result = new StringBuilder("CASE ");
for (WhenCondition whenCondition : whenConditions) {
result.append(whenCondition).append(" ");
}result.append("ELSE ").append(defaultValue);
result.append(" END"... | 3.26 |
morf_CaseStatement_getWhenConditions_rdh | /**
*
* @return the whenConditions
*/
public List<WhenCondition> getWhenConditions() {
return whenConditions;
} | 3.26 |
morf_CaseStatement_drive_rdh | /**
*
* @see org.alfasoftware.morf.util.ObjectTreeTraverser.Driver#drive(ObjectTreeTraverser)
*/
@Override
public void drive(ObjectTreeTraverser traverser) {
traverser.dispatch(getWhenConditions()).dispatch(m0());
} | 3.26 |
morf_CaseStatement_m0_rdh | /**
*
* @return the defaultValue
*/
public AliasedField m0() {
return defaultValue;
} | 3.26 |
morf_CaseStatement_deepCopyInternal_rdh | /**
*
* @see org.alfasoftware.morf.sql.element.AliasedField#deepCopyInternal(DeepCopyTransformation)
*/
@Override
protected CaseStatement deepCopyInternal(DeepCopyTransformation transformer) {
return new CaseStatement(this, transformer);
} | 3.26 |
morf_UpgradePath_getSql_rdh | /**
*
* @return the sql
*/
public List<String> getSql() {
List<String> v0 = Lists.newLinkedList();
if ((!sql.isEmpty()) || (!upgradeScriptAdditions.isEmpty()))
v0.addAll(initialisationSql);
v0.addAll(sql);
for (UpgradeScriptAddition addition : upgradeScriptAdditions) {
Iterables.a... | 3.26 |
morf_UpgradePath_writeSql_rdh | /**
*
* @see org.alfasoftware.morf.upgrade.SqlStatementWriter#writeSql(Collection)
*/@Override
public void writeSql(Collection<String> statements) {
this.sql.addAll(statements);
} | 3.26 |
morf_UpgradePath_getSteps_rdh | /**
* Return the list of upgrade steps. If empty, a deployment of the complete
* database should be assumed.
*
* @return the list of upgrade steps; or an empty list if "everything" should be done.
*/
public List<UpgradeStep> getSteps() {
return steps;
} | 3.26 |
morf_UpgradePath_upgradeInProgress_rdh | /**
* Returns whether or not this upgrade knew that an upgrade was in progress
* at the point it was created.
*
* @return true if there was an upgrade in progress.
*/
public boolean upgradeInProgress() {
return (upgradeStatus != null) && (upgradeStatus != UpgradeStatus.NONE);} | 3.26 |
morf_UpgradePath_hasStepsToApply_rdh | /**
* Returns whether it contains an upgrade path. i.e. if we have either
* {@link #getSteps()} or {@link #getSql()}.
*
* @return true if there is a path.
*/
public boolean hasStepsToApply() {
return (!getSteps().isEmpty()) || (!sql.isEmpty());
} | 3.26 |
morf_UpgradePath_logUpgradePathSQL_rdh | /**
* Log out the SQL that forms this upgrade path.
*/
public void logUpgradePathSQL() {
logUpgradePathSQL(log);
} | 3.26 |
morf_SchemaAdapter_viewNames_rdh | /**
*
* @see org.alfasoftware.morf.metadata.Schema#viewNames()
*/
@Override
public Collection<String> viewNames() {
return delegate.viewNames();
} | 3.26 |
morf_SchemaAdapter_tables_rdh | /**
*
* @see org.alfasoftware.morf.metadata.Schema#tables()
*/
@Override
public Collection<Table> tables() {
return delegate.tables();
} | 3.26 |
morf_SchemaAdapter_tableExists_rdh | /**
*
* @see org.alfasoftware.morf.metadata.Schema#tableExists(java.lang.String)
*/
@Override
public boolean tableExists(String name) {
return delegate.tableExists(name);
} | 3.26 |
morf_SchemaAdapter_tableNames_rdh | /**
*
* @see org.alfasoftware.morf.metadata.Schema#tableNames()
*/
@Override
public Collection<String> tableNames() {
return delegate.tableNames();
} | 3.26 |
morf_SchemaAdapter_isEmptyDatabase_rdh | /**
*
* @see org.alfasoftware.morf.metadata.Schema#isEmptyDatabase()
*/@Override
public boolean isEmptyDatabase() {
return delegate.isEmptyDatabase();
} | 3.26 |
morf_SchemaAdapter_getView_rdh | /**
*
* @see org.alfasoftware.morf.metadata.Schema#getView(java.lang.String)
*/
@Override
public View getView(String name) {
return delegate.getView(name);
} | 3.26 |
morf_SchemaAdapter_getTable_rdh | /**
*
* @see org.alfasoftware.morf.metadata.Schema#getTable(java.lang.String)
*/
@Override
public Table getTable(String name) {
return delegate.getTable(name);
} | 3.26 |
morf_ExistingViewHashLoader_loadViewHashes_rdh | /**
* Loads the hashes for the deployed views, or empty if the hashes cannot be loaded
* (e.g. if the deployed views table does not exist in the existing schema).
*
* @param schema
* The existing database schema.
* @return The deployed view hashes.
*/
Optional<Map<String, String>> loadViewHashes(Schema schema)... | 3.26 |
morf_WindowFunction_drive_rdh | /**
*
* @see org.alfasoftware.morf.util.ObjectTreeTraverser.Driver#drive(ObjectTreeTraverser)
*/
@Override
public void drive(ObjectTreeTraverser traverser) {
traverser.dispatch(getFunction()).dispatch(m0()).dispatch(getPartitionBys());
} | 3.26 |
morf_WindowFunction_deepCopyInternal_rdh | /**
*
* @see org.alfasoftware.morf.sql.element.AliasedField#deepCopyInternal(DeepCopyTransformation)
*/
@Override
protected AliasedField deepCopyInternal(DeepCopyTransformation transformer) {
return new WindowFunction(getAlias(), ((Function)
(transformer.deepCopy(function))), transformIterable(orderBys, tran... | 3.26 |
morf_WindowFunction_getPartitionBys_rdh | /**
*
* @return the fields to partition by.
*/
public ImmutableList<AliasedField> getPartitionBys() {
return partitionBys;
} | 3.26 |
morf_WindowFunction_over_rdh | /**
* Starts a new window function Builder.
*
* @param function
* the function to construct the window function over.
* @return the window function builder
*/
public static Builder over(Function function) {
return new BuilderImpl(function);
} | 3.26 |
morf_WindowFunction_m0_rdh | /**
*
* @return the fields to order by.
*/
public ImmutableList<AliasedField> m0() {
return orderBys;
} | 3.26 |
morf_WindowFunction_getFunction_rdh | /**
*
* @return the function.
*/
public Function getFunction() {
return function;
} | 3.26 |
morf_DataSourceAdapter_getParentLogger_rdh | /**
*
* @see javax.sql.CommonDataSource#getParentLogger()
*/
@Override
public Logger getParentLogger() throws SQLFeatureNotSupportedException {
throw new UnsupportedOperationException("Log writer not supported by ConnectionDetails");
} | 3.26 |
morf_DataSourceAdapter_unwrap_rdh | /**
*
* @see java.sql.Wrapper#unwrap(java.lang.Class)
*/
@Override
public <T> T unwrap(Class<T> iface) throws SQLException {
throw new UnsupportedOperationException("Wrappers not supported");
} | 3.26 |
morf_DataSourceAdapter_setLogWriter_rdh | /**
*
* @see javax.sql.CommonDataSource#setLogWriter(java.io.PrintWriter)
*/
@Override
public void setLogWriter(PrintWriter out) throws SQLException {
throw new UnsupportedOperationException("Log writer not supported");
} | 3.26 |
morf_DataSourceAdapter_getLogWriter_rdh | /**
*
* @see javax.sql.CommonDataSource#getLogWriter()
*/
@Override
public PrintWriter getLogWriter() throws SQLException {
throw new UnsupportedOperationException("Log writer not supported");
} | 3.26 |
morf_DataSourceAdapter_setLoginTimeout_rdh | /**
*
* @see javax.sql.CommonDataSource#setLoginTimeout(int)
*/
@Override
public void setLoginTimeout(int seconds) throws SQLException {
throw new UnsupportedOperationException("Login timeout not supported");
} | 3.26 |
morf_DataSourceAdapter_getLoginTimeout_rdh | /**
*
* @see javax.sql.CommonDataSource#getLoginTimeout()
*/
@Override
public int getLoginTimeout() throws SQLException {
return 0;
} | 3.26 |
morf_DataValueLookupMetadataRegistry_intern_rdh | /**
* Interns the metadata for a single-column record, returning the same {@link DataValueLookupMetadata}
* for all records which contain that one record.
*
* <p>Used when initialising a new {@link DataValueLookupBuilderImpl}.</p>
*
* @param columnName
* A case-insensitive name for the column.
* @return The i... | 3.26 |
morf_DataValueLookupMetadataRegistry_appendAndIntern_rdh | /**
* Given an existing (interned) metadata descriptor, appends the given column and
* returns the interned result.
*
* <p>Used when adding a new value to an existing {@link DataValueLookupBuilderImpl}.</p>
*
* <p>This call pattern means we can avoid constructing the combined {@link DataValueLookupMetadata}
* si... | 3.26 |
morf_DatabaseDumper_dump_rdh | /**
* Dumps the current database state to a file.
*
* @param outputRootDirectory
* The directory where database dumps are to be written to.
* @param dumpName
* A string to prepend to the dump name, to aid in identifying it.
* @throws IOException
* If the output directory cannot be created.
*/
public void... | 3.26 |
morf_PostgreSQLDialect_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())) {
return schemaNamePrefix(tableRef) + tableRef.getName();
} else... | 3.26 |
morf_PostgreSQLDialect_getSqlFrom_rdh | /**
*
* @see org.alfasoftware.morf.jdbc.SqlDialect#getSqlFrom(DeleteStatement)
*/
@Override
protected String getSqlFrom(DeleteStatement statement) {
if (statement.getLimit().isPresent()) {
StringBuilder sqlBuilder = new StringBuilder();
DeleteStatementBuilder deleteStatement = DeleteStatement.delete(statement.getTab... | 3.26 |
morf_H2_formatJdbcUrl_rdh | /**
*
* @see org.alfasoftware.morf.jdbc.DatabaseType#formatJdbcUrl(JdbcUrlElements)
*/
@Override
public String formatJdbcUrl(JdbcUrlElements jdbcUrlElements) {
// http://www.h2database.com/html/features.html#database_url
StringBuilder builder = new StringBuilder().append("jdbc:h2:");
if ((StringUtils.isN... | 3.26 |
morf_H2_extractJdbcUrl_rdh | /**
* We don't need to support extracting connection details from H2. It's only
* used for in-memory databases currently.
*
* @see org.alfasoftware.morf.jdbc.DatabaseType#extractJdbcUrl(java.lang.String)
*/
@Override
public Optional<JdbcUrlElements> extractJdbcUrl(String url) { return Optional.empty();
} | 3.26 |
morf_H2_sqlDialect_rdh | /**
*
* @see org.alfasoftware.morf.jdbc.DatabaseType#sqlDialect(java.lang.String)
*/
@Override
public SqlDialect sqlDialect(String schemaName) {
return new H2Dialect(schemaName);
} | 3.26 |
morf_H2_getXADataSource_rdh | /**
*
* @see org.alfasoftware.morf.jdbc.DatabaseType#getXADataSource(java.lang.String, java.lang.String, java.lang.String)
*/@Override
public XADataSource getXADataSource(String jdbcUrl, String username, String password) {
throw new UnsupportedOperationException(("H2 does not fully support XA connections. " + "I... | 3.26 |
morf_H2_matchesProduct_rdh | /**
*
* @see org.alfasoftware.morf.jdbc.DatabaseType#matchesProduct(java.lang.String)
*/
@Override
public boolean matchesProduct(String product) {
return product.equalsIgnoreCase("H2");
} | 3.26 |
morf_H2_openSchema_rdh | /**
*
* @see org.alfasoftware.morf.jdbc.DatabaseType#openSchema(Connection, String, String)
*/
@Override
public Schema openSchema(Connection connection, String databaseName, String schemaName) {
return new H2MetaDataProvider(connection);
} | 3.26 |
morf_AbstractDatabaseType_extractHostAndPort_rdh | /**
* Creates a new {@link JdbcUrlElements.Builder}, prepopulating it with
* the host and port from a stack returned by {@link #splitJdbcUrl(String)}.
*
* @param splitURL
* Stack containing the host name and optionally a colon and the port number
* @return Builder for chaining.
*/
protected final Builder extra... | 3.26 |
morf_AbstractDatabaseType_driverClassName_rdh | /**
*
* @return the class name of the driver associated with this database type.
*/
@Override
public final String driverClassName() {
return driverClassName;
} | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.