Package mks.ci.server.engine
Class LocalTriggerManager.ScriptIMBaseBean
- java.lang.Object
-
- mks.frame.triggers.ScriptExposableBaseBean
-
- mks.frame.triggers.beans.ScriptBaseBean
-
- mks.ci.server.engine.LocalTriggerManager.ScriptIMBaseBean
-
- All Implemented Interfaces:
mks.frame.triggers.ScriptExposableBean
- Direct Known Subclasses:
CopyTree.ScriptArgsBaseBean
,CopyTree.ScriptBranchResultBean
,CopyTree.ScriptCopyTreeResultBean
,EngineComment.ScriptReviewSessionArgsBean
,EngineLabel.ScriptLabelArgsBean
,EngineTestResult.ScriptTestResultsArgsBean
,LocalTriggerManager.ScriptAgentBean
,LocalTriggerManager.ScriptBranchBean
,LocalTriggerManager.ScriptCPHasAttributesBean
,LocalTriggerManager.ScriptIdentifiedBean
,LocalTriggerManager.ScriptLabelBean
,LocalTriggerManager.ScriptOperationBean
,LocalTriggerManager.ScriptOperationsBean
,LocalTriggerManager.ScriptRequirementsBean
,LocalTriggerManager.ScriptReviewSessionBean
,LocalTriggerManager.ScriptServerBean
,LocalTriggerManager.ScriptSourceTraceBean
,LocalTriggerManager.ScriptTestResultBean
,LocalTriggerManager.ScriptTestSessionRunBean
,LocalTriggerManager.ScriptTestStepResultBean
,LocalTriggerManager.ScriptTimeEntryDeltaBean
,LocalTriggerManager.ScriptVerdictTypeBean
,LockTriggerHandler.ScriptCommonBaseBean
- Enclosing class:
- LocalTriggerManager
public abstract static class LocalTriggerManager.ScriptIMBaseBean extends ScriptBaseBean
For any bean which needs access to various of the cached information.
-
-
Constructor Summary
Constructors Constructor Description ScriptIMBaseBean(int userId, java.sql.Connection c)
ScriptIMBaseBean(mks.ci.common.AdminLookup al)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getCurrentDatabaseTime()
Retrieve the current time in the database.static java.util.Date
getCurrentDatabaseTime(mks.ci.server.engine.EngineSQL e, java.sql.Connection c)
Retrieve the current time in the database.java.lang.String
getCurrentUser()
Return the end-user responsible for this event. i.e. the one authenticated at the client.LocalTriggerManager.ScriptServerBean
getServerBean()
int
getUserID()
boolean
isParallelProcessingEnabled()
-
Methods inherited from class mks.frame.triggers.beans.ScriptBaseBean
getEnvironmentBean, getExposedName, setEnvironmentBean
-
-
-
-
Method Detail
-
getUserID
public int getUserID()
-
getCurrentUser
public java.lang.String getCurrentUser()
Return the end-user responsible for this event. i.e. the one authenticated at the client.
-
getServerBean
public LocalTriggerManager.ScriptServerBean getServerBean()
-
getCurrentDatabaseTime
public java.util.Date getCurrentDatabaseTime()
Retrieve the current time in the database. Due to the potential for time skew between the Windchill RV&S server and the database time, the database time should normally be used for most operations.This method returns a java Date object. If you assign the results to a field, use the @link LocalTriggerManager$ScriptIssueDeltaBean#setDateFieldValue(String, Date) setDateFieldValue()} method.
If there is a problem getting the date value the server time will be returned.
-
getCurrentDatabaseTime
public static java.util.Date getCurrentDatabaseTime(mks.ci.server.engine.EngineSQL e, java.sql.Connection c) throws java.sql.SQLException, mks.ci.exception.CIException
Retrieve the current time in the database. Due to the potential for time skew between the Windchill RV&S server and the database time, the database time should normally be used for most operations.This method returns a java Date object. If you assign the results to a field, use the { @link LocalTriggerManager$ScriptIssueDeltaBean#setDateFieldValue(String, Date) setDateFieldValue()} method.
- Throws:
mks.ci.exception.CIException
java.sql.SQLException
-
isParallelProcessingEnabled
public boolean isParallelProcessingEnabled()
- Returns:
- true if parallel processing is enabled.
-
-