public class JobEntrySQL extends JobEntryBase implements Cloneable, JobEntryInterface
| Modifier and Type | Field and Description | 
|---|---|
static String | 
CONNECTION_TAG  | 
static String | 
ID_DATABASE  | 
static String | 
INDENT  | 
static String | 
SEND_ONE_STATEMENT_TAG  | 
static String | 
SQL_TAG  | 
static String | 
SQLFILENAME_TAG  | 
static String | 
SQLFROMFILE_TAG  | 
static String | 
USE_VARIABLE_SUBSTITUTION_TAG  | 
attributesMap, containerObjectId, entryStepSetVariablesMap, extensionDataMap, log, metaStore, parentJob, parentJobMeta, rep, variables| Constructor and Description | 
|---|
JobEntrySQL()  | 
JobEntrySQL(String n)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
buildSqlFromFile()  | 
void | 
check(List<CheckResultInterface> remarks,
     JobMeta jobMeta,
     VariableSpace space,
     Repository repository,
     org.pentaho.metastore.api.IMetaStore metaStore)
Allows JobEntry objects to check themselves for consistency 
 | 
Object | 
clone()
This method is called when a job entry is duplicated in Spoon. 
 | 
boolean | 
evaluates()
This method must return true if the job entry supports the true/false outgoing hops. 
 | 
Result | 
execute(Result result,
       int nr)
Execute the job entry. 
 | 
DatabaseMeta | 
getDatabase()  | 
List<ResourceReference> | 
getResourceDependencies(JobMeta jobMeta)
Gets a list of all the resource dependencies that the step is depending on. 
 | 
String | 
getSQL()  | 
String | 
getSQLFilename()  | 
boolean | 
getSQLFromFile()  | 
DatabaseMeta[] | 
getUsedDatabaseConnections()
Gets all the database connections that are used by the job entry. 
 | 
boolean | 
getUseVariableSubstitution()  | 
String | 
getXML()
This method is called by PDI whenever a job entry needs to serialize its settings to XML. 
 | 
boolean | 
isSendOneStatement()  | 
boolean | 
isUnconditional()
This method must return true if the job entry supports the unconditional outgoing hop. 
 | 
void | 
loadRep(Repository rep,
       org.pentaho.metastore.api.IMetaStore metaStore,
       ObjectId idJobentry,
       List<DatabaseMeta> databases,
       List<SlaveServer> slaveServers)
This method is called by PDI whenever a job entry needs to read its configuration from a PDI repository. 
 | 
void | 
loadXML(Node entrynode,
       List<DatabaseMeta> databases,
       List<SlaveServer> slaveServers,
       Repository rep,
       org.pentaho.metastore.api.IMetaStore metaStore)
This method is called by PDI whenever a job entry needs to read its settings from XML. 
 | 
void | 
saveRep(Repository rep,
       org.pentaho.metastore.api.IMetaStore metaStore,
       ObjectId idJob)
This method is called by PDI whenever a job entry needs to save its settings to a PDI repository. 
 | 
