Package com.exasol.dbbuilder
Interface DatabaseObjectFactory
-
- All Known Implementing Classes:
ExasolObjectFactory
public interface DatabaseObjectFactoryInterface for database object factories.The concrete implementation depends on the feature set and dialect of the database that you want to create objects for.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectionDefinitioncreateConnectionDefinition(String name, String to)Create a connection without credentials.ConnectionDefinitioncreateConnectionDefinition(String name, String target, String userName, String password)Create a connection without credentials.UsercreateLoginUser(String name)Create user that can log into the database with a default password.UsercreateLoginUser(String name, String password)Create user that can log into the database.SchemacreateSchema(String name)Create a new database schema.UsercreateUser(String name)/** Create a new database user with a default password.UsercreateUser(String name, String password)Create a new database user.VirtualSchema.BuildercreateVirtualSchemaBuilder(String name)Create a builder for a Virtual Schema.
-
-
-
Method Detail
-
createConnectionDefinition
ConnectionDefinition createConnectionDefinition(String name, String to)
Create a connection without credentials.- Parameters:
name- name of the connectionto- target the connection points to- Returns:
- new
ConnectionDefinitioninstance
-
createConnectionDefinition
ConnectionDefinition createConnectionDefinition(String name, String target, String userName, String password)
Create a connection without credentials.- Parameters:
name- name of the connectiontarget- target the connection points touserName- user as which to connectpassword- password or password-like credential- Returns:
- new
ConnectionDefinitioninstance
-
createSchema
Schema createSchema(String name)
Create a new database schema.- Parameters:
name- name of the schema- Returns:
- new
Schemainstance
-
createUser
User createUser(String name)
/** Create a new database user with a default password.This method creates a user with a password derived from the user name. Note that this is only acceptable in the scope of testing for which the TDDB is made. Never use something like this in production code!
- Parameters:
name- user name- Returns:
- new
Userinstance
-
createUser
User createUser(String name, String password)
Create a new database user.- Parameters:
name- user namepassword- login password- Returns:
- new
Userinstance
-
createLoginUser
User createLoginUser(String name)
Create user that can log into the database with a default password.This method creates a user with a password derived from the user name. Note that this is only acceptable in the scope of testing for which the TDDB is made. Never use something like this in production code!
- Parameters:
name- user name- Returns:
- new
Userinstance
-
createLoginUser
User createLoginUser(String name, String password)
Create user that can log into the database.- Parameters:
name- user namepassword- login password- Returns:
- new
Userinstance
-
createVirtualSchemaBuilder
VirtualSchema.Builder createVirtualSchemaBuilder(String name)
Create a builder for a Virtual Schema.- Parameters:
name- name of the Virtual Schema- Returns:
- builder
-
-