| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.di.core.logging.TransLogTable
public class TransLogTable
This class describes a transformation logging table
| Nested Class Summary | |
|---|---|
static class | 
TransLogTable.ID
 | 
| Field Summary | |
|---|---|
static String | 
PROP_LOG_TABLE_CONNECTION_NAME
 | 
static String | 
PROP_LOG_TABLE_FIELD_ENABLED
 | 
static String | 
PROP_LOG_TABLE_FIELD_ID
 | 
static String | 
PROP_LOG_TABLE_FIELD_NAME
 | 
static String | 
PROP_LOG_TABLE_FIELD_SUBJECT
 | 
static String | 
PROP_LOG_TABLE_INTERVAL
 | 
static String | 
PROP_LOG_TABLE_SCHEMA_NAME
 | 
static String | 
PROP_LOG_TABLE_SIZE_LIMIT
 | 
static String | 
PROP_LOG_TABLE_TABLE_NAME
 | 
static String | 
PROP_LOG_TABLE_TIMEOUT_DAYS
 | 
static String | 
XML_TAG
 | 
| Constructor Summary | |
|---|---|
TransLogTable(org.pentaho.di.core.variables.VariableSpace space,
              HasDatabasesInterface databasesInterface,
              List<StepMeta> steps)
 | 
|
| Method Summary | |
|---|---|
 Object | 
clone()
 | 
 boolean | 
containsKeyField()
 | 
 org.pentaho.di.core.logging.LogTableField | 
findField(String id)
Find a log table field in this log table definition.  | 
 org.pentaho.di.core.logging.LogTableField | 
findField(TransLogTable.ID id)
 | 
 String | 
getActualSchemaName()
 | 
 String | 
getActualTableName()
 | 
 String | 
getConnectionName()
 | 
 String | 
getConnectionNameVariable()
 | 
 org.pentaho.di.core.database.DatabaseMeta | 
getDatabaseMeta()
 | 
static TransLogTable | 
getDefault(org.pentaho.di.core.variables.VariableSpace space,
           HasDatabasesInterface databasesInterface,
           List<StepMeta> steps)
 | 
 org.pentaho.di.core.logging.LogTableField | 
getErrorsField()
 | 
 List<org.pentaho.di.core.logging.LogTableField> | 
getFields()
 | 
 org.pentaho.di.core.logging.LogTableField | 
getKeyField()
 | 
 org.pentaho.di.core.logging.LogTableField | 
getLogDateField()
 | 
 org.pentaho.di.core.logging.LogTableField | 
getLogField()
 | 
 String | 
getLogInterval()
Get the logging interval in seconds.  | 
 org.pentaho.di.core.RowMetaAndData | 
getLogRecord(org.pentaho.di.core.logging.LogStatus status,
             Object subject,
             Object parent)
This method calculates all the values that are required  | 
 String | 
getLogSizeLimit()
 | 
 String | 
getLogTableCode()
 | 
 String | 
getLogTableType()
 | 
 org.pentaho.di.core.logging.LogTableField | 
getNameField()
 | 
 String | 
getQuotedSchemaTableCombination()
 | 
 List<org.pentaho.di.core.row.RowMetaInterface> | 
getRecommendedIndexes()
 | 
 String | 
getSchemaName()
 | 
 String | 
getSchemaNameVariable()
 | 
 org.pentaho.di.core.logging.LogTableField | 
getStatusField()
 | 
 String | 
getStepnameInput()
 | 
 String | 
getStepnameOutput()
 | 
 String | 
getStepnameRead()
 | 
 String | 
getStepnameRejected()
 | 
 String | 
getStepnameUpdated()
 | 
 String | 
getStepnameWritten()
 | 
 Object | 
getSubject(String id)
Get the subject of a field with the specified ID  | 
 Object | 
getSubject(TransLogTable.ID id)
 | 
 String | 
getSubjectString(String id)
Return the subject in the form of a string for the specified ID.  | 
 String | 
