Class LocalTriggerManager.ScriptIMBaseBean

    • Constructor Detail

      • ScriptIMBaseBean

        public ScriptIMBaseBean​(int userId,
                                java.sql.Connection c)
      • ScriptIMBaseBean

        public ScriptIMBaseBean​(mks.ci.common.AdminLookup al)
    • 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.
      • 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.