public abstract class BaseLogTable extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
connectionName |
protected HasDatabasesInterface |
databasesInterface |
protected List<LogTableField> |
fields |
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 |
protected String |
schemaName |
protected VariableSpace |
space |
protected String |
tableName |
protected String |
timeoutInDays |
static String |
XML_TAG |
Constructor and Description |
---|
BaseLogTable(VariableSpace space,
HasDatabasesInterface databasesInterface,
String connectionName,
String schemaName,
String tableName) |
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
protected VariableSpace space
protected HasDatabasesInterface databasesInterface
protected String connectionName
protected String schemaName
protected String tableName
protected String timeoutInDays
protected List<LogTableField> fields
public BaseLogTable(VariableSpace space, HasDatabasesInterface databasesInterface, String connectionName, String schemaName, String tableName)
public void replaceMeta(BaseLogTable baseLogTable)
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public void saveToRepository(RepositoryAttributeInterface attributeInterface) throws KettleException
attributeInterface
- The attribute interface to use to set attributesKettleException
public void loadFromRepository(RepositoryAttributeInterface attributeInterface) throws KettleException
KettleException
public abstract String getLogTableCode()
public abstract String getConnectionNameVariable()
public abstract String getSchemaNameVariable()
public abstract String getTableNameVariable()
public DatabaseMeta getDatabaseMeta()
public String getActualConnectionName()
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<LogTableField> getFields()
public void setFields(List<LogTableField> fields)
fields
- the fields to setpublic LogTableField findField(String id)
id
- the id of the field to search forpublic Object getSubject(String id)
id
- public String getSubjectString(String id)
id
- the id of the field to look for.public boolean containsKeyField()
public LogTableField getLogDateField()
public LogTableField getKeyField()
public LogTableField getLogField()
public LogTableField getStatusField()
public LogTableField getErrorsField()
public LogTableField getNameField()
protected String getFieldsXML()
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 setprotected String getLogBuffer(VariableSpace space, String logChannelId, LogStatus status, String limit)
public void setAllGlobalParametersToNull()
protected boolean isGlobalParameter(String parameter)
Copyright © 2018 Hitachi Vantara. All rights reserved.