Class MResourceUnAvailable

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_Persistent, I_S_ResourceUnAvailable, Evaluatee

public class MResourceUnAvailable extends X_S_ResourceUnAvailable
Resource Unavailable Model
Version:
$Id: MResourceUnAvailable.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, www.arhipac.ro
See Also:
  • Constructor Details

    • MResourceUnAvailable

      public MResourceUnAvailable(Properties ctx, String S_ResourceUnAvailable_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      S_ResourceUnAvailable_UU - UUID key
      trxName - Transaction
    • MResourceUnAvailable

      public MResourceUnAvailable(Properties ctx, int S_ResourceUnAvailable_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      S_ResourceUnAvailable_ID - id
      trxName - trx
    • MResourceUnAvailable

      public MResourceUnAvailable(Properties ctx, ResultSet rs, String trxName)
      MResourceUnAvailable
      Parameters:
      ctx - context
      rs - result set
      trxName -
  • Method Details

    • isUnAvailable

      public static boolean isUnAvailable(I_S_Resource r, Timestamp dateTime)
      Check if a resource is not available
      Parameters:
      r - resource
      dateTime - date (date is truncated to day)
      Returns:
      true if resource is unavailable
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Description copied from class: PO
      Called before Save for Pre-Save Operation
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - new record
      Returns:
      true if record can be saved
    • isUnAvailable

      public boolean isUnAvailable(Timestamp dateTime)
      Check if the resource is unavailable for date
      Parameters:
      dateTime -
      Returns:
      true if not available