Codota Logo
ComponentReferenceProperties
Code IndexAdd Codota to your IDE (free)

How to use
ComponentReferenceProperties
in
org.talend.components.api.properties

Best Java code snippets using org.talend.components.api.properties.ComponentReferenceProperties (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: liferay/liferay-portal

public LiferayConnectionProperties getReferencedConnectionProperties() {
  LiferayConnectionProperties liferayConnectionProperties =
    referencedComponent.getReference();
  if (liferayConnectionProperties != null) {
    return liferayConnectionProperties;
  }
  if (getReferencedComponentId() != null) {
    _log.error(
      "Connection has a reference to '{}' but the referenced " +
        "Object is null",
      getReferencedComponentId());
  }
  if (_log.isDebugEnabled()) {
    _log.debug(
      "Fall back to the actual instance " +
        "LiferayConnectionProperties for the runtime environment");
  }
  return getLiferayConnectionProperties();
}
origin: org.talend.components/components-api

@Override
public boolean deletedField(String fieldName, Object value) {
  boolean modified = false;
  if ("componentType".equals(fieldName)) {
    @SuppressWarnings("unchecked")
    Property<String> compTypeProp = (Property<String>) value;
    referenceDefinitionName.setValue(compTypeProp.getValue());
    modified = true;
  } else if ("componentProperties".equals(fieldName)) {
    Properties oldRef = (Properties) value;
    setReference(oldRef);
    modified = true;
  }
  return modified;
}
origin: Talend/components

@Test
public void testComponentReferenceProperties() {
  // basic element
  ComponentReferenceProperties componentReferenceProperties = new ComponentReferenceProperties("testReference", "foo");
  assertEquals("testReference", componentReferenceProperties.getName());
  assertEquals(0, componentReferenceProperties.getForms().size());
  // init
  componentReferenceProperties.init();
}
origin: Talend/components

@Override
public boolean deletedField(String fieldName, Object value) {
  boolean modified = false;
  if ("componentType".equals(fieldName)) {
    @SuppressWarnings("unchecked")
    Property<String> compTypeProp = (Property<String>) value;
    referenceDefinitionName.setValue(compTypeProp.getValue());
    modified = true;
  } else if ("componentProperties".equals(fieldName)) {
    Properties oldRef = (Properties) value;
    setReference(oldRef);
    modified = true;
  }
  return modified;
}
origin: org.talend.components/components-salesforce-definition

public SalesforceConnectionProperties getReferencedConnectionProperties() {
  SalesforceConnectionProperties refProps = referencedComponent.getReference();
  if (refProps != null) {
    return refProps;
  }
  return null;
}
origin: Talend/components

@Override
public void setupProperties() {
  super.setupProperties();
  referencedComponent.setReference(new AnotherProperties("componentProperties").init());
}
origin: org.talend.components/components-googledrive-definition

/**
 * Return referenced connection properties.
 *
 * @return referenced connection properties or {@code null}
 */
public GoogleDriveConnectionProperties getReferencedConnectionProperties() {
  GoogleDriveConnectionProperties refProps = referencedComponent.getReference();
  if (refProps != null) {
    return refProps;
  }
  return null;
}
origin: Talend/components

@Override
public ComponentProperties getOutputComponentProperties() {
  TSalesforceBulkExecProperties bulkExecProperties = new TSalesforceBulkExecProperties("bulkExecProperties");
  bulkExecProperties.init();
  bulkExecProperties.copyValuesFrom(this, true, true);
  // we need to pass also the possible values, only way from the studio to know it comes from a combo box (need to
  // add quotes for generation)
  bulkExecProperties.upsertRelationTable.columnName
      .setPossibleValues(upsertRelationTable.columnName.getPossibleValues());
  bulkExecProperties.connection.referencedComponent.componentInstanceId
      .setTaggedValue(UpsertRelationTable.ADD_QUOTES, true);
  bulkExecProperties.module.connection.referencedComponent.componentInstanceId
      .setTaggedValue(UpsertRelationTable.ADD_QUOTES, true);
  // Seems that properties copy can't copy the reference properties
  if (isUseExistConnection()) {
    bulkExecProperties.connection.referencedComponent
        .setReference(connection.getReferencedConnectionProperties());
  }
  for (Form form : bulkExecProperties.getForms()) {
    bulkExecProperties.refreshLayout(form);
  }
  return bulkExecProperties;
}
origin: org.talend.components/components-snowflake-definition

public SnowflakeConnectionProperties getReferencedConnectionProperties() {
  SnowflakeConnectionProperties refProps = referencedComponent.getReference();
  if (refProps != null) {
    return refProps;
  }
  return null;
}
origin: org.talend.components/components-salesforce-definition

@Override
public ComponentProperties getOutputComponentProperties() {
  TSalesforceBulkExecProperties bulkExecProperties = new TSalesforceBulkExecProperties("bulkExecProperties");
  bulkExecProperties.init();
  bulkExecProperties.copyValuesFrom(this, true, true);
  // we need to pass also the possible values, only way from the studio to know it comes from a combo box (need to
  // add quotes for generation)
  bulkExecProperties.upsertRelationTable.columnName
      .setPossibleValues(upsertRelationTable.columnName.getPossibleValues());
  bulkExecProperties.connection.referencedComponent.componentInstanceId
      .setTaggedValue(UpsertRelationTable.ADD_QUOTES, true);
  bulkExecProperties.module.connection.referencedComponent.componentInstanceId
      .setTaggedValue(UpsertRelationTable.ADD_QUOTES, true);
  // Seems that properties copy can't copy the reference properties
  if (isUseExistConnection()) {
    bulkExecProperties.connection.referencedComponent
        .setReference(connection.getReferencedConnectionProperties());
  }
  for (Form form : bulkExecProperties.getForms()) {
    bulkExecProperties.refreshLayout(form);
  }
  return bulkExecProperties;
}
origin: Talend/components

public SnowflakeConnectionProperties getReferencedConnectionProperties() {
  SnowflakeConnectionProperties refProps = referencedComponent.getReference();
  if (refProps != null) {
    return refProps;
  }
  return null;
}
origin: Talend/components

outputProperties.referencedComponent.setReference(connectionProperties);
origin: Talend/components

public SalesforceConnectionProperties getReferencedConnectionProperties() {
  SalesforceConnectionProperties refProps = referencedComponent.getReference();
  if (refProps != null) {
    return refProps;
  }
  return null;
}
origin: Talend/components

outputProperties.referencedComponent.setReference(connectionProperties);
origin: Talend/components

/**
 * Return referenced connection properties.
 *
 * @return referenced connection properties or {@code null}
 */
public GoogleDriveConnectionProperties getReferencedConnectionProperties() {
  GoogleDriveConnectionProperties refProps = referencedComponent.getReference();
  if (refProps != null) {
    return refProps;
  }
  return null;
}
origin: Talend/components

/**
 * Return referenced connection properties.
 *
 * @return referenced connection properties or {@code null}
 */
public NetSuiteConnectionProperties getReferencedConnectionProperties() {
  NetSuiteConnectionProperties refProps = referencedComponent.getReference();
  if (refProps != null) {
    return refProps;
  }
  return null;
}
origin: org.talend.components/components-netsuite-definition

/**
 * Return referenced connection properties.
 *
 * @return referenced connection properties or {@code null}
 */
public NetSuiteConnectionProperties getReferencedConnectionProperties() {
  NetSuiteConnectionProperties refProps = referencedComponent.getReference();
  if (refProps != null) {
    return refProps;
  }
  return null;
}
origin: org.talend.components/components-snowflake

public SnowflakeConnectionProperties getReferencedConnectionProperties() {
  SnowflakeConnectionProperties refProps = referencedComponent.getReference();
  if (refProps != null) {
    return refProps;
  }
  return null;
}
origin: org.talend.components/components-azurestorage

public TAzureStorageConnectionProperties getReferencedConnectionProperties() {
  TAzureStorageConnectionProperties refProps = referencedComponent.getReference();
  if (refProps != null) {
    return refProps;
  }
  return null;
}
origin: Talend/components

public TAzureStorageConnectionProperties getReferencedConnectionProperties() {
  TAzureStorageConnectionProperties refProps = referencedComponent.getReference();
  if (refProps != null) {
    return refProps;
  }
  return null;
}
org.talend.components.api.propertiesComponentReferenceProperties

Javadoc

A reference to another component. This could be in one of the following states:
  • Use this component (no reference)
  • Reference a single instance of a given component type in the enclosing scope, e.g. Job
  • Reference to a particular instance of a component. In this case, the #componentProperties will be populated by the org.talend.daikon.properties.presentation.Widget.
  • IMPORTANT - when using ComponentReferenceProperties the property name in the enclosingProperties must be referencedComponent. The org.talend.daikon.properties.presentation.WidgetType#COMPONENT_REFERENCE uses this class as its properties and the Widget will populate these values.

    Most used methods

    • getReference
    • setReference
    • <init>
    • getForms
    • getName
    • init

    Popular in Java

    • Reading from database using SQL prepared statement
    • getExternalFilesDir (Context)
    • findViewById (Activity)
    • setContentView (Activity)
    • SocketException (java.net)
      This SocketException may be thrown during socket creation or setting options, and is the superclass
    • Collection (java.util)
      Collection is the root of the collection hierarchy. It defines operations on data collections and t
    • Modifier (javassist)
      The Modifier class provides static methods and constants to decode class and member access modifiers
    • BasicDataSource (org.apache.commons.dbcp)
      Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
    • IOUtils (org.apache.commons.io)
      General IO stream manipulation utilities. This class provides static utility methods for input/outpu
    • IsNull (org.hamcrest.core)
      Is the value null?
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now