Class Omas
java.lang.Object
org.odpi.openmetadata.adapters.connectors.integration.jdbc.transfer.requests.Omas
Utility class that delegates requests to designated access service
-
Constructor Summary
ConstructorDescriptionOmas
(DatabaseIntegratorContext databaseIntegratorContext, AuditLog auditLog) -
Method Summary
Modifier and TypeMethodDescriptioncreateColumn
(String tableGuid, DatabaseColumnProperties newColumnProperties) Create column in tablecreateDatabase
(DatabaseProperties newDatabaseProperties) Create databasecreateEndpoint
(EndpointProperties newEndpointProperties) Create endpointcreateSchema
(String databaseGuid, DatabaseSchemaProperties newSchemaProperties) Create schema in databasecreateTable
(String schemaGuid, DatabaseTableProperties newTableProperties) Create tablecreateView
(String parentGuid, DatabaseViewProperties newViewProperties) Create viewfindDatabaseColumns
(String searchBy) Find columnsfindEndpoints
(String searchBy) Find endpointsgetColumns
(String tableGuid) Get columns of tablegetConnectionsByName
(String connectionQualifiedName) Get connection by namegetConnectorTypesByName
(String connectorTypeQualifiedName) Get connector types by namegetDatabasesByName
(String databaseQualifiedName) Get databasesgetSchemas
(String databaseGuid) Get schemas of databaseGet tablesGet viewsvoid
removeColumn
(DatabaseColumnElement columnElement) Remove columnvoid
removeForeignKey
(String primaryKeyColumnGuid, String foreignKeyColumnGuid) Remove foreign keyvoid
removePrimaryKey
(String columnGuid) Remove primary keyvoid
removeSchema
(DatabaseSchemaElement schemaElement) Remove schemavoid
removeTable
(DatabaseTableElement tableElement) Remove tablevoid
removeView
(DatabaseViewElement viewElement) Remove viewvoid
setForeignKey
(String primaryKeyColumnGuid, String foreignKeyColumnGuid, DatabaseForeignKeyProperties foreignKeyProperties) Set foreign keyvoid
setPrimaryKey
(String columnGuid, DatabasePrimaryKeyProperties primaryKeyProperties) Set primary keyvoid
updateColumn
(String columnGuid, DatabaseColumnProperties columnProperties) Update columnvoid
updateDatabase
(String databaseGuid, DatabaseProperties databaseProperties) Update databasevoid
updateSchema
(String schemaGuid, DatabaseSchemaProperties schemaProperties) Update schemavoid
updateTable
(String tableGuid, DatabaseTableProperties tableProperties) Update tablevoid
updateView
(String viewGuid, DatabaseViewProperties viewProperties) Update view
-
Constructor Details
-
Omas
-
-
Method Details
-
getSchemas
Get schemas of database- Parameters:
databaseGuid
- database guid- Returns:
- schemas
-
getTables
Get tables- Parameters:
assetGuid
- database or schema guid- Returns:
- tables
-
getViews
Get views- Parameters:
assetGuid
- database or schema guid- Returns:
- tables
-
getColumns
Get columns of table- Parameters:
tableGuid
- table guid- Returns:
- columns
-
createEndpoint
Create endpoint- Parameters:
newEndpointProperties
- properties- Returns:
- guid
-
createDatabase
Create database- Parameters:
newDatabaseProperties
- properties- Returns:
- guid
-
createSchema
public Optional<String> createSchema(String databaseGuid, DatabaseSchemaProperties newSchemaProperties) Create schema in database- Parameters:
databaseGuid
- database guidnewSchemaProperties
- properties- Returns:
- guid
-
createTable
Create table- Parameters:
schemaGuid
- schema guidnewTableProperties
- properties- Returns:
- guid
-
createView
Create view- Parameters:
parentGuid
- parent guidnewViewProperties
- properties- Returns:
- guid
-
createColumn
public Optional<String> createColumn(String tableGuid, DatabaseColumnProperties newColumnProperties) Create column in table- Parameters:
tableGuid
- table guidnewColumnProperties
- properties- Returns:
- guid
-
removeSchema
Remove schema- Parameters:
schemaElement
- schema
-
removeTable
Remove table- Parameters:
tableElement
- table
-
removeView
Remove view- Parameters:
viewElement
- view
-
removeColumn
Remove column- Parameters:
columnElement
- column
-
updateDatabase
Update database- Parameters:
databaseGuid
- guiddatabaseProperties
- properties
-
updateSchema
Update schema- Parameters:
schemaGuid
- guidschemaProperties
- properties
-
updateTable
Update table- Parameters:
tableGuid
- guidtableProperties
- properties
-
updateView
Update view- Parameters:
viewGuid
- guidviewProperties
- properties
-
updateColumn
Update column- Parameters:
columnGuid
- guidcolumnProperties
- properties
-
setPrimaryKey
Set primary key- Parameters:
columnGuid
- guidprimaryKeyProperties
- properties
-
removePrimaryKey
Remove primary key- Parameters:
columnGuid
- guid
-
setForeignKey
public void setForeignKey(String primaryKeyColumnGuid, String foreignKeyColumnGuid, DatabaseForeignKeyProperties foreignKeyProperties) Set foreign key- Parameters:
primaryKeyColumnGuid
- guidforeignKeyColumnGuid
- guidforeignKeyProperties
- properties
-
removeForeignKey
Remove foreign key- Parameters:
primaryKeyColumnGuid
- guidforeignKeyColumnGuid
- guid
-
getDatabasesByName
Get databases- Parameters:
databaseQualifiedName
- qualified name- Returns:
- databases
-
getConnectorTypesByName
Get connector types by name- Parameters:
connectorTypeQualifiedName
- qualified name- Returns:
- connector types
-
getConnectionsByName
Get connection by name- Parameters:
connectionQualifiedName
- qualified name- Returns:
- connections
-
findEndpoints
Find endpoints- Parameters:
searchBy
- criteria- Returns:
- endpoints
-
findDatabaseColumns
Find columns- Parameters:
searchBy
- criteria- Returns:
- columns
-