Class DataSetList
java.lang.Object
org.qubership.atp.dataset.db.jpa.Wrapper
org.qubership.atp.dataset.service.jpa.delegates.AbstractObjectWrapper<DataSetListEntity>
org.qubership.atp.dataset.service.jpa.delegates.DataSetList
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields inherited from class org.qubership.atp.dataset.service.jpa.delegates.AbstractObjectWrapper
entityFields inherited from class org.qubership.atp.dataset.db.jpa.Wrapper
entityManager, gridFsService, jdbc, modelsProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateAttribute(String name, AttributeTypeName type) Creates new attribute with name and type.createAttribute(String name, AttributeTypeName type, Integer ordering) Creates new attribute with name, type and ordering.createDataSet(String name) Create with name.createDataSet(String name, long order) Create with name and order.Copies a DSL with the same name using postfix or, if postfix is not specified, uses (N) postfix where N - is copy number.getAttributeById(UUID id) Get DSl attribute by id.Get overlaps.getAttributeKeysByDataSet(UUID dataSetId) Overlaps by datasets.Get attributes.getAttributesByTypes(List<AttributeTypeName> attributeTypeNames) Returns attributes filtered by type.org.springframework.data.domain.Page<AttributeEntity> getAttributesByTypesPageable(UUID uuid, List<AttributeTypeName> attributeTypeNames, org.springframework.data.domain.Pageable pageable) Get page of attributes.Attributes count.getAttributesOfPage(org.springframework.data.domain.Page<AttributeEntity> entities, List<AttributeTypeName> attributeTypeNames) Extract attributes of page.getDataSetByColumn(int columnNumber) Gets DS column, returns DS.getDataSetById(UUID dataSetId) Gets DS id, returns DS.getDataSetByName(String dataSetName) Gets DS name, returns DS.getDataSetColumnById(UUID dataSetId) Gets DS id, returns its column.getDataSetColumnByName(String dataSetName) Gets DS name, returns its column.getDataSetColumnsByIds(List<UUID> dataSetIds) Get columns by dataset ids.Returns DSL reference attributes.All DSs.getDataSetsColumns(List<UUID> dataSetIds) Takes Data Sets Ids list, returns their columns.How many DSs this DSL has.Returns DSL dependencies.getId()intReturns maximum attribute order number.longReturns maximum data set order number.getName()Get parameters without empty attributes.Get parameters without empty attributes.insertAttribute(UUID id, String name, AttributeTypeName type, int ordering) Creates new attribute with name and type.insertDataSet(UUID id, String name) Create with name and id.insertOverlap(UUID dataSetId, UUID attributeKeyId, UUID attributeId, List<UUID> path, UUID parameterId) Insert overlap with id and parameter for data set.voidsetDataSetListAttributes(List<AttributeEntity> entityList) Set DSL reference attributes.voidsetModifiedBy(UUID id) voidsetModifiedWhen(Timestamp timestamp) voidvoidsetVisibilityArea(UUID visibilityAreaId) Sets visibility area.voidupdateDslReferences(Map<UUID, DataSetListCopyData> copiesData, Map<UUID, UUID> dataSetsMap) Changes attribute DSL reference to the new one according to the map.voidupdateOverlaps(Map<UUID, DataSetListCopyData> copiesData) Updates overlaps keys.
-
Constructor Details
-
DataSetList
-
-
Method Details
-
getId
-
getName
-
getVisibilityArea
-
getTestPlan
-
getAttributeKeys
Get overlaps. -
getOverLapParameters
Get parameters without empty attributes. -
getOverLapParametersMapping
Get parameters without empty attributes. -
getAttributeKeysByDataSet
Overlaps by datasets. -
getAttributes
Get attributes. -
getAttributesCount
Attributes count. -
getAttributeById
Get DSl attribute by id. -
getDataSetsColumns
Takes Data Sets Ids list, returns their columns. -
getDataSetColumnByName
Gets DS name, returns its column. -
getDataSetColumnById
Gets DS id, returns its column. -
getDataSetColumnsByIds
Get columns by dataset ids. -
getDataSets
All DSs. -
getDataSetByColumn
Gets DS column, returns DS. -
getDataSetByName
Gets DS name, returns DS. -
getDataSetById
Gets DS id, returns DS. -
getDataSetsCount
How many DSs this DSL has. -
getLabels
-
getAttributesByTypes
Returns attributes filtered by type. -
getAttributesByTypesPageable
public org.springframework.data.domain.Page<AttributeEntity> getAttributesByTypesPageable(UUID uuid, List<AttributeTypeName> attributeTypeNames, org.springframework.data.domain.Pageable pageable) Get page of attributes.- Parameters:
uuid- dsl idattributeTypeNames- typespageable- page- Returns:
- page of attributes.
-
getAttributesOfPage
public List<Attribute> getAttributesOfPage(org.springframework.data.domain.Page<AttributeEntity> entities, List<AttributeTypeName> attributeTypeNames) Extract attributes of page.- Parameters:
entities- attribute entitiesattributeTypeNames- types- Returns:
- list of attributes
-
getDependencies
Returns DSL dependencies. -
setDataSetListAttributes
Set DSL reference attributes. -
getDataSetListReferences
Returns DSL reference attributes. -
createDataSet
Create with name. -
createDataSet
Create with name and order. -
insertDataSet
Create with name and id. -
beforeRemove
public void beforeRemove()- Overrides:
beforeRemovein classAbstractObjectWrapper<DataSetListEntity>
-
createAttribute
Creates new attribute with name and type. -
createAttribute
Creates new attribute with name, type and ordering. -
insertAttribute
Creates new attribute with name and type. -
getLastAttributeOrderNumber
public int getLastAttributeOrderNumber()Returns maximum attribute order number. -
getLastDataSetsOrderNumber
public long getLastDataSetsOrderNumber()Returns maximum data set order number. -
setName
-
setVisibilityArea
Sets visibility area.- Parameters:
visibilityAreaId- the visibility area id
-
duplicate
public DataSetListCopyData duplicate(@Nullable String postfix, String prevNamePattern, @Nullable UUID sagaSessionId) Copies a DSL with the same name using postfix or, if postfix is not specified, uses (N) postfix where N - is copy number. -
updateDslReferences
public void updateDslReferences(Map<UUID, DataSetListCopyData> copiesData, Map<UUID, UUID> dataSetsMap) Changes attribute DSL reference to the new one according to the map. -
updateOverlaps
Updates overlaps keys. -
setModifiedBy
-
setModifiedWhen
-
insertOverlap
public Parameter insertOverlap(UUID dataSetId, UUID attributeKeyId, UUID attributeId, List<UUID> path, UUID parameterId) Insert overlap with id and parameter for data set. -
getModifiedWhen
-
getSagaSessionId
-