Class ColumnServiceImpl
java.lang.Object
org.qubership.atp.tdm.service.impl.ColumnServiceImpl
- All Implemented Interfaces:
ColumnService
-
Constructor Summary
ConstructorsConstructorDescriptionColumnServiceImpl(CatalogRepository catalogRepository, ColumnRepository columnRepository, EnvironmentsService environmentsService, TestDataTableRepository testDataTableRepository, org.qubership.atp.common.lock.LockManager lockManager) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByTableName(String tableName) Delete rows in column table by table name.extractColumns(String tableName, TestDataType testDataType, ResultSet resultSet) extractColumns(String tableName, TestDataType testDataType, ResultSet resultSet, TestDataTableOrder testDataTableOrder) extractColumnsMultiple(String tableName, TestDataType testDataType, ResultSet resultSet) getAllColumnsByTableName(String tableName) getAllTablesWithLinks(UUID projectId, UUID systemId) Get catalog of all tables with links.getColumnLink(UUID projectId, UUID systemId, String endpoint) voidsetupColumnLinks(Boolean isAll, UUID projectId, UUID systemId, String tableName, String columnName, String endpoint, Boolean pickUpFullLinkFromTableCell) Setup links for current table.setUpLinks(UUID projectId, UUID systemId, String tableName) Refresh links for current table.voidsetUpLinks(UUID projectId, UUID systemId, String tableTitle, String tableName) Renew bulk links by table title, project id and system id.
-
Constructor Details
-
ColumnServiceImpl
@Lazy @Autowired public ColumnServiceImpl(@Nonnull CatalogRepository catalogRepository, @Nonnull ColumnRepository columnRepository, @Nonnull EnvironmentsService environmentsService, @Nonnull TestDataTableRepository testDataTableRepository, @Nonnull org.qubership.atp.common.lock.LockManager lockManager) Default constructor.
-
-
Method Details
-
extractColumns
public List<TestDataTableColumn> extractColumns(@Nonnull String tableName, @Nonnull TestDataType testDataType, @Nonnull ResultSet resultSet, @Nullable TestDataTableOrder testDataTableOrder) throws SQLException - Specified by:
extractColumnsin interfaceColumnService- Throws:
SQLException
-
extractColumns
public List<TestDataTableColumn> extractColumns(@Nonnull String tableName, @Nonnull TestDataType testDataType, @Nonnull ResultSet resultSet) throws SQLException - Specified by:
extractColumnsin interfaceColumnService- Throws:
SQLException
-
extractColumnsMultiple
public List<TestDataTableColumn> extractColumnsMultiple(@Nonnull String tableName, @Nonnull TestDataType testDataType, @Nonnull ResultSet resultSet) throws SQLException - Specified by:
extractColumnsMultiplein interfaceColumnService- Throws:
SQLException
-
getColumnLink
public String getColumnLink(@Nonnull UUID projectId, @Nonnull UUID systemId, @Nonnull String endpoint) - Specified by:
getColumnLinkin interfaceColumnService
-
setupColumnLinks
public void setupColumnLinks(@Nonnull Boolean isAll, @Nonnull UUID projectId, @Nonnull UUID systemId, @Nonnull String tableName, @Nonnull String columnName, @Nonnull String endpoint, @Nonnull Boolean pickUpFullLinkFromTableCell) Setup links for current table.- Specified by:
setupColumnLinksin interfaceColumnService- Parameters:
projectId- - project id.systemId- - system id.tableName- - current table id.columnName- - column name.endpoint- - endpoint for link.
-
setUpLinks
public LinkSetupResult setUpLinks(@Nonnull UUID projectId, @Nonnull UUID systemId, @Nonnull String tableName) Refresh links for current table.- Specified by:
setUpLinksin interfaceColumnService- Parameters:
projectId- - project id.systemId- - system id.tableName- - current table id.
-
setUpLinks
public void setUpLinks(@Nonnull UUID projectId, @Nonnull UUID systemId, @Nonnull String tableTitle, @Nonnull String tableName) Renew bulk links by table title, project id and system id.- Specified by:
setUpLinksin interfaceColumnService- Parameters:
projectId- - project id.systemId- - system id.tableTitle- - table title.
-
getAllTablesWithLinks
public List<TestDataTableCatalog> getAllTablesWithLinks(@Nonnull UUID projectId, @Nonnull UUID systemId) Get catalog of all tables with links.- Specified by:
getAllTablesWithLinksin interfaceColumnService- Parameters:
projectId- - project id.systemId- - system id.- Returns:
- List of TestDataTableCatalog.
-
getDistinctTableNames
- Specified by:
getDistinctTableNamesin interfaceColumnService
-
getAllColumnsByTableName
- Specified by:
getAllColumnsByTableNamein interfaceColumnService
-
deleteByTableName
Delete rows in column table by table name. Required when deleting a table.- Specified by:
deleteByTableNamein interfaceColumnService- Parameters:
tableName- TDM table name.
-