Package org.pentaho.di.base
Class AbstractMeta
java.lang.Object
org.pentaho.di.base.AbstractMeta
- All Implemented Interfaces:
org.pentaho.di.core.AttributesInterface
,org.pentaho.di.core.bowl.HasBowlInterface
,ChangedFlagInterface
,EngineMetaInterface
,UndoInterface
,org.pentaho.di.core.logging.LoggingObjectInterface
,org.pentaho.di.core.logging.LoggingObjectLifecycleInterface
,org.pentaho.di.core.parameters.NamedParams
,org.pentaho.di.core.variables.VariableSpace
,HasRepositoryInterface
,org.pentaho.di.repository.RepositoryElementInterface
,org.pentaho.di.repository.RepositoryObjectInterface
,HasDatabasesInterface
,HasSlaveServersInterface
public abstract class AbstractMeta
extends Object
implements ChangedFlagInterface, UndoInterface, HasDatabasesInterface, org.pentaho.di.core.variables.VariableSpace, EngineMetaInterface, org.pentaho.di.core.parameters.NamedParams, HasSlaveServersInterface, org.pentaho.di.core.AttributesInterface, HasRepositoryInterface, org.pentaho.di.core.bowl.HasBowlInterface, org.pentaho.di.core.logging.LoggingObjectInterface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.pentaho.di.core.bowl.Bowl
protected boolean
protected final ChangedFlag
protected boolean
protected ChannelLogTable
protected String
protected Set<ContentChangedListener>
protected Date
protected String
protected Set<CurrentDirectoryChangedListener>
protected List<org.pentaho.di.core.database.DatabaseMeta>
protected String
protected org.pentaho.di.repository.RepositoryDirectoryInterface
protected EmbeddedMetaStore
protected String
protected String
protected Set<FilenameChangedListener>
protected org.pentaho.di.core.logging.LogLevel
protected int
protected org.pentaho.metastore.api.IMetaStore
protected org.pentaho.di.core.osgi.api.MetastoreLocatorOsgi
protected Date
protected String
protected String
protected Set<NameChangedListener>
protected NamedClusterEmbedManager
protected org.pentaho.di.core.osgi.api.NamedClusterServiceOsgi
protected org.pentaho.di.core.parameters.NamedParams
protected List<NotePadMeta>
protected org.pentaho.di.repository.ObjectId
protected org.pentaho.di.repository.ObjectRevision
The set of names of databases available only for this meta.protected Repository
The repository to reference in the one-off case that it is neededprotected org.pentaho.di.base.AbstractMeta.RunOptions
protected SharedObjects
The last loaded version of the shared objectsprotected String
If this is null, we load from the default shared objects file : $KETTLE_HOME/.kettle/shared.xmlprotected List<SlaveServer>
static final int
Constant = 1static final int
Constant = 3static final int
Constant = 2static final int
Constant = 4protected List<TransAction>
protected int
protected org.pentaho.di.core.variables.VariableSpace
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Adds the passed ContentChangedListener to the list of listeners.void
Remove listenervoid
addDatabase
(int p, org.pentaho.di.core.database.DatabaseMeta ci) Add a database connection to the transformation on a certain location.void
addDatabase
(org.pentaho.di.core.database.DatabaseMeta ci) Add a database connection to the transformation.protected void
addDatabase
(org.pentaho.di.core.database.DatabaseMeta databaseMeta, boolean replace) void
Adds the filename changed listener.void
addNameChangedListener
(NameChangedListener listener) Adds the name changed listener.void
addNote
(int p, NotePadMeta ni) Add a new note at a certain location (i.e.void
addNote
(NotePadMeta ni) Add a new note.void
void
addOrReplaceDatabase
(org.pentaho.di.core.database.DatabaseMeta databaseMeta) Add a database connection to the transformation if that connection didn't exists yet.void
addOrReplaceSlaveServer
(SlaveServer slaveServer) Add a new slave server to the transformation if that didn't exist yet.void
addParameterDefinition
(String key, String defValue, String description) void
addUndo
(Object[] from, Object[] to, int[] pos, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr, int type_of_change, boolean nextAlso) Add an undo operation to the undo listboolean
canSave()
Checks whether the job can be saved.void
clear()
void
Clears the changed flag of this.void
Clears the flags for whether the transformation's databases have changed.void
void
Removes all the name changed listenersvoid
void
Clear undo.protected int
compare
(AbstractMeta meta1, AbstractMeta meta2) void
copyParametersFrom
(org.pentaho.di.core.parameters.NamedParams params) void
copyVariablesFrom
(org.pentaho.di.core.variables.VariableSpace space) void
void
environmentSubstitute
(String aString) String[]
environmentSubstitute
(String[] aString) void
fieldSubstitute
(String aString, org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] rowData) org.pentaho.di.core.database.DatabaseMeta
findDatabase
(String name) Find a database connection by it's namefindSlaveServer
(String serverString) Find a slave server using the nameprotected void
Fire content changed listeners.protected void
fireContentChangedListeners
(boolean ch) protected void
fireCurrentDirectoryChanged
(String previous, String current) Notify listeners of a change in current directory.protected void
fireFilenameChangedListeners
(String oldFilename, String newFilename) Fire filename changed listeners.protected void
fireNameChangedListeners
(String oldName, String newName) Fire name changed listeners.protected List<org.pentaho.di.shared.SharedObjectInterface>
getAttribute
(String groupName, String key) getAttributes
(String groupName) boolean
getBooleanValueOfVariable
(String variableName, boolean defaultValue) org.pentaho.di.core.bowl.Bowl
getBowl()
Gets the channel log table for the job.Gets the container object id.Gets the date the transformation was created.Gets the user by whom the transformation was created.org.pentaho.di.core.database.DatabaseMeta
getDatabase
(int i) Retrieves a database connection information a a certain location.String[]
Gets the database names.List<org.pentaho.di.core.database.DatabaseMeta>
Returns a list of the databases.Gets the description of the job.Gets the extended description of the job.Gets the filename.org.pentaho.di.core.logging.LogLevel
int
Get the maximum number of undo operations possibleorg.pentaho.metastore.api.IMetaStore
org.pentaho.di.core.osgi.api.MetastoreLocatorOsgi
Gets the date the transformation was modified.Gets the user who last modified the transformation.getName()
Get the name of the transformation.org.pentaho.di.core.osgi.api.NamedClusterServiceOsgi
getNote
(int i) Gets the note.getNote
(int x, int y) Find the note that is located on a certain point on the canvas.int[]
getNoteIndexes
(List<NotePadMeta> notes) Get an array of the locations of an array of notesgetNotes()
Gets the notes.org.pentaho.di.repository.ObjectId
org.pentaho.di.repository.ObjectRevision
getParameterValue
(String key) org.pentaho.di.core.logging.LoggingObjectInterface
Gets the interface to the parent log object.org.pentaho.di.core.variables.VariableSpace
Returns the set of databases available only for this meta or null if it was not initialized.Gets the registration date for the transformation.Gets the repository.org.pentaho.di.repository.RepositoryDirectoryInterface
Gets the directory.Gets a list of all selected notes.Gets the shared objects.Gets the shared objects file.String[]
Gets an array of slave server names.Gets a list of slave servers.int
Gets the undo size.getVariable
(String variableName) getVariable
(String variableName, String defaultValue) Is versioning enabled.boolean
int
hashCode()
boolean
boolean
Checks whether or not the connections have changed.boolean
Checks whether or not any of the notes have been changed.void
int
indexOfDatabase
(org.pentaho.di.core.database.DatabaseMeta di) Find the location of databaseint
Finds the location (index) of the specified note.void
initializeVariablesFrom
(org.pentaho.di.core.variables.VariableSpace parent) void
injectVariables
(Map<String, String> prop) boolean
boolean
boolean
boolean
String[]
String[]
boolean
loadSharedObject
(org.pentaho.di.shared.SharedObjectInterface object) void
lowerNote
(int p) Lowers a note to the "bottom" of the list by removing the note at the specified index and re-inserting it at the front.void
mergeParametersWith
(org.pentaho.di.core.parameters.NamedParams params, boolean replace) void
Builds a name - if no name is set, yet - from the filenamenextUndo()
Get the next undo transaction on the list.void
notifyObservers
(Object arg) int
Count the nr of databases in the transformation.int
nrNotes()
Gets the number of notes.Get the previous undo operation and change the undo pointervoid
raiseNote
(int p) Raises a note to the "top" of the list by removing the note at the specified index and re-inserting it at the end.Read shared objects.void
Removes the passed ContentChangedListener from the list of listeners.void
Add a listener to be notified of design-time changes to current directory variablevoid
removeDatabase
(int i) Removes a database from the transformation on a certain location.void
Removes the filename changed listener.void
removeNameChangedListener
(NameChangedListener listener) Removes the name changed listener.void
removeNote
(int i) Removes a note at a certain location (i.e.void
saveMetaStoreObjects
(Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) Deprecated.This method is empty since 2013.void
Saves shared objects, including databases, steps, partition schemas, slave servers, and cluster schemas, to a file.void
setAlwaysShowRunOptions
(boolean alwaysShowRunOptions) void
setAttribute
(String groupName, String key, String value) void
setAttributes
(String groupName, Map<String, String> attributes) void
void
setBowl
(org.pentaho.di.core.bowl.Bowl bowl) void
setCarteObjectId
(String containerObjectId) Sets the carte object id.void
final void
setChanged
(boolean ch) void
setChannelLogTable
(ChannelLogTable channelLogTable) Sets the channel log table for the job.void
setClearingLog
(boolean clearingLog) void
setCreatedDate
(Date createdDate) Sets the date the transformation was created.void
setCreatedUser
(String createdUser) Sets the user by whom the transformation was created.void
setDatabases
(List<org.pentaho.di.core.database.DatabaseMeta> databases) Sets the databases.void
setDescription
(String description) Set the description of the job.void
setExtendedDescription
(String extendedDescription) Set the description of the job.void
setFilename
(String newFilename) Set the filename of the jobprotected abstract void
setInternalFilenameKettleVariables
(org.pentaho.di.core.variables.VariableSpace var) Sets the internal filename kettle variables.void
Calls setInternalKettleVariables on the default object.abstract void
setInternalKettleVariables
(org.pentaho.di.core.variables.VariableSpace var) This method sets various internal kettle variables.protected abstract void
setInternalNameKettleVariable
(org.pentaho.di.core.variables.VariableSpace var) Sets the internal name kettle variable.void
setLogLevel
(org.pentaho.di.core.logging.LogLevel logLevel) Sets the log level.void
setMaxUndo
(int mu) Sets the maximum number of undo operations that are allowed.void
setMetaFileCache
(IMetaFileCache metaFileCache) void
setMetaStore
(org.pentaho.metastore.api.IMetaStore metaStore) void
setMetastoreLocatorOsgi
(org.pentaho.di.core.osgi.api.MetastoreLocatorOsgi metastoreLocatorOsgi) void
setModifiedDate
(Date modifiedDate) Sets the date the transformation was modified.void
setModifiedUser
(String modifiedUser) Sets the user who last modified the transformation.void
Set the name.void
setNamedClusterServiceOsgi
(org.pentaho.di.core.osgi.api.NamedClusterServiceOsgi namedClusterServiceOsgi) void
setObjectId
(org.pentaho.di.repository.ObjectId objectId) Set the database ID for this in the repository.void
setObjectRevision
(org.pentaho.di.repository.ObjectRevision objectRevision) void
setParameterValue
(String key, String value) void
setParentVariableSpace
(org.pentaho.di.core.variables.VariableSpace parent) void
setPrivateDatabases
(Set<String> privateDatabases) Sets private databases' namesvoid
setRepository
(Repository repository) Sets the repository.void
setRepositoryDirectory
(org.pentaho.di.repository.RepositoryDirectoryInterface directory) Sets the directory.void
setSafeModeEnabled
(boolean safeModeEnabled) void
setSharedObjects
(SharedObjects sharedObjects) Sets the shared objects.void
setSharedObjectsFile
(String sharedObjectsFile) Sets the shared objects file.void
setShowDialog
(boolean showDialog) void
setSlaveServers
(List<SlaveServer> slaveServers) Sets the slave servers.void
setVariable
(String variableName, String variableValue) void
setVersioningEnabled
(Boolean versioningEnabled) Set versioning enabledvoid
shareVariablesWith
(org.pentaho.di.core.variables.VariableSpace space) protected boolean
shouldOverwrite
(org.pentaho.di.core.gui.OverwritePrompter prompter, org.pentaho.di.core.Props props, String message, String rememberMessage) Get the next undo transaction on the list.View previous undo, don't change undo positionView current undo, don't change undo positionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.pentaho.di.core.EngineMetaInterface
getDefaultExtension, getFileType, getFilterExtensions, getFilterNames, getXML
Methods inherited from interface org.pentaho.di.core.logging.LoggingObjectInterface
getLogChannelId, getObjectType, isForcingSeparateLogging, isGatheringMetrics, setForcingSeparateLogging, setGatheringMetrics
Methods inherited from interface org.pentaho.di.core.logging.LoggingObjectLifecycleInterface
callAfterLog, callBeforeLog
Methods inherited from interface org.pentaho.di.repository.RepositoryElementInterface
getRepositoryElementType
Methods inherited from interface org.pentaho.di.core.variables.VariableSpace
environmentSubstitute
-
Field Details
-
TYPE_UNDO_CHANGE
public static final int TYPE_UNDO_CHANGEConstant = 1- See Also:
-
TYPE_UNDO_NEW
public static final int TYPE_UNDO_NEWConstant = 2- See Also:
-
TYPE_UNDO_DELETE
public static final int TYPE_UNDO_DELETEConstant = 3- See Also:
-
TYPE_UNDO_POSITION
public static final int TYPE_UNDO_POSITIONConstant = 4- See Also:
-
objectId
protected org.pentaho.di.repository.ObjectId objectId -
objectRevision
protected org.pentaho.di.repository.ObjectRevision objectRevision -
containerObjectId
-
name
-
description
-
extendedDescription
-
filename
-
directory
protected org.pentaho.di.repository.RepositoryDirectoryInterface directory -
bowl
protected org.pentaho.di.core.bowl.Bowl bowl -
repository
The repository to reference in the one-off case that it is needed -
databases
-
nameChangedListeners
-
filenameChangedListeners
-
contentChangedListeners
-
currentDirectoryChangedListeners
-
slaveServers
-
notes
-
channelLogTable
-
changedNotes
protected boolean changedNotes -
changedDatabases
protected boolean changedDatabases -
undo
-
attributesMap
-
embeddedMetaStore
-
variables
protected org.pentaho.di.core.variables.VariableSpace variables -
namedParams
protected org.pentaho.di.core.parameters.NamedParams namedParams -
logLevel
protected org.pentaho.di.core.logging.LogLevel logLevel -
metaStore
protected org.pentaho.metastore.api.IMetaStore metaStore -
createdUser
-
modifiedUser
-
createdDate
-
modifiedDate
-
namedClusterServiceOsgi
protected org.pentaho.di.core.osgi.api.NamedClusterServiceOsgi namedClusterServiceOsgi -
metastoreLocatorOsgi
protected org.pentaho.di.core.osgi.api.MetastoreLocatorOsgi metastoreLocatorOsgi -
namedClusterEmbedManager
-
changedFlag
-
max_undo
protected int max_undo -
undo_position
protected int undo_position -
runOptions
protected org.pentaho.di.base.AbstractMeta.RunOptions runOptions -
privateDatabases
The set of names of databases available only for this meta. The list is needed to distinguish connections when we load/save the meta in JCR repository. Should benull
if we use old meta
-
-
Constructor Details
-
AbstractMeta
public AbstractMeta()
-
-
Method Details
-
isShowDialog
public boolean isShowDialog() -
setShowDialog
public void setShowDialog(boolean showDialog) -
isAlwaysShowRunOptions
public boolean isAlwaysShowRunOptions() -
setAlwaysShowRunOptions
public void setAlwaysShowRunOptions(boolean alwaysShowRunOptions) -
getObjectId
public org.pentaho.di.repository.ObjectId getObjectId()- Specified by:
getObjectId
in interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
- Specified by:
getObjectId
in interfaceorg.pentaho.di.repository.RepositoryElementInterface
- Specified by:
getObjectId
in interfaceorg.pentaho.di.repository.RepositoryObjectInterface
-
setObjectId
public void setObjectId(org.pentaho.di.repository.ObjectId objectId) Description copied from interface:EngineMetaInterface
Set the database ID for this in the repository.- Specified by:
setObjectId
in interfaceEngineMetaInterface
- Specified by:
setObjectId
in interfaceorg.pentaho.di.repository.RepositoryElementInterface
- Parameters:
objectId
- the database ID for this in the repository
-
getContainerObjectId
Gets the container object id.- Specified by:
getContainerObjectId
in interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
- Returns:
- the carteObjectId
-
setCarteObjectId
Sets the carte object id.- Parameters:
containerObjectId
- the execution container Object id to set
-
getName
Get the name of the transformation.- Specified by:
getName
in interfaceEngineMetaInterface
- Specified by:
getName
in interfaceorg.pentaho.di.repository.RepositoryElementInterface
- Specified by:
getName
in interfaceorg.pentaho.di.repository.RepositoryObjectInterface
- Returns:
- The name of the transformation
-
setName
Set the name.- Specified by:
setName
in interfaceorg.pentaho.di.repository.RepositoryElementInterface
- Parameters:
newName
- The new name
-
getDescription
Gets the description of the job.- Specified by:
getDescription
in interfaceorg.pentaho.di.repository.RepositoryElementInterface
- Returns:
- The description of the job
-
setDescription
Set the description of the job.- Specified by:
setDescription
in interfaceorg.pentaho.di.repository.RepositoryElementInterface
- Parameters:
description
- The new description of the job
-
getExtendedDescription
Gets the extended description of the job.- Returns:
- The extended description of the job
-
setExtendedDescription
Set the description of the job.- Parameters:
extendedDescription
- The new extended description of the job
-
nameFromFilename
public void nameFromFilename()Builds a name - if no name is set, yet - from the filename- Specified by:
nameFromFilename
in interfaceEngineMetaInterface
-
getFilename
Gets the filename.- Specified by:
getFilename
in interfaceEngineMetaInterface
- Specified by:
getFilename
in interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
- Returns:
- filename
- See Also:
-
setFilename
Set the filename of the job- Specified by:
setFilename
in interfaceEngineMetaInterface
- Parameters:
newFilename
- The new filename of the job
-
getRepositoryDirectory
public org.pentaho.di.repository.RepositoryDirectoryInterface getRepositoryDirectory()Gets the directory.- Specified by:
getRepositoryDirectory
in interfaceEngineMetaInterface
- Specified by:
getRepositoryDirectory
in interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
- Specified by:
getRepositoryDirectory
in interfaceorg.pentaho.di.repository.RepositoryElementInterface
- Returns:
- Returns the directory.
-
setRepositoryDirectory
public void setRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface directory) Sets the directory.- Specified by:
setRepositoryDirectory
in interfaceorg.pentaho.di.repository.RepositoryElementInterface
- Parameters:
directory
- The directory to set.
-
getBowl
public org.pentaho.di.core.bowl.Bowl getBowl()- Specified by:
getBowl
in interfaceorg.pentaho.di.core.bowl.HasBowlInterface
-
setBowl
public void setBowl(org.pentaho.di.core.bowl.Bowl bowl) - Specified by:
setBowl
in interfaceorg.pentaho.di.core.bowl.HasBowlInterface
-
getRepository
Gets the repository.- Specified by:
getRepository
in interfaceHasRepositoryInterface
- Returns:
- the repository
-
setRepository
Sets the repository.- Specified by:
setRepository
in interfaceHasRepositoryInterface
- Parameters:
repository
- the repository to set
-
setInternalKettleVariables
public void setInternalKettleVariables()Calls setInternalKettleVariables on the default object.- Specified by:
setInternalKettleVariables
in interfaceEngineMetaInterface
-
setInternalKettleVariables
public abstract void setInternalKettleVariables(org.pentaho.di.core.variables.VariableSpace var) This method sets various internal kettle variables. -
setInternalFilenameKettleVariables
protected abstract void setInternalFilenameKettleVariables(org.pentaho.di.core.variables.VariableSpace var) Sets the internal filename kettle variables.- Parameters:
var
- the new internal filename kettle variables
-
findDatabase
Find a database connection by it's name- Specified by:
findDatabase
in interfaceHasDatabasesInterface
- Parameters:
name
- The database name to look for- Returns:
- The database connection or null if nothing was found.
-
nrDatabases
public int nrDatabases()Description copied from interface:HasDatabasesInterface
Count the nr of databases in the transformation.- Specified by:
nrDatabases
in interfaceHasDatabasesInterface
- Returns:
- The nr of databases
-
getDatabase
public org.pentaho.di.core.database.DatabaseMeta getDatabase(int i) Description copied from interface:HasDatabasesInterface
Retrieves a database connection information a a certain location.- Specified by:
getDatabase
in interfaceHasDatabasesInterface
- Parameters:
i
- The database number.- Returns:
- The database connection information.
-
importFromMetaStore
public void importFromMetaStore() throws org.pentaho.metastore.api.exceptions.MetaStoreException, org.pentaho.di.core.exception.KettlePluginException- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
org.pentaho.di.core.exception.KettlePluginException
-
addNameChangedListener
Adds the name changed listener.- Parameters:
listener
- the listener
-
removeNameChangedListener
Removes the name changed listener.- Parameters:
listener
- the listener
-
clearNameChangedListeners
public void clearNameChangedListeners()Removes all the name changed listeners -
fireNameChangedListeners
Fire name changed listeners.- Parameters:
oldName
- the old namenewName
- the new name
-
addFilenameChangedListener
Adds the filename changed listener.- Parameters:
listener
- the listener
-
removeFilenameChangedListener
Removes the filename changed listener.- Parameters:
listener
- the listener
-
fireFilenameChangedListeners
Fire filename changed listeners.- Parameters:
oldFilename
- the old filenamenewFilename
- the new filename
-
addContentChangedListener
Adds the passed ContentChangedListener to the list of listeners.- Parameters:
listener
-
-
removeContentChangedListener
Removes the passed ContentChangedListener from the list of listeners.- Parameters:
listener
-
-
getContentChangedListeners
-
fireContentChangedListeners
protected void fireContentChangedListeners()Fire content changed listeners. -
fireContentChangedListeners
protected void fireContentChangedListeners(boolean ch) -
addCurrentDirectoryChangedListener
Remove listener -
removeCurrentDirectoryChangedListener
Add a listener to be notified of design-time changes to current directory variable -
clearCurrentDirectoryChangedListeners
public void clearCurrentDirectoryChangedListeners() -
fireCurrentDirectoryChanged
Notify listeners of a change in current directory. -
addOrReplaceSlaveServer
Add a new slave server to the transformation if that didn't exist yet. Otherwise, replace it.- Parameters:
slaveServer
- The slave server to be added.
-
getSlaveServers
Gets a list of slave servers.- Specified by:
getSlaveServers
in interfaceHasSlaveServersInterface
- Returns:
- the slaveServer list
-
setSlaveServers
Sets the slave servers.- Parameters:
slaveServers
- the slaveServers to set
-
findSlaveServer
Find a slave server using the name- Parameters:
serverString
- the name of the slave server- Returns:
- the slave server or null if we couldn't spot an approriate entry.
-
getSlaveServerNames
Gets an array of slave server names.- Returns:
- An array list slave server names
-
addUndo
public void addUndo(Object[] from, Object[] to, int[] pos, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr, int type_of_change, boolean nextAlso) Description copied from interface:UndoInterface
Add an undo operation to the undo list- Specified by:
addUndo
in interfaceUndoInterface
- Parameters:
from
- array of objects representing the old stateto
- array of objectes representing the new statepos
- An array of object locationsprev
- An array of points representing the old positionscurr
- An array of points representing the new positionstype_of_change
- The type of change that's being done to the transformation.nextAlso
- indicates that the next undo operation needs to follow this one.
-
clearUndo
public void clearUndo()Clear undo. -
nextUndo
Description copied from interface:UndoInterface
Get the next undo transaction on the list. Change the undo pointer.- Specified by:
nextUndo
in interfaceUndoInterface
- Returns:
- The next undo transaction (for redo)
-
viewNextUndo
Description copied from interface:UndoInterface
Get the next undo transaction on the list.- Specified by:
viewNextUndo
in interfaceUndoInterface
- Returns:
- The next undo transaction (for redo)
-
previousUndo
Description copied from interface:UndoInterface
Get the previous undo operation and change the undo pointer- Specified by:
previousUndo
in interfaceUndoInterface
- Returns:
- The undo transaction to be performed.
-
viewThisUndo
View current undo, don't change undo position- Specified by:
viewThisUndo
in interfaceUndoInterface
- Returns:
- The current undo transaction
-
viewPreviousUndo
Description copied from interface:UndoInterface
View previous undo, don't change undo position- Specified by:
viewPreviousUndo
in interfaceUndoInterface
- Returns:
- The previous undo transaction
-
getMaxUndo
public int getMaxUndo()Description copied from interface:UndoInterface
Get the maximum number of undo operations possible- Specified by:
getMaxUndo
in interfaceUndoInterface
- Returns:
- The maximum number of undo operations that are allowed.
-
setMaxUndo
public void setMaxUndo(int mu) Description copied from interface:UndoInterface
Sets the maximum number of undo operations that are allowed.- Specified by:
setMaxUndo
in interfaceUndoInterface
- Parameters:
mu
- The maximum number of undo operations that are allowed.
-
getUndoSize
public int getUndoSize()Gets the undo size.- Returns:
- the undo size
-
getEmbeddedMetaStore
-
setAttributesMap
- Specified by:
setAttributesMap
in interfaceorg.pentaho.di.core.AttributesInterface
-
getAttributesMap
- Specified by:
getAttributesMap
in interfaceorg.pentaho.di.core.AttributesInterface
-
setAttribute
- Specified by:
setAttribute
in interfaceorg.pentaho.di.core.AttributesInterface
-
setAttributes
- Specified by:
setAttributes
in interfaceorg.pentaho.di.core.AttributesInterface
-
getAttributes
- Specified by:
getAttributes
in interfaceorg.pentaho.di.core.AttributesInterface
-
getAttribute
- Specified by:
getAttribute
in interfaceorg.pentaho.di.core.AttributesInterface
-
addNote
Add a new note at a certain location (i.e. the specified index). Also marks that the notes have changed.- Parameters:
p
- The index into the notes listni
- The note to be added.
-
addNote
Add a new note. Also marks that the notes have changed.- Parameters:
ni
- The note to be added.
-
getNote
Find the note that is located on a certain point on the canvas.- Parameters:
x
- the x-coordinate of the point queriedy
- the y-coordinate of the point queried- Returns:
- The note information if a note is located at the point. Otherwise, if nothing was found: null.
-
getNote
Gets the note.- Parameters:
i
- the i- Returns:
- the note
-
getNotes
Gets the notes.- Returns:
- the notes
-
getSelectedNotes
Gets a list of all selected notes.- Returns:
- A list of all the selected notes.
-
indexOfNote
Finds the location (index) of the specified note.- Parameters:
ni
- The note queried- Returns:
- The location of the note, or -1 if nothing was found.
-
lowerNote
public void lowerNote(int p) Lowers a note to the "bottom" of the list by removing the note at the specified index and re-inserting it at the front. Also marks that the notes have changed.- Parameters:
p
- the index into the notes list.
-
nrNotes
public int nrNotes()Gets the number of notes.- Returns:
- The number of notes.
-
raiseNote
public void raiseNote(int p) Raises a note to the "top" of the list by removing the note at the specified index and re-inserting it at the end. Also marks that the notes have changed.- Parameters:
p
- the index into the notes list.
-
removeNote
public void removeNote(int i) Removes a note at a certain location (i.e. the specified index). Also marks that the notes have changed.- Parameters:
i
- The index into the notes list
-
haveNotesChanged
public boolean haveNotesChanged()Checks whether or not any of the notes have been changed.- Returns:
- true if the notes have been changed, false otherwise
-
getNoteIndexes
Get an array of the locations of an array of notes- Parameters:
notes
- An array of notes- Returns:
- an array of the locations of an array of notes
-
getChannelLogTable
Gets the channel log table for the job.- Returns:
- the channel log table for the job.
-
addOrReplaceDatabase
public void addOrReplaceDatabase(org.pentaho.di.core.database.DatabaseMeta databaseMeta) Description copied from interface:HasDatabasesInterface
Add a database connection to the transformation if that connection didn't exists yet. Otherwise, replace the connection in the transformation- Specified by:
addOrReplaceDatabase
in interfaceHasDatabasesInterface
- Parameters:
databaseMeta
- The database connection information.
-
addDatabase
protected void addDatabase(org.pentaho.di.core.database.DatabaseMeta databaseMeta, boolean replace) -
addDatabase
public void addDatabase(org.pentaho.di.core.database.DatabaseMeta ci) Description copied from interface:HasDatabasesInterface
Add a database connection to the transformation.- Specified by:
addDatabase
in interfaceHasDatabasesInterface
- Parameters:
ci
- The database connection information.
-
addDatabase
public void addDatabase(int p, org.pentaho.di.core.database.DatabaseMeta ci) Description copied from interface:HasDatabasesInterface
Add a database connection to the transformation on a certain location.- Specified by:
addDatabase
in interfaceHasDatabasesInterface
- Parameters:
p
- The locationci
- The database connection information.
-
getDatabases
Returns a list of the databases.- Specified by:
getDatabases
in interfaceHasDatabasesInterface
- Returns:
- Returns the databases.
-
getDatabaseNames
Gets the database names.- Returns:
- the database names
-
indexOfDatabase
public int indexOfDatabase(org.pentaho.di.core.database.DatabaseMeta di) Description copied from interface:HasDatabasesInterface
Find the location of database- Specified by:
indexOfDatabase
in interfaceHasDatabasesInterface
- Parameters:
di
- The database queried- Returns:
- The location of the database, -1 if nothing was found.
-
setDatabases
Sets the databases.- Specified by:
setDatabases
in interfaceHasDatabasesInterface
- Parameters:
databases
- The databases to set.
-
haveConnectionsChanged
public boolean haveConnectionsChanged()Description copied from interface:HasDatabasesInterface
Checks whether or not the connections have changed.- Specified by:
haveConnectionsChanged
in interfaceHasDatabasesInterface
- Returns:
- True if the connections have been changed.
-
removeDatabase
public void removeDatabase(int i) Description copied from interface:HasDatabasesInterface
Removes a database from the transformation on a certain location.- Specified by:
removeDatabase
in interfaceHasDatabasesInterface
- Parameters:
i
- The location
-
clearChangedDatabases
public void clearChangedDatabases()Clears the flags for whether the transformation's databases have changed. -
setChannelLogTable
Sets the channel log table for the job.- Parameters:
channelLogTable
- the channelLogTable to set
-
copyVariablesFrom
public void copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space) - Specified by:
copyVariablesFrom
in interfaceorg.pentaho.di.core.variables.VariableSpace
-
environmentSubstitute
- Specified by:
environmentSubstitute
in interfaceorg.pentaho.di.core.variables.VariableSpace
-
environmentSubstitute
- Specified by:
environmentSubstitute
in interfaceorg.pentaho.di.core.variables.VariableSpace
-
fieldSubstitute
public String fieldSubstitute(String aString, org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] rowData) throws org.pentaho.di.core.exception.KettleValueException - Specified by:
fieldSubstitute
in interfaceorg.pentaho.di.core.variables.VariableSpace
- Throws:
org.pentaho.di.core.exception.KettleValueException
-
getParentVariableSpace
public org.pentaho.di.core.variables.VariableSpace getParentVariableSpace()- Specified by:
getParentVariableSpace
in interfaceorg.pentaho.di.core.variables.VariableSpace
-
setParentVariableSpace
public void setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent) - Specified by:
setParentVariableSpace
in interfaceorg.pentaho.di.core.variables.VariableSpace
-
getVariable
- Specified by:
getVariable
in interfaceorg.pentaho.di.core.variables.VariableSpace
-
getVariable
- Specified by:
getVariable
in interfaceorg.pentaho.di.core.variables.VariableSpace
-
getBooleanValueOfVariable
- Specified by:
getBooleanValueOfVariable
in interfaceorg.pentaho.di.core.variables.VariableSpace
-
initializeVariablesFrom
public void initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent) - Specified by:
initializeVariablesFrom
in interfaceorg.pentaho.di.core.variables.VariableSpace
-
listVariables
- Specified by:
listVariables
in interfaceorg.pentaho.di.core.variables.VariableSpace
-
setVariable
- Specified by:
setVariable
in interfaceorg.pentaho.di.core.variables.VariableSpace
-
injectVariables
- Specified by:
injectVariables
in interfaceorg.pentaho.di.core.variables.VariableSpace
-
addParameterDefinition
public void addParameterDefinition(String key, String defValue, String description) throws org.pentaho.di.core.parameters.DuplicateParamException - Specified by:
addParameterDefinition
in interfaceorg.pentaho.di.core.parameters.NamedParams
- Throws:
org.pentaho.di.core.parameters.DuplicateParamException
-
getParameterDescription
public String getParameterDescription(String key) throws org.pentaho.di.core.parameters.UnknownParamException - Specified by:
getParameterDescription
in interfaceorg.pentaho.di.core.parameters.NamedParams
- Throws:
org.pentaho.di.core.parameters.UnknownParamException
-
getParameterDefault
public String getParameterDefault(String key) throws org.pentaho.di.core.parameters.UnknownParamException - Specified by:
getParameterDefault
in interfaceorg.pentaho.di.core.parameters.NamedParams
- Throws:
org.pentaho.di.core.parameters.UnknownParamException
-
getParameterValue
public String getParameterValue(String key) throws org.pentaho.di.core.parameters.UnknownParamException - Specified by:
getParameterValue
in interfaceorg.pentaho.di.core.parameters.NamedParams
- Throws:
org.pentaho.di.core.parameters.UnknownParamException
-
listParameters
- Specified by:
listParameters
in interfaceorg.pentaho.di.core.parameters.NamedParams
-
setParameterValue
public void setParameterValue(String key, String value) throws org.pentaho.di.core.parameters.UnknownParamException - Specified by:
setParameterValue
in interfaceorg.pentaho.di.core.parameters.NamedParams
- Throws:
org.pentaho.di.core.parameters.UnknownParamException
-
eraseParameters
public void eraseParameters()- Specified by:
eraseParameters
in interfaceorg.pentaho.di.core.parameters.NamedParams
-
clearParameters
public void clearParameters()- Specified by:
clearParameters
in interfaceorg.pentaho.di.core.parameters.NamedParams
-
copyParametersFrom
public void copyParametersFrom(org.pentaho.di.core.parameters.NamedParams params) - Specified by:
copyParametersFrom
in interfaceorg.pentaho.di.core.parameters.NamedParams
-
mergeParametersWith
public void mergeParametersWith(org.pentaho.di.core.parameters.NamedParams params, boolean replace) - Specified by:
mergeParametersWith
in interfaceorg.pentaho.di.core.parameters.NamedParams
-
activateParameters
public void activateParameters()- Specified by:
activateParameters
in interfaceorg.pentaho.di.core.parameters.NamedParams
-
getLogLevel
public org.pentaho.di.core.logging.LogLevel getLogLevel()- Specified by:
getLogLevel
in interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
-
setLogLevel
public void setLogLevel(org.pentaho.di.core.logging.LogLevel logLevel) Sets the log level.- Parameters:
logLevel
- the new log level
-
getMetaStore
public org.pentaho.metastore.api.IMetaStore getMetaStore() -
setMetaStore
public void setMetaStore(org.pentaho.metastore.api.IMetaStore metaStore) -
setInternalNameKettleVariable
protected abstract void setInternalNameKettleVariable(org.pentaho.di.core.variables.VariableSpace var) Sets the internal name kettle variable.- Parameters:
var
- the new internal name kettle variable
-
getCreatedDate
Gets the date the transformation was created.- Specified by:
getCreatedDate
in interfaceEngineMetaInterface
- Returns:
- the date the transformation was created.
-
setCreatedDate
Sets the date the transformation was created.- Specified by:
setCreatedDate
in interfaceEngineMetaInterface
- Parameters:
createdDate
- The creation date to set.
-
setCreatedUser
Sets the user by whom the transformation was created.- Specified by:
setCreatedUser
in interfaceEngineMetaInterface
- Parameters:
createdUser
- The user to set.
-
getCreatedUser
Gets the user by whom the transformation was created.- Specified by:
getCreatedUser
in interfaceEngineMetaInterface
- Returns:
- the user by whom the transformation was created.
-
setModifiedDate
Sets the date the transformation was modified.- Specified by:
setModifiedDate
in interfaceEngineMetaInterface
- Parameters:
modifiedDate
- The modified date to set.
-
getModifiedDate
Gets the date the transformation was modified.- Specified by:
getModifiedDate
in interfaceEngineMetaInterface
- Returns:
- the date the transformation was modified.
-
setModifiedUser
Sets the user who last modified the transformation.- Specified by:
setModifiedUser
in interfaceEngineMetaInterface
- Parameters:
modifiedUser
- The user name to set.
-
getModifiedUser
Gets the user who last modified the transformation.- Specified by:
getModifiedUser
in interfaceEngineMetaInterface
- Returns:
- the user who last modified the transformation.
-
clear
public void clear() -
clearChanged
public void clearChanged()Description copied from interface:EngineMetaInterface
Clears the changed flag of this.- Specified by:
clearChanged
in interfaceChangedFlagInterface
- Specified by:
clearChanged
in interfaceEngineMetaInterface
-
setChanged
public void setChanged()- Specified by:
setChanged
in interfaceChangedFlagInterface
-
setChanged
public final void setChanged(boolean ch) - Specified by:
setChanged
in interfaceChangedFlagInterface
-
addObserver
-
deleteObserver
-
notifyObservers
-
canSave
public boolean canSave()Checks whether the job can be saved. For JobMeta, this method always returns true- Specified by:
canSave
in interfaceEngineMetaInterface
- Returns:
- true
- See Also:
-
hasChanged
public boolean hasChanged()- Specified by:
hasChanged
in interfaceChangedFlagInterface
-
getRegistrationDate
Gets the registration date for the transformation. For AbstractMeta, this method always returns null.- Specified by:
getRegistrationDate
in interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
- Returns:
- null
-
getParent
public org.pentaho.di.core.logging.LoggingObjectInterface getParent()Gets the interface to the parent log object. For AbstractMeta, this method always returns null.- Specified by:
getParent
in interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
- Returns:
- null
- See Also:
-
LoggingObjectInterface.getParent()
-
getObjectName
- Specified by:
getObjectName
in interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
-
getObjectCopy
- Specified by:
getObjectCopy
in interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
-
getObjectRevision
public org.pentaho.di.repository.ObjectRevision getObjectRevision()- Specified by:
getObjectRevision
in interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
- Specified by:
getObjectRevision
in interfaceorg.pentaho.di.repository.RepositoryElementInterface
-
setObjectRevision
public void setObjectRevision(org.pentaho.di.repository.ObjectRevision objectRevision) - Specified by:
setObjectRevision
in interfaceorg.pentaho.di.repository.RepositoryElementInterface
-
shouldOverwrite
-
hasMissingPlugins
public boolean hasMissingPlugins() -
getPrivateDatabases
Returns the set of databases available only for this meta or null if it was not initialized. Note, that the internal collection is returned with no protection wrapper!- Returns:
- nonSharableDatabases
-
setPrivateDatabases
Sets private databases' names- Parameters:
privateDatabases
- - The list of databases available only for this meta
-
saveMetaStoreObjects
@Deprecated public void saveMetaStoreObjects(Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) throws org.pentaho.metastore.api.exceptions.MetaStoreException Deprecated.This method is empty since 2013.This method needs to be called to store those objects which are used and referenced in the transformation metadata but not saved in the XML serialization. For example, the Kettle data service definition is referenced by name but not stored when getXML() is called.- Parameters:
metaStore
- The store to save to- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
- in case there is an error.
-
compare
-
hashCode
public int hashCode() -
getNamedClusterServiceOsgi
public org.pentaho.di.core.osgi.api.NamedClusterServiceOsgi getNamedClusterServiceOsgi() -
setNamedClusterServiceOsgi
public void setNamedClusterServiceOsgi(org.pentaho.di.core.osgi.api.NamedClusterServiceOsgi namedClusterServiceOsgi) -
getMetastoreLocatorOsgi
public org.pentaho.di.core.osgi.api.MetastoreLocatorOsgi getMetastoreLocatorOsgi() -
setMetastoreLocatorOsgi
public void setMetastoreLocatorOsgi(org.pentaho.di.core.osgi.api.MetastoreLocatorOsgi metastoreLocatorOsgi) -
getNamedClusterEmbedManager
-
disposeEmbeddedMetastoreProvider
public void disposeEmbeddedMetastoreProvider() -
getEmbeddedMetastoreProviderKey
-
setVersioningEnabled
Description copied from interface:EngineMetaInterface
Set versioning enabled- Specified by:
setVersioningEnabled
in interfaceEngineMetaInterface
- Parameters:
versioningEnabled
- is versioning enabled
-
getVersioningEnabled
Description copied from interface:EngineMetaInterface
Is versioning enabled.- Specified by:
getVersioningEnabled
in interfaceEngineMetaInterface
- Returns:
- is versioning enabled
-
isClearingLog
public boolean isClearingLog() -
setClearingLog
public void setClearingLog(boolean clearingLog) -
isSafeModeEnabled
public boolean isSafeModeEnabled() -
setSafeModeEnabled
public void setSafeModeEnabled(boolean safeModeEnabled) -
getMetaFileCache
-
setMetaFileCache
-