getSubjectString(TransLogTable.ID id)
 | 
 String | 
getTableName()
 | 
 String | 
getTableNameVariable()
 | 
 String | 
getTimeoutInDays()
 | 
 String | 
getXML()
 | 
 boolean | 
isBatchIdUsed()
 | 
 boolean | 
isDefined()
 | 
 boolean | 
isLogFieldUsed()
 | 
 void | 
loadFieldsXML(Node node)
 | 
 void | 
loadFromRepository(org.pentaho.di.repository.RepositoryAttributeInterface attributeInterface)
 | 
 void | 
loadXML(Node node,
        List<org.pentaho.di.core.database.DatabaseMeta> databases,
        List<StepMeta> steps)
 | 
 void | 
saveToRepository(org.pentaho.di.repository.RepositoryAttributeInterface attributeInterface)
Save this core information of the log table to the repository using the specified attribute interface.  | 
 void | 
setBatchIdUsed(boolean use)
 | 
 void | 
setConnectionName(String connectionName)
 | 
 void | 
setFields(List<org.pentaho.di.core.logging.LogTableField> fields)
 | 
 void | 
setLogFieldUsed(boolean use)
 | 
 void | 
setLogInterval(String logInterval)
Sets the logging interval in seconds.  | 
 void | 
setLogSizeLimit(String logSizeLimit)
 | 
 void | 
setSchemaName(String schemaName)
 | 
 void | 
setStepInput(StepMeta input)
 | 
 void | 
setStepOutput(StepMeta output)
 | 
 void | 
setStepRead(StepMeta read)
 | 
 void | 
setStepRejected(StepMeta rejected)
 | 
 void | 
setStepUpdate(StepMeta update)
 | 
 void | 
setStepWritten(StepMeta written)
 | 
 void | 
setTableName(String tableName)
 | 
 void | 
setTimeoutInDays(String timeoutInDays)
 | 
 String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface org.pentaho.di.core.logging.LogTableInterface | 
|---|
getActualSchemaName, getActualTableName, getConnectionName, getDatabaseMeta, getErrorsField, getFields, getKeyField, getLogDateField, getLogField, getNameField, getQuotedSchemaTableCombination, getSchemaName, getStatusField, getTableName, getTimeoutInDays, isDefined, setConnectionName | 
| Field Detail | 
|---|
public static final String XML_TAG
public static String PROP_LOG_TABLE_CONNECTION_NAME
public static String PROP_LOG_TABLE_SCHEMA_NAME
public static String PROP_LOG_TABLE_TABLE_NAME
public static String PROP_LOG_TABLE_FIELD_ID
public static String PROP_LOG_TABLE_FIELD_NAME
public static String PROP_LOG_TABLE_FIELD_ENABLED
public static String PROP_LOG_TABLE_FIELD_SUBJECT
public static String PROP_LOG_TABLE_INTERVAL
public static String PROP_LOG_TABLE_SIZE_LIMIT
public static String PROP_LOG_TABLE_TIMEOUT_DAYS
| Constructor Detail | 
|---|
public TransLogTable(org.pentaho.di.core.variables.VariableSpace space,
                     HasDatabasesInterface databasesInterface,
                     List<StepMeta> steps)
| Method Detail | 
|---|
public Object clone()
clone in class Objectpublic String getXML()
public void loadXML(Node node,
                    List<org.pentaho.di.core.database.DatabaseMeta> databases,
                    List<StepMeta> steps)
public void saveToRepository(org.pentaho.di.repository.RepositoryAttributeInterface attributeInterface)
                      throws org.pentaho.di.core.exception.KettleException
saveToRepository in interface org.pentaho.di.core.logging.LogTableInterfaceattributeInterface - The attribute interface to use to set attributes
org.pentaho.di.core.exception.KettleException
public void loadFromRepository(org.pentaho.di.repository.RepositoryAttributeInterface attributeInterface)
                        throws org.pentaho.di.core.exception.KettleException
