Class VirtualSchema.Builder

    • Method Detail

      • sourceSchemaName

        public VirtualSchema.Builder sourceSchemaName​(String sourceSchemaName)
        Set the name of the source schema the Virtual Schema refers to.
        Parameters:
        sourceSchemaName - name of the source schema
        Returns:
        this for fluent programming
      • sourceSchema

        public VirtualSchema.Builder sourceSchema​(Schema sourceSchema)
        Set the source schema the Virtual Schema refers to.
        Parameters:
        sourceSchema - source schema
        Returns:
        this for fluent programming
      • adapterScript

        public VirtualSchema.Builder adapterScript​(AdapterScript adapterScript)
        Set the name of the script that serves as adapter for the Virtual Schema.
        Parameters:
        adapterScript - Virtual Schema Adapter script
        Returns:
        this for fluent programming
      • dialectName

        public VirtualSchema.Builder dialectName​(String dialectName)
        Set the name of the Virtual Schema dialect that should be used.
        Parameters:
        dialectName - name of the SQL dialect
        Returns:
        this for fluent programming
      • connectionDefinition

        public VirtualSchema.Builder connectionDefinition​(ConnectionDefinition connectionDefinition)
        Set the connection object pointing to the remote data source.
        Parameters:
        connectionDefinition - connection object
        Returns:
        this for fluent programming.
      • addProperties

        public VirtualSchema.Builder addProperties​(Map<String,​String> properties)
        Set additional properties for the adapter.

        Existing properties with the same name will be overwritten. The following properties are reserved and will be set automatically when the corresponding builder methods are used:

        Parameters:
        properties - additional properties
        Returns:
        this for fluent programming