Package org.openmetadata.service.jdbi3
Class DataInsightChartRepository
- java.lang.Object
-
- org.openmetadata.service.jdbi3.EntityRepository<DataInsightChart>
-
- org.openmetadata.service.jdbi3.DataInsightChartRepository
-
public class DataInsightChartRepository extends EntityRepository<DataInsightChart>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openmetadata.service.jdbi3.EntityRepository
EntityRepository.EntityUpdater, EntityRepository.Operation
-
-
Field Summary
-
Fields inherited from class org.openmetadata.service.jdbi3.EntityRepository
allowedFields, CACHE_WITH_ID, CACHE_WITH_NAME, dao, daoCollection, entityType, putFields, quoteFqn, supportsExtension, supportsFollower, supportsOwner, supportsSoftDelete, supportsTags, supportsVotes
-
-
Constructor Summary
Constructors Constructor Description DataInsightChartRepository(CollectionDAO dao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataInsightChartclearFields(DataInsightChart entity, EntityUtil.Fields fields)Set the requested fields in an entity.voidprepare(DataInsightChart entity)This method is used for validating an entity to be created during POST, PUT, and PATCH operations and prepare the entity with all the required attributes and relationships.DataInsightChartsetFields(DataInsightChart entity, EntityUtil.Fields fields)Set the requested fields in an entity.voidstoreEntity(DataInsightChart entity, boolean update)An entity is stored in the backend database as JSON document.voidstoreRelationships(DataInsightChart entity)This method is called to store all the relationships of an entity.-
Methods inherited from class org.openmetadata.service.jdbi3.EntityRepository
addDerivedTags, addFollower, addRelationship, addRelationship, addRelationship, applyTags, applyTags, bulkAddToRelationship, checkSystemEntityDeletion, cleanup, clearFieldsInternal, create, createInternal, createOrUpdate, createOrUpdateInternal, delete, deleteByName, deleteExtensionAtTimestamp, deleteExtensionBeforeTimestamp, deleteFollower, deleteFrom, deleteInternal, deleteInternalByName, deleteRelationship, deleteTo, ensureSingleRelationship, exportToCsv, find, findBoth, findByName, findByNameOrNull, findFrom, findFromRecords, findTo, findToRecords, get, get, getAllowedFieldsCopy, getAllTags, getByName, getByName, getChildren, getCommonFields, getContainer, getCustomPropertyFQN, getCustomPropertyFQNPrefix, getEntitiesFromSeedData, getEntitiesFromSeedData, getEntitiesFromSeedData, getExtension, getExtensionAtTimestamp, getExtensionAtTimestampWithOperation, getFields, getFields, getFollowers, getFromEntityRef, getHref, getIngestionPipelines, getLatestExtensionFromTimeseries, getOwner, getOwner, getParent, getReference, getReferenceByName, getResultList, getResultList, getResultsFromAndToTimestamps, getResultsFromAndToTimestamps, getReviewers, getTags, getTags, getToEntityRef, getUpdater, getVersion, getVotes, importFromCsv, initializeEntity, initSeedDataFromResources, listAfter, listAfterWithSkipFailure, listAll, listBefore, listVersions, patch, populateOwner, postCreate, postDelete, postUpdate, preDelete, prepareInternal, removeExtension, restoreEntity, restorePatchAttributes, setFieldsInternal, setFullyQualifiedName, setInheritedFields, store, storeExtension, storeOwner, storeRelationshipsInternal, storeTimeSeries, storeTimeSeriesWithOperation, update, update, updateOwner, updateVote, validateOwner, validateRoles, validateUsers, withHref
-
-
-
-
Field Detail
-
COLLECTION_PATH
public static final String COLLECTION_PATH
- See Also:
- Constant Field Values
-
LAST_SESSION
public static final String LAST_SESSION
- See Also:
- Constant Field Values
-
DATA_ENTITY_TYPE
public static final String DATA_ENTITY_TYPE
- See Also:
- Constant Field Values
-
TIMESTAMP
public static final String TIMESTAMP
- See Also:
- Constant Field Values
-
ENTITY_COUNT
public static final String ENTITY_COUNT
- See Also:
- Constant Field Values
-
DATA_ENTITY_COUNT
public static final String DATA_ENTITY_COUNT
- See Also:
- Constant Field Values
-
ENTITY_TYPE
public static final String ENTITY_TYPE
- See Also:
- Constant Field Values
-
SERVICE_NAME
public static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
DATA_SERVICE_NAME
public static final String DATA_SERVICE_NAME
- See Also:
- Constant Field Values
-
COMPLETED_DESCRIPTION_FRACTION
public static final String COMPLETED_DESCRIPTION_FRACTION
- See Also:
- Constant Field Values
-
DATA_COMPLETED_DESCRIPTIONS
public static final String DATA_COMPLETED_DESCRIPTIONS
- See Also:
- Constant Field Values
-
HAS_OWNER_FRACTION
public static final String HAS_OWNER_FRACTION
- See Also:
- Constant Field Values
-
DATA_HAS_OWNER
public static final String DATA_HAS_OWNER
- See Also:
- Constant Field Values
-
ENTITY_TIER
public static final String ENTITY_TIER
- See Also:
- Constant Field Values
-
DATA_ENTITY_TIER
public static final String DATA_ENTITY_TIER
- See Also:
- Constant Field Values
-
DATA_TEAM
public static final String DATA_TEAM
- See Also:
- Constant Field Values
-
DATA_USER_NAME
public static final String DATA_USER_NAME
- See Also:
- Constant Field Values
-
DATA_PAGE_VIEWS
public static final String DATA_PAGE_VIEWS
- See Also:
- Constant Field Values
-
DATA_SESSIONS
public static final String DATA_SESSIONS
- See Also:
- Constant Field Values
-
SESSIONS
public static final String SESSIONS
- See Also:
- Constant Field Values
-
PAGE_VIEWS
public static final String PAGE_VIEWS
- See Also:
- Constant Field Values
-
DATA_LAST_SESSION
public static final String DATA_LAST_SESSION
- See Also:
- Constant Field Values
-
SESSION_DURATION
public static final String SESSION_DURATION
- See Also:
- Constant Field Values
-
DATA_TOTAL_SESSION_DURATION
public static final String DATA_TOTAL_SESSION_DURATION
- See Also:
- Constant Field Values
-
DATA_VIEWS
public static final String DATA_VIEWS
- See Also:
- Constant Field Values
-
ENTITY_FQN
public static final String ENTITY_FQN
- See Also:
- Constant Field Values
-
DATA_ENTITY_FQN
public static final String DATA_ENTITY_FQN
- See Also:
- Constant Field Values
-
OWNER
public static final String OWNER
- See Also:
- Constant Field Values
-
DATA_OWNER
public static final String DATA_OWNER
- See Also:
- Constant Field Values
-
USER_NAME
public static final String USER_NAME
- See Also:
- Constant Field Values
-
TEAM
public static final String TEAM
- See Also:
- Constant Field Values
-
ENTITY_HREF
public static final String ENTITY_HREF
- See Also:
- Constant Field Values
-
DATA_ENTITY_HREF
public static final String DATA_ENTITY_HREF
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DataInsightChartRepository
public DataInsightChartRepository(CollectionDAO dao)
-
-
Method Detail
-
setFields
public DataInsightChart setFields(DataInsightChart entity, EntityUtil.Fields fields)
Description copied from class:EntityRepositorySet the requested fields in an entity. This is used for requesting specific fields in the object during GET operations. It is also used during PUT and PATCH operations to set up fields that can be updated.- Specified by:
setFieldsin classEntityRepository<DataInsightChart>
-
clearFields
public DataInsightChart clearFields(DataInsightChart entity, EntityUtil.Fields fields)
Description copied from class:EntityRepositorySet the requested fields in an entity. This is used for requesting specific fields in the object during GET operations. It is also used during PUT and PATCH operations to set up fields that can be updated.- Specified by:
clearFieldsin classEntityRepository<DataInsightChart>
-
prepare
public void prepare(DataInsightChart entity)
Description copied from class:EntityRepositoryThis method is used for validating an entity to be created during POST, PUT, and PATCH operations and prepare the entity with all the required attributes and relationships.The implementation of this method must perform the following:
- Prepare the values for attributes that are not required in the request but can be derived on the server side. Example - >FullyQualifiedNames of an entity can be derived from the hierarchy that an entity belongs to .
- Validate all the attributes of an entity.
- Validate all the relationships of an entity. As an example - during table creation, relationships such as Tags, Owner, Databasea table belongs to are validated. During validation additional information that is not required in the create/update request are set up in the corresponding relationship fields.
- Specified by:
preparein classEntityRepository<DataInsightChart>- See Also:
for an example implementation
-
storeEntity
public void storeEntity(DataInsightChart entity, boolean update)
Description copied from class:EntityRepositoryAn entity is stored in the backend database as JSON document. The JSON includes some attributes of the entity and does not include attributes such as href. The relationship fields of an entity is never stored in the JSON document. It is always reconstructed based on relationship edges from the backend database.
As an example, when table entity is stored, the attributes such as href and the relationships such as owner, database, and tags are set to null. These attributes are restored back after the JSON document is stored to be sent as response.- Specified by:
storeEntityin classEntityRepository<DataInsightChart>- See Also:
for an example implementation
-
storeRelationships
public void storeRelationships(DataInsightChart entity)
Description copied from class:EntityRepositoryThis method is called to store all the relationships of an entity. It is expected that all relationships are already validated and completely setup before this method is called and no validation of relationships is required.- Specified by:
storeRelationshipsin classEntityRepository<DataInsightChart>- See Also:
for an example implementation
-
-