loadFromRepository in interface org.pentaho.di.core.logging.LogTableInterfaceorg.pentaho.di.core.exception.KettleException
public static TransLogTable getDefault(org.pentaho.di.core.variables.VariableSpace space,
                                       HasDatabasesInterface databasesInterface,
                                       List<StepMeta> steps)
public org.pentaho.di.core.logging.LogTableField findField(TransLogTable.ID id)
public Object getSubject(TransLogTable.ID id)
public String getSubjectString(TransLogTable.ID id)
public void setBatchIdUsed(boolean use)
public boolean isBatchIdUsed()
public void setLogFieldUsed(boolean use)
public boolean isLogFieldUsed()
public String getStepnameRead()
public void setStepRead(StepMeta read)
public String getStepnameWritten()
public void setStepWritten(StepMeta written)
public String getStepnameInput()
public void setStepInput(StepMeta input)
public String getStepnameOutput()
public void setStepOutput(StepMeta output)
public String getStepnameUpdated()
public void setStepUpdate(StepMeta update)
public String getStepnameRejected()
public void setStepRejected(StepMeta rejected)
public void setLogInterval(String logInterval)
logInterval - The log interval value.  A value higher than 0 means that the log table is updated every 'logInterval' seconds.public String getLogInterval()
logInterval - The log interval,public String getLogSizeLimit()
public void setLogSizeLimit(String logSizeLimit)
logSizeLimit - the logSizeLimit to set
public org.pentaho.di.core.RowMetaAndData getLogRecord(org.pentaho.di.core.logging.LogStatus status,
                                                       Object subject,
                                                       Object parent)
getLogRecord in interface org.pentaho.di.core.logging.LogTableInterfaceid - the id to use or -1 if no id is neededstatus - the log status to usesubject - the subject to query, in this case a Trans objectpublic String getLogTableCode()
public String getLogTableType()
getLogTableType in interface org.pentaho.di.core.logging.LogTableInterfacepublic String getConnectionNameVariable()
getConnectionNameVariable in interface org.pentaho.di.core.logging.LogTableInterfacepublic String getSchemaNameVariable()
getSchemaNameVariable in interface org.pentaho.di.core.logging.LogTableInterfacepublic String getTableNameVariable()
getTableNameVariable in interface org.pentaho.di.core.logging.LogTableInterfacepublic List<org.pentaho.di.core.row.RowMetaInterface> getRecommendedIndexes()
getRecommendedIndexes in interface org.pentaho.di.core.logging.LogTableInterfacepublic String toString()
toString in class Objectpublic org.pentaho.di.core.database.DatabaseMeta getDatabaseMeta()
public String getActualSchemaName()
public void setSchemaName(String schemaName)
schemaName - the schemaName to setpublic String getSchemaName()
public String getActualTableName()
public String getTableName()
public void setTableName(String tableName)
tableName - the tableName to setpublic String getQuotedSchemaTableCombination()
public List<org.pentaho.di.core.logging.LogTableField> getFields()
public void setFields(List<org.pentaho.di.core.logging.LogTableField> fields)
fields - the fields to setpublic org.pentaho.di.core.logging.LogTableField findField(String id)
id - the id of the field to search for
public Object getSubject(String id)
id - 
public String getSubjectString(String id)
id - the id of the field to look for.
public boolean containsKeyField()
public org.pentaho.di.core.logging.LogTableField getLogDateField()
public org.pentaho.di.core.logging.LogTableField getKeyField()
public org.pentaho.di.core.logging.LogTableField getLogField()
public org.pentaho.di.core.logging.LogTableField getStatusField()
public org.pentaho.di.core.logging.LogTableField getErrorsField()
public org.pentaho.di.core.logging.LogTableField getNameField()
public void loadFieldsXML(Node node)
public boolean isDefined()
public String getTimeoutInDays()
public void setTimeoutInDays(String timeoutInDays)
timeoutInDays - the timeoutInDays to setpublic String getConnectionName()
public void setConnectionName(String connectionName)
connectionName - the connectionName to set
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||