congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ComponentReferenceProperties.getReference
Code IndexAdd Tabnine to your IDE (free)

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

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

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: Talend/components

public SnowflakeConnectionProperties getReferencedConnectionProperties() {
  SnowflakeConnectionProperties 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 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-salesforce-definition

public SalesforceConnectionProperties getReferencedConnectionProperties() {
  SalesforceConnectionProperties refProps = referencedComponent.getReference();
  if (refProps != null) {
    return refProps;
  }
  return null;
}
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: org.talend.components/components-snowflake-definition

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

public SalesforceConnectionProperties getReferencedConnectionProperties() {
  SalesforceConnectionProperties 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: org.talend.components/components-snowflake

public SnowflakeConnectionProperties getReferencedConnectionProperties() {
  SnowflakeConnectionProperties 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: Talend/components

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

public TMarketoConnectionProperties getReferencedConnectionProperties() {
  TMarketoConnectionProperties refProps = referencedComponent.getReference();
  if (refProps != null) {
    return refProps;
  }
  LOG.debug("Connection has a reference to `{}` but the referenced Object is null!", getReferencedComponentId());
  return null;
}
origin: org.talend.components/components-marketo-definition

public TMarketoConnectionProperties getReferencedConnectionProperties() {
  TMarketoConnectionProperties refProps = referencedComponent.getReference();
  if (refProps != null) {
    return refProps;
  }
  LOG.debug("Connection has a reference to `{}` but the referenced Object is null!", getReferencedComponentId());
  return null;
}
origin: Talend/components

  public MarkLogicConnectionProperties getConnection() {
    return connection.isReferencedConnectionUsed() ? connection.referencedComponent.getReference() : connection;
  }
}
origin: Talend/components

@Override
public MarkLogicConnectionProperties getConnectionProperties() {
  return isReferencedConnectionUsed() ? referencedComponent.getReference() : this;
}
origin: Talend/components

public static void setReferenceInfoAndConnectionInfo(AllSetting setting,
    ComponentReferenceProperties<TJDBCConnectionProperties> referencedComponent,
    JDBCConnectionModule connection) {
  boolean useExistedConnection = setReferenceInfo(setting, referencedComponent);
  if (useExistedConnection) {
    if (referencedComponent.getReference() != null) {// avoid the NPE in JdbcRuntimeInfo
      setCommonConnectionInfo(setting,
          ((TJDBCConnectionProperties) referencedComponent.getReference()).connection);
    }
  } else {
    setCommonConnectionInfo(setting, connection);
  }
}
origin: org.talend.components/components-jdbc-definition

public static void setReferenceInfoAndConnectionInfo(AllSetting setting,
    ComponentReferenceProperties<TJDBCConnectionProperties> referencedComponent,
    JDBCConnectionModule connection) {
  boolean useExistedConnection = setReferenceInfo(setting, referencedComponent);
  if (useExistedConnection) {
    if (referencedComponent.getReference() != null) {// avoid the NPE in JdbcRuntimeInfo
      setCommonConnectionInfo(setting,
          ((TJDBCConnectionProperties) referencedComponent.getReference()).connection);
    }
  } else {
    setCommonConnectionInfo(setting, connection);
  }
}
origin: Talend/components

public static boolean setReferenceInfo(AllSetting setting,
    ComponentReferenceProperties<TJDBCConnectionProperties> referencedComponent) {
  if (referencedComponent == null) {
    return false;
  }
  boolean useOtherConnection = useExistedConnection(referencedComponent);
  if (useOtherConnection) {
    setting.setReferencedComponentId(referencedComponent.componentInstanceId.getValue());
    setting.setReferencedComponentProperties(referencedComponent.getReference());
    return true;
  } else {
    return false;
  }
}
origin: Talend/components

@Test
public void testUnserializeOldReferenceProps() {
  String oldPropsStr = "{\"@id\":1,\"@type\":\"org.talend.components.api.properties.ComponentReferencePropertiesTest$PropWithReference\",\"strprop\":{\"@id\":4,\"@type\":\"org.talend.daikon.properties.property.StringProperty\",\"possibleValues2\":null,\"flags\":null,\"taggedValues\":{\"@type\":\"java.util.HashMap\"},\"storedValue\":\"val1\",\"size\":-1,\"occurMinTimes\":0,\"occurMaxTimes\":0,\"precision\":0,\"pattern\":null,\"nullable\":false,\"possibleValues\":null,\"children\":{\"@type\":\"java.util.ArrayList\"},\"currentType\":\"java.lang.String\",\"name\":\"strprop\",\"displayName\":null,\"title\":null},\"referencedComponent\":{\"@id\":3,\"referenceType\":{\"@type\":\"org.talend.daikon.properties.property.EnumProperty\",\"flags\":null,\"taggedValues\":{\"@type\":\"java.util.HashMap\"},\"storedValue\":{\"@type\":\"org.talend.components.api.properties.ComponentReferenceProperties$ReferenceType\",\"name\":\"COMPONENT_INSTANCE\",\"ordinal\":2},\"size\":-1,\"occurMinTimes\":0,\"occurMaxTimes\":0,\"precision\":0,\"pattern\":null,\"nullable\":false,\"possibleValues\":{\"@type\":\"java.util.Arrays$ArrayList\",\"@items\":[{\"@type\":\"org.talend.components.api.properties.ComponentReferenceProperties$ReferenceType\",\"name\":\"THIS_COMPONENT\",\"ordinal\":0},{\"@type\":\"org.talend.components.api.properties.ComponentReferenceProperties$ReferenceType\",\"name\":\"COMPONENT_TYPE\",\"ordinal\":1},{\"@type\":\"org.talend.components.api.properties.ComponentReferenceProperties$ReferenceType\",\"name\":\"COMPONENT_INSTANCE\",\"ordinal\":2}]},\"children\":{\"@type\":\"java.util.ArrayList\"},\"currentType\":\"org.talend.components.api.properties.ComponentReferenceProperties.ReferenceType\",\"name\":\"referenceType\",\"displayName\":null,\"title\":null},\"componentType\":{\"@type\":\"org.talend.daikon.properties.property.StringProperty\",\"possibleValues2\":null,\"flags\":{\"@type\":\"java.util.RegularEnumSet\",\"@items\":[{\"@type\":\"org.talend.daikon.properties.property.Property$Flags\",\"name\":\"DESIGN_TIME_ONLY\",\"ordinal\":2}]},\"taggedValues\":{\"@type\":\"java.util.HashMap\"},\"storedValue\":\"AnotherPropDef\",\"size\":-1,\"occurMinTimes\":0,\"occurMaxTimes\":0,\"precision\":0,\"pattern\":null,\"nullable\":false,\"possibleValues\":null,\"children\":{\"@type\":\"java.util.ArrayList\"},\"currentType\":\"java.lang.String\",\"name\":\"componentType\",\"displayName\":null,\"title\":null},\"componentInstanceId\":{\"@type\":\"org.talend.daikon.properties.property.StringProperty\",\"possibleValues2\":null,\"flags\":null,\"taggedValues\":{\"@type\":\"java.util.HashMap\"},\"storedValue\":\"12345\",\"size\":-1,\"occurMinTimes\":0,\"occurMaxTimes\":0,\"precision\":0,\"pattern\":null,\"nullable\":false,\"possibleValues\":null,\"children\":{\"@type\":\"java.util.ArrayList\"},\"currentType\":\"java.lang.String\",\"name\":\"componentInstanceId\",\"displayName\":null,\"title\":null},\"componentProperties\":{\"@type\":\"org.talend.components.api.properties.ComponentReferencePropertiesTest$AnotherProperties\",\"strprop2\":{\"@type\":\"org.talend.daikon.properties.property.StringProperty\",\"possibleValues2\":null,\"flags\":null,\"taggedValues\":{\"@type\":\"java.util.HashMap\"},\"storedValue\":\"val2\",\"size\":-1,\"occurMinTimes\":0,\"occurMaxTimes\":0,\"precision\":0,\"pattern\":null,\"nullable\":false,\"possibleValues\":null,\"children\":{\"@type\":\"java.util.ArrayList\"},\"currentType\":\"java.lang.String\",\"name\":\"strprop2\",\"displayName\":null,\"title\":null},\"name\":\"componentProperties\",\"validationResult\":null},\"enclosingProperties\":{\"@ref\":1},\"name\":\"referencedComponent\",\"validationResult\":null},\"name\":\"root\",\"validationResult\":null}\n";
  Deserialized<PropWithReference> fromSerializedPersistent = Properties.Helper.fromSerializedPersistent(oldPropsStr,
      PropWithReference.class);
  PropWithReference unserializedFep = fromSerializedPersistent.object;
  assertEquals("val1", unserializedFep.strprop.getValue());
  assertEquals("val2", unserializedFep.referencedComponent.getReference().strprop2.getValue());
  assertEquals("12345", unserializedFep.referencedComponent.componentInstanceId.getValue());
  assertEquals(ReferenceType.COMPONENT_INSTANCE, unserializedFep.referencedComponent.referenceType.getValue());
}
org.talend.components.api.propertiesComponentReferencePropertiesgetReference

Popular methods of ComponentReferenceProperties

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

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now