|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.core.changed.ChangedFlag org.pentaho.di.job.JobMeta
public class JobMeta
Defines a Job and provides methods to load, save, verify, etc.
Field Summary | |
---|---|
boolean[] |
max
|
static RepositoryObjectType |
REPOSITORY_ELEMENT_TYPE
|
static String |
STRING_SPECIAL
|
static String |
STRING_SPECIAL_DUMMY
|
static String |
STRING_SPECIAL_ERROR
|
static String |
STRING_SPECIAL_OK
|
static String |
STRING_SPECIAL_START
|
static int |
TYPE_UNDO_CHANGE
|
static int |
TYPE_UNDO_DELETE
|
static int |
TYPE_UNDO_NEW
|
static int |
TYPE_UNDO_POSITION
|
static String |
XML_TAG
|
Constructor Summary | |
---|---|
JobMeta()
|
|
JobMeta(InputStream inputStream,
Repository rep,
OverwritePrompter prompter)
|
|
JobMeta(Node jobnode,
Repository rep,
boolean ignoreRepositorySharedObjects,
OverwritePrompter prompter)
Create a new JobMeta object by loading it from a a DOM node. |
|
JobMeta(Node jobnode,
Repository rep,
OverwritePrompter prompter)
Create a new JobMeta object by loading it from a a DOM node. |
|
JobMeta(String fname,
Repository rep)
|
|
JobMeta(String fname,
Repository rep,
OverwritePrompter prompter)
|
|
JobMeta(VariableSpace parentSpace,
String fname,
Repository rep,
OverwritePrompter prompter)
Load the job from the XML file specified. |
Method Summary | |
---|---|
void |
activateParameters()
Activate the currently set parameters |
void |
addDatabase(DatabaseMeta ci)
Add a database connection to the transformation. |
void |
addDatabase(int p,
DatabaseMeta ci)
Add a database connection to the transformation on a certain location. |
void |
addDefaults()
|
void |
addFilenameChangedListener(FilenameChangedListener listener)
|
void |
addJobEntry(int p,
JobEntryCopy si)
|
void |
addJobEntry(JobEntryCopy je)
|
void |
addJobHop(int p,
JobHopMeta hi)
|
void |
addJobHop(JobHopMeta hi)
|
void |
addNameChangedListener(NameChangedListener listener)
|
void |
addNote(int p,
NotePadMeta ni)
|
void |
addNote(NotePadMeta ni)
|
void |
addOrReplaceDatabase(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)
Add a parameter definition to this set. |
void |
addUndo(Object[] from,
Object[] to,
int[] pos,
Point[] prev,
Point[] curr,
int type_of_change,
boolean nextAlso)
Add an undo operation to the undo list |
boolean |
canSave()
|
void |
checkJobEntries(List<CheckResultInterface> remarks,
boolean only_selected,
ProgressMonitorListener monitor)
Check all job entries within the job. |
void |
clear()
|
void |
clearChanged()
|
void |
clearParameters()
Clear all parameters |
void |
clearUndo()
|
Object |
clone()
|
int |
compare(JobMeta j1,
JobMeta j2)
Compares two transformation on name, filename |
int |
compareTo(JobMeta o)
|
List<JobEntryInterface> |
composeJobEntryInterfaceList()
Create a unique list of job entry interfaces |
void |
copyParametersFrom(NamedParams params)
Copy params to these named parameters (clearing out first). |
void |
copyVariablesFrom(VariableSpace space)
Copy the variables from another space, without initializing with the defaults. |
int |
countEntries(String name)
|
static JobEntryCopy |
createDummyEntry()
|
static JobEntryCopy |
createStartEntry()
|
String |
environmentSubstitute(String aString)
Substitute the string using the current variable space. |
String[] |
environmentSubstitute(String[] aString)
Replaces environment variables in an array of strings. |
boolean |
equals(Object obj)
|
void |
eraseParameters()
Clear the values. |
String |
exportResources(VariableSpace space,
Map<String,ResourceDefinition> definitions,
ResourceNamingInterface namingInterface,
Repository repository)
Exports the object to a flat-file system, adding content with filename keys to a set of definitions. |
DatabaseMeta |
findDatabase(String name)
Find a database connection by it's name |
static JobEntryInterface |
findJobEntry(List<JobEntryInterface> jobentries,
ObjectId id_jobentry)
Find a jobentry with a certain ID in a list of job entries. |
JobEntryCopy |
findJobEntry(String full_name_nr)
|
JobEntryCopy |
findJobEntry(String name,
int nr,
boolean searchHiddenToo)
Find an existing JobEntryCopy by it's name and number |
static JobEntryCopy |
findJobEntryCopy(List<JobEntryCopy> jobcopies,
ObjectId id_jobentry_copy)
Find a jobentrycopy with a certain ID in a list of job entry copies. |
JobHopMeta |
findJobHop(JobEntryCopy from,
JobEntryCopy to)
|
JobHopMeta |
findJobHop(JobEntryCopy from,
JobEntryCopy to,
boolean includeDisabled)
|
JobHopMeta |
findJobHop(String name)
|
JobHopMeta |
findJobHopFrom(JobEntryCopy jge)
|
JobHopMeta |
findJobHopTo(JobEntryCopy jge)
|
int |
findMaxNr(String name)
|
JobEntryCopy |
findNextJobEntry(JobEntryCopy from,
int cnt)
|
int |
findNrNextJobEntries(JobEntryCopy from)
|
int |
findNrPrevJobEntries(JobEntryCopy from)
|
int |
findNrPrevJobEntries(JobEntryCopy to,
boolean info)
|
JobEntryCopy |
findPrevJobEntry(JobEntryCopy to,
int nr)
|
JobEntryCopy |
findPrevJobEntry(JobEntryCopy to,
int nr,
boolean info)
|
SlaveServer |
findSlaveServer(String serverString)
Find a slave server using the name |
JobEntryCopy |
findStart()
|
int |
findUnusedNr(String name)
|
JobEntryCopy[] |
getAllJobGraphEntries(String name)
|
JobHopMeta[] |
getAllJobHopsUsing(String name)
|
String |
getAlternativeJobentryName(String entryname)
Proposes an alternative job entry name when the original already exists... |
String[] |
getArguments()
|
boolean |
getBooleanValueOfVariable(String variableName,
boolean defaultValue)
This method returns a boolean for the new variable check boxes. |
ChannelLogTable |
getChannelLogTable()
|
String |
getContainerObjectId()
|
Date |
getCreatedDate()
|
String |
getCreatedUser()
|
DatabaseMeta |
getDatabase(int i)
Retrieves a database connection information a a certain location. |
String[] |
getDatabaseNames()
|
List<DatabaseMeta> |
getDatabases()
Get an ArrayList of defined DatabaseInfo objects. |
String |
getDefaultExtension()
|
String |
getDescription()
|
JobEntryCopy |
getDummy()
|
int[] |
getEntryIndexes(List<JobEntryCopy> entries)
|
String |
getExtendedDescription()
|
String |
getFilename()
|
String |
getFileType()
|
String[] |
getFilterExtensions()
|
String[] |
getFilterNames()
|
List<JobEntryCopy> |
getJobCopies()
|
JobEntryCopy |
getJobEntry(int i)
|
JobEntryCopy |
getJobEntryCopy(int x,
int y,
int iconsize)
|
JobEntryLogTable |
getJobEntryLogTable()
|
JobHopMeta |
getJobHop(int i)
|
List<JobHopMeta> |
getJobhops()
|
JobLogTable |
getJobLogTable()
|
int |
getJobstatus()
Get the status of the job |
String |
getJobversion()
|
String |
getLogChannelId()
|
LogLevel |
getLogLevel()
|
List<LogTableInterface> |
getLogTables()
|
Point |
getMaximum()
|
int |
getMaxUndo()
Get the maximum number of undo operations possible |
Point |
getMinimum()
Get the minimum point on the canvas of a job |
Date |
getModifiedDate()
|
String |
getModifiedUser()
|
String |
getName()
The name of the repository object |
NotePadMeta |
getNote(int i)
|
NotePadMeta |
getNote(int x,
int y)
|
int[] |
getNoteIndexes(List<NotePadMeta> notes)
Get an array of the locations of an array of notes |
List<NotePadMeta> |
getNotes()
|
String |
getObjectCopy()
|
ObjectId |
getObjectId()
The id of the object |
String |
getObjectName()
|
ObjectRevision |
getObjectRevision()
|
LoggingObjectType |
getObjectType()
|
String |
getParameterDefault(String key)
Get the default value of a parameter. |
String |
getParameterDescription(String key)
Get the description of a parameter. |
String |
getParameterValue(String key)
Get the value of a parameter. |
LoggingObjectInterface |
getParent()
|
VariableSpace |
getParentVariableSpace()
Get the parent of the variable space. |
Date |
getRegistrationDate()
Stub |
Repository |
getRepository()
|
RepositoryDirectoryInterface |
getRepositoryDirectory()
|
RepositoryObjectType |
getRepositoryElementType()
|
List<ResourceReference> |
getResourceDependencies()
|
List<JobEntryCopy> |
getSelectedEntries()
|
Point[] |
getSelectedLocations()
|
Point[] |
getSelectedNoteLocations()
Get all the selected note locations |
List<NotePadMeta> |
getSelectedNotes()
|
SharedObjects |
getSharedObjects()
|
String |
getSharedObjectsFile()
|
String[] |
getSlaveServerNames()
|
List<SlaveServer> |
getSlaveServers()
|
List<SQLStatement> |
getSQLStatements(Repository repository,
ProgressMonitorListener monitor)
Builds a list of all the SQL statements that this transformation needs in order to work properly. |
JobEntryCopy |
getStart()
|
List<StringSearchResult> |
getStringList(boolean searchSteps,
boolean searchDatabases,
boolean searchNotes)
Get a list of all the strings used in this job. |
int |
getUndoSize()
|
List<String> |
getUsedVariables()
|
String |
getVariable(String variableName)
Get the value of a variable. |
String |
getVariable(String variableName,
String defaultValue)
Get the value of a variable with a default in case the variable is not found. |
String |
getXML()
Describes the Object implementing this interface as XML |
boolean |
hasChanged()
|
boolean |
hasLoop(JobEntryCopy entry)
|
boolean |
hasLoop(JobEntryCopy entry,
JobEntryCopy lookup)
|
boolean |
hasRepositoryReferences()
|
boolean |
haveConnectionsChanged()
Checks whether or not the connections have changed. |
boolean |
haveJobEntriesChanged()
|
boolean |
haveJobHopsChanged()
|
boolean |
haveNotesChanged()
|
int |
indexOfDatabase(DatabaseMeta di)
Find the location of database |
int |
indexOfJobEntry(JobEntryCopy ge)
|
int |
indexOfJobHop(JobHopMeta he)
|
int |
indexOfNote(NotePadMeta ni)
|
void |
initializeVariablesFrom(VariableSpace parent)
Initialize variable space using the defaults, copy over the variables from the parent (using copyVariablesFrom()), after this the "injected" variables should be inserted (injectVariables()). |
void |
injectVariables(Map<String,String> prop)
Inject variables. |
boolean |
isBatchIdPassed()
|
boolean |
isDatabaseConnectionUsed(DatabaseMeta databaseMeta)
This method asks all steps in the transformation whether or not the specified database connection is used. |
boolean |
isEntryUsedInHops(JobEntryCopy jge)
|
boolean |
isFileReference()
|
static boolean |
isFileReference(String fileName,
String transName)
|
boolean |
isRepReference()
|
static boolean |
isRepReference(String fileName,
String transName)
|
String[] |
listParameters()
List the parameters. |
String[] |
listVariables()
List the variables (not the values) that are currently in the variable space. |
void |
loadXML(Node jobnode,
Repository rep,
boolean ignoreRepositorySharedObjects,
OverwritePrompter prompter)
Load a block of XML from an DOM node. |
void |
loadXML(Node jobnode,
Repository rep,
OverwritePrompter prompter)
|
void |
lookupRepositoryReferences(Repository repository)
Look up the references after import |
void |
lowerNote(int p)
|
void |
nameFromFilename()
Builds a name - if no name is set, yet - from the filename |
TransAction |
nextUndo()
Get the next undo transaction on the list. |
int |
nrDatabases()
Count the nr of databases in the transformation. |
int |
nrJobEntries()
|
int |
nrJobHops()
|
int |
nrNotes()
|
TransAction |
previousUndo()
Get the previous undo operation and change the undo pointer |
void |
raiseNote(int p)
|
SharedObjects |
readSharedObjects()
|
Object |
realClone(boolean doClear)
|
void |
removeDatabase(int i)
Removes a database from the transformation on a certain location. |
void |
removeFilenameChangedListener(FilenameChangedListener listener)
|
void |
removeJobEntry(int i)
|
void |
removeJobHop(int i)
|
void |
removeNameChangedListener(NameChangedListener listener)
|
void |
removeNote(int i)
|
void |
renameJobEntryIfNameCollides(JobEntryCopy je)
See if the name of the supplied job entry copy doesn't collide with any other job entry copy in the job. |
void |
saveSharedObjects()
|
void |
selectAll()
|
void |
setArguments(String[] arguments)
|
void |
setBatchIdPassed(boolean batchIdPassed)
|
void |
setCarteObjectId(String containerObjectId)
|
void |
setChanged(boolean ch)
|
void |
setChannelLogTable(ChannelLogTable channelLogTable)
|
void |
setCreatedDate(Date createdDate)
|
void |
setCreatedUser(String createdUser)
|
void |
setDatabases(List<DatabaseMeta> 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 job |
void |
setInternalKettleVariables()
Calls setInternalKettleVariables on the default object. |
void |
setInternalKettleVariables(VariableSpace var)
This method sets various internal kettle variables that can be used by the transformation. |
void |
setJobEntry(int idx,
JobEntryCopy jec)
|
void |
setJobEntryLogTable(JobEntryLogTable jobEntryLogTable)
|
void |
setJobLogTable(JobLogTable jobLogTable)
|
void |
setJobstatus(int jobStatus)
Set the status of the job. |
void |
setJobversion(String jobVersion)
Set the version of the job. |
void |
setLogLevel(LogLevel logLevel)
|
void |
setMaxUndo(int mu)
Sets the maximum number of undo operations that are allowed. |
void |
setModifiedDate(Date modifiedDate)
|
void |
setModifiedUser(String modifiedUser)
|
void |
setName(String newName)
Set the name of the job. |
void |
setObjectId(ObjectId objectId)
|
void |
setObjectRevision(ObjectRevision objectRevision)
|
void |
setParameterValue(String key,
String value)
Set the value of a parameter. |
void |
setParentVariableSpace(VariableSpace parent)
Set the parent variable space |
void |
setRepository(Repository repository)
|
void |
setRepositoryDirectory(RepositoryDirectoryInterface directory)
|
void |
setSharedObjects(SharedObjects sharedObjects)
|
void |
setSharedObjectsFile(String sharedObjectsFile)
|
void |
setSlaveServers(List<SlaveServer> slaveServers)
|
void |
setVariable(String variableName,
String variableValue)
Sets a variable in the Kettle Variables list. |
void |
shareVariablesWith(VariableSpace space)
Share a variable space from another variable space. |
String |
toString()
|
void |
unselectAll()
|
TransAction |
viewNextUndo()
Get the next undo transaction on the list. |
TransAction |
viewPreviousUndo()
View previous undo, don't change undo position |
TransAction |
viewThisUndo()
View current undo, don't change undo position |
Methods inherited from class org.pentaho.di.core.changed.ChangedFlag |
---|
addObserver, deleteObserver, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String XML_TAG
public static final RepositoryObjectType REPOSITORY_ELEMENT_TYPE
public static final int TYPE_UNDO_CHANGE
public static final int TYPE_UNDO_NEW
public static final int TYPE_UNDO_DELETE
public static final int TYPE_UNDO_POSITION
public static final String STRING_SPECIAL
public static final String STRING_SPECIAL_START
public static final String STRING_SPECIAL_DUMMY
public static final String STRING_SPECIAL_OK
public static final String STRING_SPECIAL_ERROR
public boolean[] max
Constructor Detail |
---|
public JobMeta()
public JobMeta(String fname, Repository rep) throws KettleXMLException
KettleXMLException
public JobMeta(String fname, Repository rep, OverwritePrompter prompter) throws KettleXMLException
KettleXMLException
public JobMeta(VariableSpace parentSpace, String fname, Repository rep, OverwritePrompter prompter) throws KettleXMLException
log
- the logging channelfname
- The filename to load as a jobrep
- The repository to bind againt, null if there is no repository
available.
KettleXMLException
public JobMeta(InputStream inputStream, Repository rep, OverwritePrompter prompter) throws KettleXMLException
KettleXMLException
public JobMeta(Node jobnode, Repository rep, OverwritePrompter prompter) throws KettleXMLException
jobnode
- The node to load fromrep
- The reference to a repository to load additional information fromprompter
- The prompter to use in case a shared object gets overwritten
KettleXMLException
public JobMeta(Node jobnode, Repository rep, boolean ignoreRepositorySharedObjects, OverwritePrompter prompter) throws KettleXMLException
jobnode
- The node to load fromrep
- The reference to a repository to load additional information fromignoreRepositorySharedObjects
- Do not load shared objects, handled separatelyprompter
- The prompter to use in case a shared object gets overwritten
KettleXMLException
Method Detail |
---|
public ObjectId getObjectId()
RepositoryObjectInterface
getObjectId
in interface LoggingObjectInterface
getObjectId
in interface RepositoryElementInterface
getObjectId
in interface RepositoryObjectInterface
public void setObjectId(ObjectId objectId)
setObjectId
in interface EngineMetaInterface
setObjectId
in interface RepositoryElementInterface
public void clear()
public void addDefaults()
public static final JobEntryCopy createStartEntry()
public static final JobEntryCopy createDummyEntry()
public JobEntryCopy getStart()
public JobEntryCopy getDummy()
public int compare(JobMeta j1, JobMeta j2)
public int compareTo(JobMeta o)
compareTo
in interface Comparable<JobMeta>
public boolean equals(Object obj)
equals
in class Object
public Object clone()
clone
in class Object
public Object realClone(boolean doClear)
public String getName()
RepositoryObjectInterface
getName
in interface EngineMetaInterface
getName
in interface RepositoryElementInterface
getName
in interface RepositoryObjectInterface
public void setName(String newName)
setName
in interface RepositoryElementInterface
newName
- The new name of the jobpublic void nameFromFilename()
nameFromFilename
in interface EngineMetaInterface
public RepositoryDirectoryInterface getRepositoryDirectory()
getRepositoryDirectory
in interface EngineMetaInterface
getRepositoryDirectory
in interface LoggingObjectInterface
getRepositoryDirectory
in interface RepositoryElementInterface
public void setRepositoryDirectory(RepositoryDirectoryInterface directory)
setRepositoryDirectory
in interface RepositoryElementInterface
directory
- The directory to set.public String getFilename()
getFilename
in interface EngineMetaInterface
getFilename
in interface LoggingObjectInterface
public void setFilename(String newFilename)
setFilename
in interface EngineMetaInterface
newFilename
- The new filename of the jobpublic JobLogTable getJobLogTable()
public void setJobLogTable(JobLogTable jobLogTable)
public List<DatabaseMeta> getDatabases()
HasDatabasesInterface
getDatabases
in interface HasDatabasesInterface
public String[] getDatabaseNames()
public void setDatabases(List<DatabaseMeta> databases)
setDatabases
in interface HasDatabasesInterface
databases
- The databases to set.public void setChanged(boolean ch)
setChanged
in interface ChangedFlagInterface
setChanged
in class ChangedFlag
public void clearChanged()
clearChanged
in interface ChangedFlagInterface
clearChanged
in interface EngineMetaInterface
clearChanged
in class ChangedFlag
public boolean hasChanged()
hasChanged
in interface ChangedFlagInterface
hasChanged
in class ChangedFlag
public boolean isDatabaseConnectionUsed(DatabaseMeta databaseMeta)
databaseMeta
- The connection to check
public String getFileType()
getFileType
in interface EngineMetaInterface
public String[] getFilterNames()
getFilterNames
in interface EngineMetaInterface
public String[] getFilterExtensions()
getFilterExtensions
in interface EngineMetaInterface
public String getDefaultExtension()
getDefaultExtension
in interface EngineMetaInterface
public String getXML()
XMLInterface
getXML
in interface EngineMetaInterface
getXML
in interface XMLInterface
public boolean isRepReference()
public boolean isFileReference()
public static boolean isRepReference(String fileName, String transName)
public static boolean isFileReference(String fileName, String transName)
public void loadXML(Node jobnode, Repository rep, OverwritePrompter prompter) throws KettleXMLException
KettleXMLException
public void loadXML(Node jobnode, Repository rep, boolean ignoreRepositorySharedObjects, OverwritePrompter prompter) throws KettleXMLException
jobnode
- The node to load fromrep
- The reference to a repository to load additional information fromignoreRepositorySharedObjects
- Do not load shared objects, handled separatelyprompter
- The prompter to use in case a shared object gets overwritten
KettleXMLException
public SharedObjects readSharedObjects() throws KettleException
KettleException
public void saveSharedObjects() throws KettleException
saveSharedObjects
in interface EngineMetaInterface
KettleException
public DatabaseMeta findDatabase(String name)
findDatabase
in interface HasDatabasesInterface
name
- The database name to look for
public JobEntryCopy getJobEntryCopy(int x, int y, int iconsize)
public int nrJobEntries()
public int nrJobHops()
public int nrNotes()
public int nrDatabases()
HasDatabasesInterface
nrDatabases
in interface HasDatabasesInterface
public JobHopMeta getJobHop(int i)
public JobEntryCopy getJobEntry(int i)
public NotePadMeta getNote(int i)
public DatabaseMeta getDatabase(int i)
HasDatabasesInterface
getDatabase
in interface HasDatabasesInterface
i
- The database number.
public void addJobEntry(JobEntryCopy je)
public void addJobHop(JobHopMeta hi)
public void addNote(NotePadMeta ni)
public void addDatabase(DatabaseMeta ci)
HasDatabasesInterface
addDatabase
in interface HasDatabasesInterface
ci
- The database connection information.public void addJobEntry(int p, JobEntryCopy si)
public void addJobHop(int p, JobHopMeta hi)
public void addNote(int p, NotePadMeta ni)
public void addDatabase(int p, DatabaseMeta ci)
HasDatabasesInterface
addDatabase
in interface HasDatabasesInterface
p
- The locationci
- The database connection information.public void addOrReplaceDatabase(DatabaseMeta databaseMeta)
HasDatabasesInterface
addOrReplaceDatabase
in interface HasDatabasesInterface
databaseMeta
- The database connection information.public void addOrReplaceSlaveServer(SlaveServer slaveServer)
slaveServer
- The slave server to be added.public void removeJobEntry(int i)
public void removeJobHop(int i)
public void removeNote(int i)
public void raiseNote(int p)
public void lowerNote(int p)
public void removeDatabase(int i)
HasDatabasesInterface
removeDatabase
in interface HasDatabasesInterface
i
- The locationpublic int indexOfJobHop(JobHopMeta he)
public int indexOfNote(NotePadMeta ni)
public int indexOfJobEntry(JobEntryCopy ge)
public int indexOfDatabase(DatabaseMeta di)
HasDatabasesInterface
indexOfDatabase
in interface HasDatabasesInterface
di
- The database queried
public void setJobEntry(int idx, JobEntryCopy jec)
public JobEntryCopy findJobEntry(String name, int nr, boolean searchHiddenToo)
name
- The name of the job entry copynr
- The number of the job entry copy
public JobEntryCopy findJobEntry(String full_name_nr)
public JobHopMeta findJobHop(String name)
public JobHopMeta findJobHopFrom(JobEntryCopy jge)
public JobHopMeta findJobHop(JobEntryCopy from, JobEntryCopy to)
public JobHopMeta findJobHop(JobEntryCopy from, JobEntryCopy to, boolean includeDisabled)
public JobHopMeta findJobHopTo(JobEntryCopy jge)
public int findNrPrevJobEntries(JobEntryCopy from)
public JobEntryCopy findPrevJobEntry(JobEntryCopy to, int nr)
public int findNrPrevJobEntries(JobEntryCopy to, boolean info)
public JobEntryCopy findPrevJobEntry(JobEntryCopy to, int nr, boolean info)
public int findNrNextJobEntries(JobEntryCopy from)
public JobEntryCopy findNextJobEntry(JobEntryCopy from, int cnt)
public boolean hasLoop(JobEntryCopy entry)
public boolean hasLoop(JobEntryCopy entry, JobEntryCopy lookup)
public boolean isEntryUsedInHops(JobEntryCopy jge)
public int countEntries(String name)
public int findUnusedNr(String name)
public int findMaxNr(String name)
public String getAlternativeJobentryName(String entryname)
entryname
- The job entry name to find an alternative for..
public JobEntryCopy[] getAllJobGraphEntries(String name)
public JobHopMeta[] getAllJobHopsUsing(String name)
public NotePadMeta getNote(int x, int y)
public void selectAll()
public void unselectAll()
public int getMaxUndo()
UndoInterface
getMaxUndo
in interface UndoInterface
public void setMaxUndo(int mu)
UndoInterface
setMaxUndo
in interface UndoInterface
mu
- The maximum number of undo operations that are allowed.public int getUndoSize()
public void clearUndo()
public void addUndo(Object[] from, Object[] to, int[] pos, Point[] prev, Point[] curr, int type_of_change, boolean nextAlso)
UndoInterface
addUndo
in interface UndoInterface
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.public TransAction previousUndo()
UndoInterface
previousUndo
in interface UndoInterface
public TransAction viewThisUndo()
viewThisUndo
in interface UndoInterface
public TransAction viewPreviousUndo()
UndoInterface
viewPreviousUndo
in interface UndoInterface
public TransAction nextUndo()
UndoInterface
nextUndo
in interface UndoInterface
public TransAction viewNextUndo()
UndoInterface
viewNextUndo
in interface UndoInterface
public Point getMaximum()
public Point getMinimum()
public Point[] getSelectedLocations()
public Point[] getSelectedNoteLocations()
public List<JobEntryCopy> getSelectedEntries()
public List<NotePadMeta> getSelectedNotes()
public int[] getEntryIndexes(List<JobEntryCopy> entries)
public int[] getNoteIndexes(List<NotePadMeta> notes)
notes
- An array of notes
public JobEntryCopy findStart()
public String toString()
toString
in class Object
public boolean isBatchIdPassed()
public void setBatchIdPassed(boolean batchIdPassed)
batchIdPassed
- The batchIdPassed to set.public List<SQLStatement> getSQLStatements(Repository repository, ProgressMonitorListener monitor) throws KettleException
KettleException
public String[] getArguments()
public void setArguments(String[] arguments)
arguments
- The arguments to set.public List<StringSearchResult> getStringList(boolean searchSteps, boolean searchDatabases, boolean searchNotes)
public List<String> getUsedVariables()
public boolean haveConnectionsChanged()
HasDatabasesInterface
haveConnectionsChanged
in interface HasDatabasesInterface
public boolean haveJobEntriesChanged()
public boolean haveJobHopsChanged()
public boolean haveNotesChanged()
public String getSharedObjectsFile()
public void setSharedObjectsFile(String sharedObjectsFile)
sharedObjectsFile
- the sharedObjectsFile to setpublic void setModifiedUser(String modifiedUser)
setModifiedUser
in interface EngineMetaInterface
modifiedUser
- The modifiedUser to set.public String getModifiedUser()
getModifiedUser
in interface EngineMetaInterface
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface EngineMetaInterface
modifiedDate
- The modifiedDate to set.public Date getModifiedDate()
getModifiedDate
in interface EngineMetaInterface
public String getDescription()
getDescription
in interface RepositoryElementInterface
public String getExtendedDescription()
public String getJobversion()
public int getJobstatus()
public void setDescription(String description)
setDescription
in interface RepositoryElementInterface
description
- The new description of the jobpublic void setExtendedDescription(String extendedDescription)
extendedDescription
- The new extended description of the jobpublic void setJobversion(String jobVersion)
jobVersion
- The new version description of the jobpublic void setJobstatus(int jobStatus)
jobStatus
- The new status description of the jobpublic Date getCreatedDate()
getCreatedDate
in interface EngineMetaInterface
public void setCreatedDate(Date createdDate)
setCreatedDate
in interface EngineMetaInterface
createdDate
- The createdDate to set.public void setCreatedUser(String createdUser)
setCreatedUser
in interface EngineMetaInterface
createdUser
- The createdUser to set.public String getCreatedUser()
getCreatedUser
in interface EngineMetaInterface
public static final JobEntryInterface findJobEntry(List<JobEntryInterface> jobentries, ObjectId id_jobentry)
jobentries
- The List of jobentriesid_jobentry
- The id of the jobentry
public static final JobEntryCopy findJobEntryCopy(List<JobEntryCopy> jobcopies, ObjectId id_jobentry_copy)
jobcopies
- The List of jobentry copiesid_jobentry_copy
- The id of the jobentry copy
public void setInternalKettleVariables()
setInternalKettleVariables
in interface EngineMetaInterface
public void setInternalKettleVariables(VariableSpace var)
public void copyVariablesFrom(VariableSpace space)
VariableSpace
copyVariablesFrom
in interface VariableSpace
space
- the space to copy the variables from.public String environmentSubstitute(String aString)
VariableSpace
environmentSubstitute
in interface VariableSpace
aString
- The string to substitute.
public String[] environmentSubstitute(String[] aString)
VariableSpace
environmentSubstitute
in interface VariableSpace
aString
- The array of strings that wants its variables to be replaced.
public VariableSpace getParentVariableSpace()
VariableSpace
getParentVariableSpace
in interface VariableSpace
public void setParentVariableSpace(VariableSpace parent)
VariableSpace
setParentVariableSpace
in interface VariableSpace
parent
- The parent variable space to setpublic String getVariable(String variableName, String defaultValue)
VariableSpace
getVariable
in interface VariableSpace
variableName
- The name of the variabledefaultValue
- The default value in case the variable could not be
found
public String getVariable(String variableName)
VariableSpace
getVariable
in interface VariableSpace
variableName
- The name of the variable
public boolean getBooleanValueOfVariable(String variableName, boolean defaultValue)
VariableSpace
getBooleanValueOfVariable
in interface VariableSpace
variableName
- The variable to look up.defaultValue
- The default value to return.
static method ValueMeta.convertStringToBoolean()
public void initializeVariablesFrom(VariableSpace parent)
VariableSpace
initializeVariablesFrom
in interface VariableSpace
parent
- the parent to start from, or null if root.public String[] listVariables()
VariableSpace
listVariables
in interface VariableSpace
public void setVariable(String variableName, String variableValue)
VariableSpace
setVariable
in interface VariableSpace
variableName
- The name of the variable to setvariableValue
- The value of the variable to set. If the
variableValue is null, the variable is cleared
from the list.public void shareVariablesWith(VariableSpace space)
VariableSpace
shareVariablesWith
in interface VariableSpace
space
- Variable space to be shared.public void injectVariables(Map<String,String> prop)
VariableSpace
injectVariables
in interface VariableSpace
prop
- Properties object containing key-value pairs.public void checkJobEntries(List<CheckResultInterface> remarks, boolean only_selected, ProgressMonitorListener monitor)
remarks
- List of CheckResult remarks inserted into by each JobEntryonly_selected
- true if you only want to check the selected jobsmonitor
- Progress monitor (not presently in use)public List<ResourceReference> getResourceDependencies()
public String exportResources(VariableSpace space, Map<String,ResourceDefinition> definitions, ResourceNamingInterface namingInterface, Repository repository) throws KettleException
ResourceExportInterface
exportResources
in interface ResourceExportInterface
space
- The variable space to resolve (environment) variables with.definitions
- The map containing the filenames and contentnamingInterface
- The resource naming interface allows the object to name appropriatelyrepository
- the repository object to load from
KettleException
- in case something goes wrong during the exportpublic List<SlaveServer> getSlaveServers()
getSlaveServers
in interface HasSlaveServersInterface
public void setSlaveServers(List<SlaveServer> slaveServers)
slaveServers
- the slaveServers to setpublic SlaveServer findSlaveServer(String serverString)
serverString
- the name of the slave server
public String[] getSlaveServerNames()
public void renameJobEntryIfNameCollides(JobEntryCopy je)
je
- The job entry copy to verify the name for.public SharedObjects getSharedObjects()
public void setSharedObjects(SharedObjects sharedObjects)
sharedObjects
- the sharedObjects to setpublic void addNameChangedListener(NameChangedListener listener)
public void removeNameChangedListener(NameChangedListener listener)
public void addFilenameChangedListener(FilenameChangedListener listener)
public void removeFilenameChangedListener(FilenameChangedListener listener)
public void activateParameters()
NamedParams
activateParameters
in interface NamedParams
public void addParameterDefinition(String key, String defValue, String description) throws DuplicateParamException
NamedParams
addParameterDefinition
in interface NamedParams
key
- Name of the parameter.defValue
- default value.description
- Description of the parameter.
DuplicateParamException
- Upon duplicate parameter definitionspublic String getParameterDescription(String key) throws UnknownParamException
NamedParams
getParameterDescription
in interface NamedParams
key
- Key to get value for.
UnknownParamException
- Parameter 'key' is unknown.public String getParameterDefault(String key) throws UnknownParamException
NamedParams
getParameterDefault
in interface NamedParams
key
- Key to get value for.
UnknownParamException
- Parameter 'key' is unknown.public String getParameterValue(String key) throws UnknownParamException
NamedParams
getParameterValue
in interface NamedParams
key
- Key to get value for.
UnknownParamException
- Parameter 'key' is unknown.public String[] listParameters()
NamedParams
listParameters
in interface NamedParams
public void setParameterValue(String key, String value) throws UnknownParamException
NamedParams
setParameterValue
in interface NamedParams
key
- key to set value ofvalue
- value to set it to.
UnknownParamException
- Parameter 'key' is unknown.public void eraseParameters()
NamedParams
eraseParameters
in interface NamedParams
public void clearParameters()
NamedParams
clearParameters
in interface NamedParams
public void copyParametersFrom(NamedParams params)
NamedParams
copyParametersFrom
in interface NamedParams
params
- the parameters to copy from.public List<JobEntryCopy> getJobCopies()
public List<NotePadMeta> getNotes()
public List<JobHopMeta> getJobhops()
public RepositoryObjectType getRepositoryElementType()
getRepositoryElementType
in interface RepositoryElementInterface
public ObjectRevision getObjectRevision()
getObjectRevision
in interface LoggingObjectInterface
getObjectRevision
in interface RepositoryElementInterface
public void setObjectRevision(ObjectRevision objectRevision)
setObjectRevision
in interface RepositoryElementInterface
public List<JobEntryInterface> composeJobEntryInterfaceList()
public String getLogChannelId()
getLogChannelId
in interface LoggingObjectInterface
public String getObjectName()
getObjectName
in interface LoggingObjectInterface
public String getObjectCopy()
getObjectCopy
in interface LoggingObjectInterface
public LoggingObjectType getObjectType()
getObjectType
in interface LoggingObjectInterface
public LoggingObjectInterface getParent()
getParent
in interface LoggingObjectInterface
public LogLevel getLogLevel()
getLogLevel
in interface LoggingObjectInterface
public void setLogLevel(LogLevel logLevel)
public ChannelLogTable getChannelLogTable()
public void setChannelLogTable(ChannelLogTable channelLogTable)
channelLogTable
- the channelLogTable to setpublic JobEntryLogTable getJobEntryLogTable()
public void setJobEntryLogTable(JobEntryLogTable jobEntryLogTable)
jobEntryLogTable
- the jobEntryLogTable to setpublic List<LogTableInterface> getLogTables()
public boolean canSave()
canSave
in interface EngineMetaInterface
public String getContainerObjectId()
getContainerObjectId
in interface LoggingObjectInterface
public void setCarteObjectId(String containerObjectId)
containerObjectId
- the execution container Object id to setpublic Date getRegistrationDate()
getRegistrationDate
in interface LoggingObjectInterface
public boolean hasRepositoryReferences()
public void lookupRepositoryReferences(Repository repository) throws KettleException
repository
- the repository to reference.
KettleException
public Repository getRepository()
getRepository
in interface HasRepositoryInterface
public void setRepository(Repository repository)
setRepository
in interface HasRepositoryInterface
repository
- the repository to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |