Class RepositoryService
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.analyticsmodeling.fvt.RepositoryService
-
public class RepositoryService extends Object
This class aims to offer support for the FVT in regards to calling the LocalRepositoryServicesClient. It is used to build Database object in the repository to test import functionality.
-
-
Field Summary
Fields Modifier and Type Field Description protected OMRSRepositoryPropertiesUtilitiespropertyUtilsstatic StringTYPE_SUFFIX
-
Constructor Summary
Constructors Constructor Description RepositoryService(String serverName, String userId, String serverPlatformRootURL, String context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityDetailaddColumn(EntityDetail tableEntity, String columnName, String dataType, String vendorType, int position)voidcleanRepository()Clean repository from previous test setup.EntityDetailcreateDatabaseEntity(String dbName, String type, String version)EntityDetailcreateDatabaseSchemaEntity(String guidDB, String schemaName)protected EntityDetailcreateReferencedColumn(String parentQName, String columnName, int position)voidcreateRequiredEntities(AnalyticsAsset artifact)EntityDetailcreateSchemaTable(EntityDetail schema, String tableName)voidsetColumnNoteLogProperty(EntityDetail columnEntity, String propName, String propValue)
-
-
-
Field Detail
-
TYPE_SUFFIX
public static final String TYPE_SUFFIX
- See Also:
- Constant Field Values
-
propertyUtils
protected OMRSRepositoryPropertiesUtilities propertyUtils
-
-
Constructor Detail
-
RepositoryService
public RepositoryService(String serverName, String userId, String serverPlatformRootURL, String context) throws InvalidParameterException
- Throws:
InvalidParameterException
-
-
Method Detail
-
createRequiredEntities
public void createRequiredEntities(AnalyticsAsset artifact) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, ClassificationErrorException, StatusNotSupportedException, FunctionNotSupportedException, UserNotAuthorizedException
-
createReferencedColumn
protected EntityDetail createReferencedColumn(String parentQName, String columnName, int position) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, ClassificationErrorException, StatusNotSupportedException, FunctionNotSupportedException, UserNotAuthorizedException
-
cleanRepository
public void cleanRepository() throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, FunctionNotSupportedException, UserNotAuthorizedException, PagingErrorException, EntityNotKnownException, EntityNotDeletedExceptionClean repository from previous test setup.- Throws:
InvalidParameterException- in case of the error.RepositoryErrorException- in case of the error.TypeErrorException- in case of the error.PropertyErrorException- in case of the error.FunctionNotSupportedException- in case of the error.UserNotAuthorizedException- in case of the error.PagingErrorException- in case of the error.EntityNotKnownException- in case of the error.EntityNotDeletedException- in case of the error.
-
createDatabaseEntity
public EntityDetail createDatabaseEntity(String dbName, String type, String version) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, ClassificationErrorException, StatusNotSupportedException, FunctionNotSupportedException, UserNotAuthorizedException
-
createDatabaseSchemaEntity
public EntityDetail createDatabaseSchemaEntity(String guidDB, String schemaName) throws InvalidParameterException, RepositoryErrorException, FunctionNotSupportedException, EntityNotKnownException, EntityProxyOnlyException, UserNotAuthorizedException, TypeErrorException, PropertyErrorException, ClassificationErrorException, StatusNotSupportedException
-
createSchemaTable
public EntityDetail createSchemaTable(EntityDetail schema, String tableName) throws InvalidParameterException, TypeErrorException, EntityProxyOnlyException, ClassificationErrorException, RepositoryErrorException, EntityNotKnownException, PropertyErrorException, PagingErrorException, FunctionNotSupportedException, UserNotAuthorizedException, StatusNotSupportedException
-
addColumn
public EntityDetail addColumn(EntityDetail tableEntity, String columnName, String dataType, String vendorType, int position) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, EntityNotKnownException, PropertyErrorException, PagingErrorException, FunctionNotSupportedException, UserNotAuthorizedException, ClassificationErrorException, StatusNotSupportedException, EntityProxyOnlyException
-
setColumnNoteLogProperty
public void setColumnNoteLogProperty(EntityDetail columnEntity, String propName, String propValue) throws InvalidParameterException, TypeErrorException, RepositoryErrorException, EntityNotKnownException, PropertyErrorException, PagingErrorException, FunctionNotSupportedException, UserNotAuthorizedException, EntityProxyOnlyException, ClassificationErrorException, StatusNotSupportedException
-
-