Package com.exasol.dbbuilder.dialects
Interface DatabaseObjectFactory
-
- All Known Implementing Classes:
AbstractObjectFactory,ExasolObjectFactory,MySqlObjectFactory,OracleObjectFactory,PostgreSqlObjectFactory
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 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.voidexecuteSqlFile(Path... sqlFiles)Execute the contents of an SQL script file.
-
-
-
Method Detail
-
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 TDBJ 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 TDBJ 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
-
executeSqlFile
void executeSqlFile(Path... sqlFiles)
Execute the contents of an SQL script file.- Parameters:
sqlFiles- path to the script file
-
-