org.pentaho.di.core.logging
Class LogTableField

java.lang.Object
  extended by org.pentaho.di.core.logging.LogTableField
All Implemented Interfaces:
Cloneable

public class LogTableField
extends Object
implements Cloneable

This is a single log table field.
The user can select this field or not, sees a field name, a description in the UI too. The user can also specify a subject like a step name.

Author:
matt

Constructor Summary
LogTableField(String id, boolean enabled, boolean subjectAllowed, String fieldName, String name, String description, int dataType, int length)
           
LogTableField(String id, boolean enabled, String fieldName, Object subject, String name, String description)
           
LogTableField(String id, String fieldName, Object subject)
          Create a new enabled log table field with the specified field name for the specified subject.
 
Method Summary
 int getDataType()
           
 String getDescription()
           
 String getFieldName()
           
 String getId()
           
 int getLength()
           
 String getName()
           
 Object getSubject()
           
 boolean isEnabled()
           
 boolean isErrorsField()
           
 boolean isKey()
           
 boolean isLogDateField()
           
 boolean isLogField()
           
 boolean isNameField()
           
 boolean isStatusField()
           
 boolean isSubjectAllowed()
           
 boolean isVisible()
           
 void setDataType(int dataType)
           
 void setDescription(String description)
           
 void setEnabled(boolean enabled)
           
 void setErrorsField(boolean errorsField)
           
 void setFieldName(String fieldName)
           
 void setKey(boolean key)
           
 void setLength(int length)
           
 void setLogDateField(boolean logDateField)
           
 void setLogField(boolean logField)
           
 void setName(String name)
           
 void setNameField(boolean nameField)
           
 void setStatusField(boolean statusField)
           
 void setSubject(Object subject)
           
 void setSubjectAllowed(boolean subjectAllowed)
           
 void setVisible(boolean visible)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogTableField

public LogTableField(String id,
                     boolean enabled,
                     String fieldName,
                     Object subject,
                     String name,
                     String description)
Parameters:
id - the ID to reference this field by in the log table
enabled -
fieldName -
subject -
description -

LogTableField

public LogTableField(String id,
                     boolean enabled,
                     boolean subjectAllowed,
                     String fieldName,
                     String name,
                     String description,
                     int dataType,
                     int length)
Parameters:
id -
enabled -
fieldName -
description -
dataType -
length -

LogTableField

public LogTableField(String id,
                     String fieldName,
                     Object subject)
Create a new enabled log table field with the specified field name for the specified subject.

Parameters:
fieldname -
subject -
Method Detail

toString

public String toString()
Overrides:
toString in class Object

isEnabled

public boolean isEnabled()
Returns:
the enabled

setEnabled

public void setEnabled(boolean enabled)
Parameters:
enabled - the enabled to set

getSubject

public Object getSubject()
Returns:
the subject

setSubject

public void setSubject(Object subject)
Parameters:
subject - the subject to set

getId

public String getId()
Returns:
the id

getFieldName

public String getFieldName()
Returns:
the fieldName

setFieldName

public void setFieldName(String fieldName)
Parameters:
fieldName - the fieldName to set

getDescription

public String getDescription()
Returns:
the description

setDescription

public void setDescription(String description)
Parameters:
description - the description to set

getDataType

public int getDataType()
Returns:
the dataType

setDataType

public void setDataType(int dataType)
Parameters:
dataType - the dataType to set

getLength

public int getLength()
Returns:
the length

setLength

public void setLength(int length)
Parameters:
length - the length to set

isSubjectAllowed

public boolean isSubjectAllowed()
Returns:
the subjectAllowed

setSubjectAllowed

public void setSubjectAllowed(boolean subjectAllowed)
Parameters:
subjectAllowed - the subjectAllowed to set

isKey

public boolean isKey()
Returns:
the key

setKey

public void setKey(boolean key)
Parameters:
key - the key to set

isLogDateField

public boolean isLogDateField()
Returns:
the logDateField

setLogDateField

public void setLogDateField(boolean logDateField)
Parameters:
logDateField - the logDateField to set

getName

public String getName()
Returns:
the name

setName

public void setName(String name)
Parameters:
name - the name to set

isLogField

public boolean isLogField()
Returns:
the logField

setLogField

public void setLogField(boolean logField)
Parameters:
logField - the logField to set

isVisible

public boolean isVisible()
Returns:
the visible

setVisible

public void setVisible(boolean visible)
Parameters:
visible - the visible to set

isStatusField

public boolean isStatusField()
Returns:
the statusField

setStatusField

public void setStatusField(boolean statusField)
Parameters:
statusField - the statusField to set

isErrorsField

public boolean isErrorsField()
Returns:
the errorsField

setErrorsField

public void setErrorsField(boolean errorsField)
Parameters:
errorsField - the errorsField to set

isNameField

public boolean isNameField()
Returns:
the nameField

setNameField

public void setNameField(boolean nameField)
Parameters:
nameField - the nameField to set