Class DatabaseTarget

    • Constructor Detail

      • DatabaseTarget

        public DatabaseTarget()
    • Method Detail

      • generate

        protected void generate()
        Loads the data
      • setCurrentConnection

        public void setCurrentConnection​(AbstractDatabaseConnection value)
        Sets the current connection.
        Parameters:
        value - the connection
      • getCurrentConnection

        public AbstractDatabaseConnection getCurrentConnection()
        Returns the current connection.
        Returns:
        the connection
      • setCurrentTypeMapper

        public void setCurrentTypeMapper​(AbstractTypeMapper value)
        Sets the current type mapper.
        Parameters:
        value - the mapper
      • getCurrentTypeMapper

        public AbstractTypeMapper getCurrentTypeMapper()
        Returns the current type mapper.
        Returns:
        the mapper
      • setCurrentTable

        public void setCurrentTable​(String value)
        Sets the current table.
        Parameters:
        value - the table
      • getCurrentTable

        public String getCurrentTable()
        Returns the current table.
        Returns:
        the table
      • setCurrentColumnNameConversion

        public void setCurrentColumnNameConversion​(ColumnNameConversion value)
        Sets the current column name conversion.
        Parameters:
        value - the conversion
      • getCurrentColumnNameConversion

        public ColumnNameConversion getCurrentColumnNameConversion()
        Returns the current column name conversion.
        Returns:
        the conversion
      • setCurrentMaxStringLength

        public void setCurrentMaxStringLength​(BaseInteger value)
        Sets the current maximum length for strings.
        Parameters:
        value - the maximum
      • getCurrentMaxStringLength

        public BaseInteger getCurrentMaxStringLength()
        Returns the current maximum length for strings.
        Returns:
        the maximum
      • setCurrentStringColumnSQL

        public void setCurrentStringColumnSQL​(String value)
        Sets the current SQL template for string columns.
        Parameters:
        value - the template
      • getCurrentStringColumnSQL

        public String getCurrentStringColumnSQL()
        Returns the current SQL template for string columns.
        Returns:
        the template
      • setCurrentBatchSize

        public void setCurrentBatchSize​(BaseInteger value)
        Sets the current batch size.
        Parameters:
        value - the size
      • getCurrentBatchSize

        public BaseInteger getCurrentBatchSize()
        Returns the current batch size.
        Returns:
        the size
      • assign

        public void assign​(AbstractWidget other)
        Retrieves the values from the other widget, if possible.
        Specified by:
        assign in class AbstractWidget
        Parameters:
        other - the other widget to get the values from
      • serialize

        public Object serialize()
        Serializes the setup from the widget.
        Specified by:
        serialize in class AbstractWidget
        Returns:
        the generated setup representation
      • deserialize

        public void deserialize​(Object data,
                                MessageCollection errors)
        Deserializes the setup and maps it onto the widget.
        Specified by:
        deserialize in class AbstractWidget
        Parameters:
        data - the setup representation to use
        errors - for collecting errors