Package com.ibm.fhir.database.utils.db2
Class Db2CreateTablespace
- java.lang.Object
-
- com.ibm.fhir.database.utils.db2.Db2CreateTablespace
-
- All Implemented Interfaces:
IDatabaseStatement
public class Db2CreateTablespace extends Object implements IDatabaseStatement
Creates the DB2 Table Space
-
-
Constructor Summary
Constructors Constructor Description Db2CreateTablespace(String tablespaceName)
The constructor builds a table space with the given name.Db2CreateTablespace(String tablespaceName, int extentSizeKB)
Public constructor with optional extent size in KB
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(IDatabaseTranslator translator, Connection c)
Execute the statement using the connection.protected boolean
tablespaceExists(IDatabaseTranslator translator, Connection c)
Check if the given tablespace exists
-
-
-
Constructor Detail
-
Db2CreateTablespace
public Db2CreateTablespace(String tablespaceName)
The constructor builds a table space with the given name.- Parameters:
tablespaceName
-
-
Db2CreateTablespace
public Db2CreateTablespace(String tablespaceName, int extentSizeKB)
Public constructor with optional extent size in KB- Parameters:
tablespaceName
-extentSizeKB
-
-
-
Method Detail
-
run
public void run(IDatabaseTranslator translator, Connection c)
Description copied from interface:IDatabaseStatement
Execute the statement using the connection.- Specified by:
run
in interfaceIDatabaseStatement
- Parameters:
translator
- to translate any exceptions
-
tablespaceExists
protected boolean tablespaceExists(IDatabaseTranslator translator, Connection c)
Check if the given tablespace exists- Parameters:
translator
-c
-- Returns:
-
-