Class MPrivateAccess

    • Constructor Detail

      • MPrivateAccess

        public MPrivateAccess​(Properties ctx,
                              int ignored,
                              String trxName)
        Persistency Constructor
        Parameters:
        ctx - context
        ignored - ignored
        trxName - transaction
      • MPrivateAccess

        public MPrivateAccess​(Properties ctx,
                              ResultSet rs,
                              String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction
      • MPrivateAccess

        public MPrivateAccess​(Properties ctx,
                              int AD_User_ID,
                              int AD_Table_ID,
                              int Record_ID)
        New Constructor
        Parameters:
        ctx - context
        AD_User_ID - user
        AD_Table_ID - table
        Record_ID - record
    • Method Detail

      • get

        public static MPrivateAccess get​(Properties ctx,
                                         int AD_User_ID,
                                         int AD_Table_ID,
                                         int Record_ID)
        Load Pricate Access
        Parameters:
        ctx - context
        AD_User_ID - user
        AD_Table_ID - table
        Record_ID - record
        Returns:
        access or null if not found
      • getLockedRecordWhere

        public static String getLockedRecordWhere​(int AD_Table_ID,
                                                  int AD_User_ID)
        Get Where Clause of Locked Records for Table
        Parameters:
        AD_Table_ID - table
        AD_User_ID - user requesting info
        Returns:
        "<>1" or " NOT IN (1,2)" or null