void | 
setDatabase(DatabaseMeta database)  | 
void | 
setSendOneStatement(boolean sendOneStatementIn)  | 
void | 
setSQL(String sql)  | 
void | 
setSQLFilename(String sqlFilename)  | 
void | 
setSQLFromFile(boolean sqlFromFileIn)  | 
void | 
setUseVariableSubstitution(boolean subs)  | 
addDatetimeToFilename, check, clear, copyVariablesFrom, environmentSubstitute, environmentSubstitute, equals, exportResources, exportResources, fieldSubstitute, getAttribute, getAttributes, getAttributesMap, getBooleanValueOfVariable, getContainerObjectId, getDescription, getDialogClassName, getEntryStepSetVariable, getEntryStepSetVariablesMap, getExtensionDataMap, getFilename, getHolderType, getLogChannel, getLogChannelId, getLogLevel, getMetaStore, getName, getObjectCopy, getObjectId, getObjectName, getObjectRevision, getObjectType, getParent, getParentJob, getParentJobMeta, getParentVariableSpace, getPluginId, getRealFilename, getReferencedObjectDescriptions, getRegistrationDate, getRepository, getRepositoryDirectory, getSQLStatements, getSQLStatements, getSQLStatements, getTypeDesc, getTypeId, getVariable, getVariable, getVariables, hasChanged, hashCode, hasRepositoryReferences, initializeVariablesFrom, injectVariables, isBasic, isDebug, isDetailed, isDummy, isEvaluation, isForcingSeparateLogging, isFTP, isGatheringMetrics, isHTTP, isJob, isMail, isReferencedObjectEnabled, isRowlevel, isSFTP, isShell, isSpecial, isStart, isTransformation, listVariables, loadReferencedObject, loadReferencedObject, loadRep, loadXML, loadXML, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, lookupRepositoryReferences, parseRepositoryObjects, resetErrorsBeforeExecution, saveRep, setAttribute, setAttributes, setAttributesMap, setChanged, setChanged, setContainerObjectId, setDescription, setEntryStepSetVariable, setForcingSeparateLogging, setGatheringMetrics, setID, setLogLevel, setMetaStore, setName, setObjectId, setParentJob, setParentJobMeta, setParentVariableSpace, setPluginId, setRepository, setTypeId, setVariable, shareVariablesWith, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcheck, clear, exportResources, exportResources, getDescription, getDialogClassName, getFilename, getLogChannel, getName, getObjectId, getParentJob, getParentJobMeta, getPluginId, getRealFilename, getReferencedObjectDescriptions, getSQLStatements, getSQLStatements, getSQLStatements, getTypeId, hasChanged, hasRepositoryReferences, isDummy, isEvaluation, isJob, isMail, isReferencedObjectEnabled, isShell, isSpecial, isStart, isTransformation, loadReferencedObject, loadReferencedObject, loadRep, loadXML, lookupRepositoryReferences, resetErrorsBeforeExecution, saveRep, setChanged, setChanged, setDescription, setMetaStore, setName, setObjectId, setParentJob, setParentJobMeta, setPluginId, setRepositorypublic static final String USE_VARIABLE_SUBSTITUTION_TAG
public static final String SQLFROMFILE_TAG
public static final String SQLFILENAME_TAG
public static final String SEND_ONE_STATEMENT_TAG
public static final String CONNECTION_TAG
public static final String INDENT
public static final String SQL_TAG
public static final String ID_DATABASE
public JobEntrySQL(String n)
public JobEntrySQL()
public Object clone()
JobEntryBaseclone in interface JobEntryInterfaceclone in class JobEntryBasepublic String getXML()
JobEntryBasegetXML in interface JobEntryInterfacegetXML in class JobEntryBasepublic void loadXML(Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers, Repository rep, org.pentaho.metastore.api.IMetaStore metaStore) throws KettleXMLException
JobEntryInterfaceloadXML in interface JobEntryInterfaceloadXML in class JobEntryBaseentrynode - the top-level XML nodedatabases - the list of databasesslaveServers - the list of slave serversrep - the repository objectmetaStore - The metaStore to optionally load from.KettleXMLException - if any errors occur during the loading of the XMLpublic void loadRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, ObjectId idJobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
JobEntryInterfaceloadRep in interface JobEntryInterfaceloadRep in class JobEntryBaserep - the repository objectmetaStore - the MetaStore to useidJobentry - the id of the job entrydatabases - the list of databasesslaveServers - the list of slave serversKettleException - if any errors occur during the loadpublic void saveRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, ObjectId idJob) throws KettleException
JobEntryInterfacesaveRep in interface JobEntryInterfacesaveRep in class JobEntryBaserep - the repositorymetaStore - the MetaStore to useidJob - the id_jobKettleException - if any errors occur during the savepublic void setSQL(String sql)
public String getSQL()
public String getSQLFilename()
public void setSQLFilename(String sqlFilename)
public boolean getUseVariableSubstitution()
public void setUseVariableSubstitution(boolean subs)
public void setSQLFromFile(boolean sqlFromFileIn)
public boolean getSQLFromFile()
public boolean isSendOneStatement()
public void setSendOneStatement(boolean sendOneStatementIn)
public void setDatabase(DatabaseMeta database)
public DatabaseMeta getDatabase()
public Result execute(Result result, int nr)
JobEntryInterfaceexecute in interface JobEntryInterfaceresult - the previous resultnr - the number of rowspublic String buildSqlFromFile() throws KettleDatabaseException
KettleDatabaseExceptionpublic boolean evaluates()
JobEntryBaseevaluates in interface JobEntryInterfaceevaluates in class JobEntryBasepublic boolean isUnconditional()
JobEntryBaseisUnconditional in interface JobEntryInterfaceisUnconditional in class JobEntryBasepublic DatabaseMeta[] getUsedDatabaseConnections()
JobEntryBasegetUsedDatabaseConnections in interface JobEntryInterfacegetUsedDatabaseConnections in class JobEntryBasepublic List<ResourceReference> getResourceDependencies(JobMeta jobMeta)
JobEntryBasegetResourceDependencies in interface JobEntryInterfacegetResourceDependencies in class JobEntryBaseResourceReferencepublic void check(List<CheckResultInterface> remarks, JobMeta jobMeta, VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore)
JobEntryBasecheck in interface JobEntryInterfacecheck in class JobEntryBaseremarks - List of CheckResult objects indicating consistency statusjobMeta - the metadata object for the job entryspace - the variable space to resolve string expressions with variables withrepository - the repository to load Kettle objects frommetaStore - the MetaStore to load common elements fromCopyright © 2020 Hitachi Vantara. All rights reserved.