Package org.pentaho.di.repository.kdr
Class KettleDatabaseRepositoryCreationHelper
- java.lang.Object
-
- org.pentaho.di.repository.kdr.KettleDatabaseRepositoryCreationHelper
-
public class KettleDatabaseRepositoryCreationHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description KettleDatabaseRepositoryCreationHelper(KettleDatabaseRepository repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createRepositorySchema(org.pentaho.di.core.ProgressMonitorListener monitor, boolean upgrade, List<String> statements, boolean dryrun)
Create or upgrade repository tables & fields, populate lookup tables, ...protected int
getRepoStringLength()
Returns max VARCHAR length depending on db interfaceList<String>
updateDatabaseTypes(List<String> statements, boolean dryrun, boolean create)
Update the list in R_DATABASE_TYPE using the database plugin entriesvoid
updateJobEntryTypes(List<String> statements, boolean dryrun, boolean create)
Update the list in R_JOBENTRY_TYPEList<String>
updateStepTypes(List<String> statements, boolean dryrun, boolean create)
Update the list in R_STEP_TYPE using the StepLoader StepPlugin entries
-
-
-
Constructor Detail
-
KettleDatabaseRepositoryCreationHelper
public KettleDatabaseRepositoryCreationHelper(KettleDatabaseRepository repository)
-
-
Method Detail
-
createRepositorySchema
public void createRepositorySchema(org.pentaho.di.core.ProgressMonitorListener monitor, boolean upgrade, List<String> statements, boolean dryrun) throws org.pentaho.di.core.exception.KettleException
Create or upgrade repository tables & fields, populate lookup tables, ...- Parameters:
monitor
- The progress monitor to use, or null if no monitor is present.upgrade
- True if you want to upgrade the repository, false if you want to create it.statements
- the list of statements to populatedryrun
- true if we don't actually execute the statements- Throws:
org.pentaho.di.core.exception.KettleException
- in case something goes wrong!
-
getRepoStringLength
protected int getRepoStringLength()
Returns max VARCHAR length depending on db interface
-
updateStepTypes
public List<String> updateStepTypes(List<String> statements, boolean dryrun, boolean create) throws org.pentaho.di.core.exception.KettleException
Update the list in R_STEP_TYPE using the StepLoader StepPlugin entries- Throws:
org.pentaho.di.core.exception.KettleException
- if the update didn't go as planned.
-
updateDatabaseTypes
public List<String> updateDatabaseTypes(List<String> statements, boolean dryrun, boolean create) throws org.pentaho.di.core.exception.KettleException
Update the list in R_DATABASE_TYPE using the database plugin entries- Throws:
org.pentaho.di.core.exception.KettleException
- if the update didn't go as planned.
-
updateJobEntryTypes
public void updateJobEntryTypes(List<String> statements, boolean dryrun, boolean create) throws org.pentaho.di.core.exception.KettleException
Update the list in R_JOBENTRY_TYPE- Parameters:
create
-- Throws:
org.pentaho.di.core.exception.KettleException
- if something went wrong during the update.
-
-