public CFSecuritySecSessionBuff lockBuff(
     CFSecurityAuthorization Authorization, CFSecuritySecSessionPKey PKey) {
   final String S_ProcName = "lockBuff";
   CFSecuritySecSessionBuff buff = readDerived(Authorization, PKey);
   if ((buff != null) && (!buff.getClassCode().equals("SESS"))) {
     buff = null;
   }
   return (buff);
 }
 public CFSecuritySecSessionBuff readBuffByStartIdx(
     CFSecurityAuthorization Authorization, UUID SecUserId, Calendar Start) {
   final String S_ProcName = "CFSecurityRamSecSession.readBuffByStartIdx() ";
   CFSecuritySecSessionBuff buff = readDerivedByStartIdx(Authorization, SecUserId, Start);
   if ((buff != null) && buff.getClassCode().equals("SESS")) {
     return ((CFSecuritySecSessionBuff) buff);
   } else {
     return (null);
   }
 }
 public CFSecuritySecSessionBuff[] readAllBuff(CFSecurityAuthorization Authorization) {
   final String S_ProcName = "CFSecurityRamSecSession.readAllBuff";
   CFSecuritySecSessionBuff buff;
   ArrayList<CFSecuritySecSessionBuff> filteredList = new ArrayList<CFSecuritySecSessionBuff>();
   CFSecuritySecSessionBuff[] buffList = readAllDerived(Authorization);
   for (int idx = 0; idx < buffList.length; idx++) {
     buff = buffList[idx];
     if ((buff != null) && buff.getClassCode().equals("SESS")) {
       filteredList.add(buff);
     }
   }
   return (filteredList.toArray(new CFSecuritySecSessionBuff[0]));
 }
 public CFSecuritySecSessionBuff[] readBuffByFinishIdx(
     CFSecurityAuthorization Authorization, UUID SecUserId, Calendar Finish) {
   final String S_ProcName = "CFSecurityRamSecSession.readBuffByFinishIdx() ";
   CFSecuritySecSessionBuff buff;
   ArrayList<CFSecuritySecSessionBuff> filteredList = new ArrayList<CFSecuritySecSessionBuff>();
   CFSecuritySecSessionBuff[] buffList = readDerivedByFinishIdx(Authorization, SecUserId, Finish);
   for (int idx = 0; idx < buffList.length; idx++) {
     buff = buffList[idx];
     if ((buff != null) && buff.getClassCode().equals("SESS")) {
       filteredList.add((CFSecuritySecSessionBuff) buff);
     }
   }
   return (filteredList.toArray(new CFSecuritySecSessionBuff[0]));
 }