| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final Pattern | |
| private List | |
| private String | |
| private static final ResourceBundle | |
| public static final String | DEFAULT_COMMENT_PATTERN
CSV Lines starting with that sign(s) will be treated as comments by default |
| private String | |
| private String | |
| private static final Logger | |
| private String | |
| private Boolean | |
| private String | |
| private Boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addColumn(LoadDataColumnConfig column)
Implements liquibase. Add a column configuration to the Change. |
| private void | addColumnsFromHeaders(String[]
the headers of the CSV file headers)Add columns if they were not specified in the loadData change, we interpolate their names from the header columns of the CSV file. |
| public ChangeStatus | checkStatus(Database database)
Overrides liquibase. Implements liquibase. Validate that this change executed successfully against the given database. |
| protected LoadDataColumnConfig | Returns: The column having the name or header equal to "name" or the index equal to idx or a new LoadDataColumnConfig if not foundname or header of the column searched name, Integer the index of the column searched idx)Get the column using the name, index or the header |
| protected String | Returns: a string in the format " / column[index] (name:'columnName')" or " / column[index]" if the column name is not available.the index of the column index, LoadDataColumnConfig the column configuration columnConfig)Returns a unique |
| protected ExecutablePreparedStatementBase | createPreparedStatement(Database database, String catalogName, String schemaName, String tableName, List<LoadDataColumnConfig> columns, ChangeSet changeSet, ResourceAccessor resourceAccessor)
|
| protected InsertStatement | |
| protected InsertSetStatement | |
| public CheckSum | generateCheckSum()
Overrides liquibase. Implements liquibase. Implementation generates checksum by serializing the change with |
| public boolean | generateRollbackStatementsVolatile(Database database)
Overrides liquibase. Implements liquibase. Implementation delegates logic to the
|
| public SqlStatement[] | generateStatements(Database database)
Implements liquibase. Generates the |
| protected SqlStatement[] | |
| public boolean | generateStatementsVolatile(Database database)
Overrides liquibase. Implements liquibase. Implementation delegates logic to the
|
| protected LoadDataColumnConfig | |
| public List | getColumns()
Implements liquibase. Return all the |
| public String | |
| public String | getConfirmationMessage()
Implements liquibase. Confirmation message to be displayed after the change is executed. |
| public CSVReader | |
| public String | |
| public String | |
| public String | |
| protected String | |
| public String | |
| public String | |
| public String | |
| public Boolean | |
| protected static String | Returns: if the value is empty or the string "NULL" (case-insensitive), return the empty string. If not, the value "toString()" representation (trimmed of spaces left and right) is returned.the value to transform value)Transform a value read from a CSV file into a string to be written into the database if the column type is not known. |
| protected boolean | |
| private boolean | |
| private boolean | |
| public Boolean | |
| private boolean | preferPreparedStatements(Database database)
If the loaded data does not require a prepared statement, and the user did not specify whether to use them or not, should we use prepared statements as a default? |
| private void | retrieveMissingColumnLoadTypes(List<LoadDataColumnConfig>
a list of LoadDataColumnConfigs to process columns, Database database)Iterate through the List of LoadDataColumnConfig and ask the database for any column types that we have no data type of. |
| public void | setColumns(List<LoadDataColumnConfig> columns)
Implements liquibase.
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public boolean | supports(Database database)
Overrides liquibase. Implements liquibase. Implementation delegates logic to the
|
| protected boolean | |
| public ValidationErrors | validate(Database database)
Overrides liquibase. Implements liquibase. Implementation checks the ChangeParameterMetaData for declared required fields
and also delegates logic to the
|
| public void | validateColumn(LoadDataColumnConfig columnConfig, ValidationErrors validationErrors, String columnIDString)
|
| protected ValidationErrors | Returns: validationErrorsValidationErrors to collect errors validationErrors)Validate all columns and collect errors in 'validationErrors' |
| public Warnings | warn(Database database)
Overrides liquibase. Implements liquibase. Implementation delegates logic to the
|
| BASE64_PATTERN | back to summary |
|---|---|
| public static final Pattern BASE64_PATTERN | |
| columns | back to summary |
|---|---|
| private List<LoadDataColumnConfig> columns | |
| commentLineStartsWith | back to summary |
|---|---|
| private String commentLineStartsWith | |
| coreBundle | back to summary |
|---|---|
| private static final ResourceBundle coreBundle | |
| DEFAULT_COMMENT_PATTERN | back to summary |
|---|---|
| public static final String DEFAULT_COMMENT_PATTERN CSV Lines starting with that sign(s) will be treated as comments by default | |
| encoding | back to summary |
|---|---|
| private String encoding | |
| file | back to summary |
|---|---|
| private String file | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| quotchar | back to summary |
|---|---|
| private String quotchar | |
| relativeToChangelogFile | back to summary |
|---|---|
| private Boolean relativeToChangelogFile | |
| separator | back to summary |
|---|---|
| private String separator | |
| usePreparedStatements | back to summary |
|---|---|
| private Boolean usePreparedStatements | |
| LoadDataChange | back to summary |
|---|---|
| public LoadDataChange() | |
| addColumn | back to summary |
|---|---|
| public void addColumn(LoadDataColumnConfig column) Implements liquibase. Doc from liquibase. Add a column configuration to the Change.
| |
| addColumnsFromHeaders | back to summary |
|---|---|
| private void addColumnsFromHeaders(String[] headers) Add columns if they were not specified in the loadData change, we interpolate their names from the header columns of the CSV file.
| |
| checkStatus | back to summary |
|---|---|
| public ChangeStatus checkStatus(Database database) Overrides liquibase. Implements liquibase. Doc from liquibase. Validate that this change executed successfully against the given database. This will check that the update completed at a high level plus check details of the change. For example, a change to add a column will check that the column exists plus data type, default values, etc.
| |
| columnConfigFromName | back to summary |
|---|---|
| protected LoadDataColumnConfig columnConfigFromName(String name, Integer idx) Get the column using the name, index or the header
| |
| columnIdString | back to summary |
|---|---|
| protected String columnIdString(int index, LoadDataColumnConfig columnConfig) Returns a unique
| |
| createPreparedStatement | back to summary |
|---|---|
| protected ExecutablePreparedStatementBase createPreparedStatement(Database database, String catalogName, String schemaName, String tableName, List<LoadDataColumnConfig> columns, ChangeSet changeSet, ResourceAccessor resourceAccessor) | |
| createStatement | back to summary |
|---|---|
| protected InsertStatement createStatement(String catalogName, String schemaName, String tableName) | |
| createStatementSet | back to summary |
|---|---|
| protected InsertSetStatement createStatementSet(String catalogName, String schemaName, String tableName) | |
| generateCheckSum | back to summary |
|---|---|
| public CheckSum generateCheckSum() Overrides liquibase. Implements liquibase. Doc from liquibase. Implementation generates checksum by serializing the change with
| |
| generateRollbackStatementsVolatile | back to summary |
|---|---|
| public boolean generateRollbackStatementsVolatile(Database database) Overrides liquibase. Implements liquibase. Doc from liquibase. Implementation delegates logic to the
| |
| generateStatements | back to summary |
|---|---|
| public SqlStatement[] generateStatements(Database database) Implements liquibase. Doc from liquibase. Generates the generateStatementsVolatile.
| |
| generateStatementsFromRows | back to summary |
|---|---|
| protected SqlStatement[] generateStatementsFromRows(Database database, List<LoadDataChange. | |
| generateStatementsVolatile | back to summary |
|---|---|
| public boolean generateStatementsVolatile(Database database) Overrides liquibase. Implements liquibase. Doc from liquibase. Implementation delegates logic to the
| |
| getColumnConfig | back to summary |
|---|---|
| protected LoadDataColumnConfig getColumnConfig(int index, String header) | |
| getColumns | back to summary |
|---|---|
| public List Implements liquibase. Doc from liquibase. Return all the
| |
| getCommentLineStartsWith | back to summary |
|---|---|
public String getCommentLineStartsWith()
| |
| getConfirmationMessage | back to summary |
|---|---|
| public String getConfirmationMessage() Implements liquibase. Doc from liquibase. Confirmation message to be displayed after the change is executed. Should include relevant configuration settings to make it as helpful as possible. This method may be called outside the changelog execution process, such as in documentation generation.
| |
| getCSVReader | back to summary |
|---|---|
| public CSVReader getCSVReader() throws IOException, LiquibaseException | |
| getEncoding | back to summary |
|---|---|
public String getEncoding()
| |
| getFile | back to summary |
|---|---|
public String getFile()
| |
| getQuotchar | back to summary |
|---|---|
public String getQuotchar()
| |
| getRelativeTo | back to summary |
|---|---|
| protected String getRelativeTo() | |
| getSeparator | back to summary |
|---|---|
public String getSeparator()
| |
| getSerializedObjectNamespace | back to summary |
|---|---|
| public String getSerializedObjectNamespace() Overrides liquibase. Implements liquibase.
| |
| getTableName | back to summary |
|---|---|
| public String getTableName() Overrides liquibase.
| |
| getUsePreparedStatements | back to summary |
|---|---|
public Boolean getUsePreparedStatements()
| |
| getValueToWrite | back to summary |
|---|---|
| protected static String getValueToWrite(Object value) Transform a value read from a CSV file into a string to be written into the database if the column type is not known. | |
| hasPreparedStatementsImplemented | back to summary |
|---|---|
| protected boolean hasPreparedStatementsImplemented() | |
| isLineCommented | back to summary |
|---|---|
| private boolean isLineCommented(String[] line) | |
| isLoggingExecutor | back to summary |
|---|---|
| private boolean isLoggingExecutor(Database database) | |
| isRelativeToChangelogFile | back to summary |
|---|---|
public Boolean isRelativeToChangelogFile()
| |
| preferPreparedStatements | back to summary |
|---|---|
| private boolean preferPreparedStatements(Database database) If the loaded data does not require a prepared statement, and the user did not specify whether to use them or not, should we use prepared statements as a default? | |
| retrieveMissingColumnLoadTypes | back to summary |
|---|---|
| private void retrieveMissingColumnLoadTypes(List<LoadDataColumnConfig> columns, Database database) throws DatabaseException Iterate through the List of LoadDataColumnConfig and ask the database for any column types that we have no data type of.
| |
| setColumns | back to summary |
|---|---|
| public void setColumns(List<LoadDataColumnConfig> columns) Implements liquibase.
| |
| setCommentLineStartsWith | back to summary |
|---|---|
| public void setCommentLineStartsWith(String commentLineStartsWith) | |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String encoding) | |
| setFile | back to summary |
|---|---|
| public void setFile(String file) | |
| setQuotchar | back to summary |
|---|---|
| public void setQuotchar(String quotchar) | |
| setRelativeToChangelogFile | back to summary |
|---|---|
| public void setRelativeToChangelogFile(Boolean relativeToChangelogFile) | |
| setSeparator | back to summary |
|---|---|
| public void setSeparator(String separator) | |
| setUsePreparedStatements | back to summary |
|---|---|
| public void setUsePreparedStatements(Boolean usePreparedStatements) | |
| supports | back to summary |
|---|---|
| public boolean supports(Database database) Overrides liquibase. Implements liquibase. Doc from liquibase. Implementation delegates logic to the
| |
| supportsBatchUpdates | back to summary |
|---|---|
| protected boolean supportsBatchUpdates(Database database) | |
| validate | back to summary |
|---|---|
| public ValidationErrors validate(Database database) Overrides liquibase. Implements liquibase. Doc from liquibase. Implementation checks the ChangeParameterMetaData for declared required fields
and also delegates logic to the
| |
| validateColumn | back to summary |
|---|---|
| public void validateColumn(LoadDataColumnConfig columnConfig, ValidationErrors validationErrors, String columnIDString) | |
| validateColumns | back to summary |
|---|---|
| protected ValidationErrors validateColumns(ValidationErrors validationErrors) Validate all columns and collect errors in 'validationErrors'
| |
| warn | back to summary |
|---|---|
| public Warnings warn(Database database) Overrides liquibase. Implements liquibase. Doc from liquibase. Implementation delegates logic to the
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final LoadDataChange. | |
| public static final LoadDataChange. | |
| public static final LoadDataChange. | |
| public static final LoadDataChange. | |
| public static final LoadDataChange. | |
| public static final LoadDataChange. | |
| public static final LoadDataChange. | |
| public static final LoadDataChange. | |
| public static final LoadDataChange. | |
| public static final LoadDataChange. | |
| public static final LoadDataChange. | |
| public static final LoadDataChange. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static LoadDataChange. | |
| public static LoadDataChange. |
| BLOB | back to summary |
|---|---|
| public static final LoadDataChange. | |
| BOOLEAN | back to summary |
|---|---|
| public static final LoadDataChange. | |
| CLOB | back to summary |
|---|---|
| public static final LoadDataChange. | |
| COMPUTED | back to summary |
|---|---|
| public static final LoadDataChange. | |
| DATE | back to summary |
|---|---|
| public static final LoadDataChange. | |
| NUMERIC | back to summary |
|---|---|
| public static final LoadDataChange. | |
| OTHER | back to summary |
|---|---|
| public static final LoadDataChange. | |
| SEQUENCE | back to summary |
|---|---|
| public static final LoadDataChange. | |
| SKIP | back to summary |
|---|---|
| public static final LoadDataChange. | |
| STRING | back to summary |
|---|---|
| public static final LoadDataChange. | |
| UNKNOWN | back to summary |
|---|---|
| public static final LoadDataChange. | |
| UUID | back to summary |
|---|---|
| public static final LoadDataChange. | |
| LOAD_DATA_TYPE | back to summary |
|---|---|
| private LOAD_DATA_TYPE() | |
| valueOf | back to summary |
|---|---|
| public static LoadDataChange. | |
| values | back to summary |
|---|---|
| public static LoadDataChange. | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public boolean |
| columns | back to summary |
|---|---|
| private final List<LoadDataColumnConfig> columns | |
| needsPreparedStatement | back to summary |
|---|---|
| private final boolean needsPreparedStatement | |
| LoadDataRowConfig | back to summary |
|---|---|
| public LoadDataRowConfig(boolean needsPreparedStatement, List<LoadDataColumnConfig> columns) | |
| getColumns | back to summary |
|---|---|
| public List | |
| needsPreparedStatement | back to summary |
|---|---|
| public boolean needsPreparedStatement() | |