org.figure8.join.services.scripting
Class ScriptLogInfo

java.lang.Object
  extended by org.figure8.join.core.EntityObject
      extended by org.figure8.join.services.scripting.ScriptLogInfo
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class ScriptLogInfo
extends EntityObject

This is an entity object representing information about the log file produced by the execution of a script. These informations are related to the entity this script has been launched for, the name and file of the script and the log file itself.

Version:
$Revision: 1.2 $
Author:
Laurent Broudoux
See Also:
Serialized Form

Constructor Summary
ScriptLogInfo()
          Creates a new instance of ScriptLogInfo.
ScriptLogInfo(EntityObject entity, java.lang.String logFile, java.lang.String scriptName, java.lang.String scriptCategory, java.lang.String scriptFile)
          Creates a new instance of ScriptLogInfo with attributes.
ScriptLogInfo(java.lang.String logFile, java.lang.String scriptName, java.lang.String scriptCategory, java.lang.String scriptFile)
          Creates a new instance of ScriptLogInfo with mandatory attributes.
 
Method Summary
 java.util.Date getCreationDate()
           
 java.lang.String getEntityClass()
           
 long getEntityId()
           
 java.lang.String getExceptionMsg()
           
 java.lang.String getLogFile()
           
 java.lang.String getScriptCategory()
           
 java.lang.String getScriptFile()
           
 java.lang.String getScriptName()
           
 void setCreationDate(java.util.Date creationDate)
           
 void setEntityClass(java.lang.String entityClass)
           
 void setEntityId(long entityId)
           
 void setExceptionMsg(java.lang.String exceptionMsg)
           
 void setLogFile(java.lang.String logFile)
           
 void setScriptCategory(java.lang.String scriptCategory)
           
 void setScriptFile(java.lang.String scriptFile)
           
 void setScriptName(java.lang.String scriptName)
           
 
Methods inherited from class org.figure8.join.core.EntityObject
clone, equals, getId, hashCode, isTransient
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptLogInfo

public ScriptLogInfo()
Creates a new instance of ScriptLogInfo.


ScriptLogInfo

public ScriptLogInfo(java.lang.String logFile,
                     java.lang.String scriptName,
                     java.lang.String scriptCategory,
                     java.lang.String scriptFile)
Creates a new instance of ScriptLogInfo with mandatory attributes.

Parameters:
logFile - The path of file corresponding to log
scriptName - The name of the executed script
scriptCategory - The category of the executed script
scriptFile - The path of file containing executed script

ScriptLogInfo

public ScriptLogInfo(EntityObject entity,
                     java.lang.String logFile,
                     java.lang.String scriptName,
                     java.lang.String scriptCategory,
                     java.lang.String scriptFile)
Creates a new instance of ScriptLogInfo with attributes.

Parameters:
entity - The referenced entity object
logFile - The path of file corresponding to log
scriptName - The name of the executed script
scriptCategory - The category of the executed script
scriptFile - The path of file containing executed script
Method Detail

getCreationDate

public java.util.Date getCreationDate()
Returns:
The date of creation of this log

setCreationDate

public void setCreationDate(java.util.Date creationDate)
Parameters:
creationDate - The date of creation of this log

getEntityId

public long getEntityId()
Returns:
The referenced entity unique identifier

setEntityId

public void setEntityId(long entityId)
Parameters:
entityId - The referenced entity unique identifier

getEntityClass

public java.lang.String getEntityClass()
Returns:
The referenced entity class

setEntityClass

public void setEntityClass(java.lang.String entityClass)
Parameters:
entityClass - The referenced entity class

getLogFile

public java.lang.String getLogFile()
Returns:
The path of file corresponding to log

setLogFile

public void setLogFile(java.lang.String logFile)
Parameters:
logFile - The path of file corresponding to log

getScriptName

public java.lang.String getScriptName()
Returns:
The name of executed script

setScriptName

public void setScriptName(java.lang.String scriptName)
Parameters:
scriptName - The name of executed script

getScriptCategory

public java.lang.String getScriptCategory()
Returns:
The category of executed script

setScriptCategory

public void setScriptCategory(java.lang.String scriptCategory)
Parameters:
scriptCategory - The category of executed script

getScriptFile

public java.lang.String getScriptFile()
Returns:
The path of file correcponding to script

setScriptFile

public void setScriptFile(java.lang.String scriptFile)
Parameters:
scriptFile - The path of file correcponding to script

getExceptionMsg

public java.lang.String getExceptionMsg()
Returns:
The exception message if script has failed

setExceptionMsg

public void setExceptionMsg(java.lang.String exceptionMsg)
Parameters:
exceptionMsg - The exception message if script has failed


Copyright © 2005-2008 Join. All Rights Reserved.