public CFSecurityClusterBuff readBuffByIdIdx(CFSecurityAuthorization Authorization, long Id) {
   final String S_ProcName = "CFDbTestRamCluster.readBuffByIdIdx() ";
   CFSecurityClusterBuff buff = readDerivedByIdIdx(Authorization, Id);
   if ((buff != null) && buff.getClassCode().equals("CLUS")) {
     return ((CFSecurityClusterBuff) buff);
   } else {
     return (null);
   }
 }
 public CFSecurityClusterBuff lockBuff(
     CFSecurityAuthorization Authorization, CFSecurityClusterPKey PKey) {
   final String S_ProcName = "lockBuff";
   CFSecurityClusterBuff buff = readDerived(Authorization, PKey);
   if ((buff != null) && (!buff.getClassCode().equals("CLUS"))) {
     buff = null;
   }
   return (buff);
 }
 public CFSecurityClusterBuff[] readAllBuff(CFSecurityAuthorization Authorization) {
   final String S_ProcName = "CFDbTestRamCluster.readAllBuff";
   CFSecurityClusterBuff buff;
   ArrayList<CFSecurityClusterBuff> filteredList = new ArrayList<CFSecurityClusterBuff>();
   CFSecurityClusterBuff[] buffList = readAllDerived(Authorization);
   for (int idx = 0; idx < buffList.length; idx++) {
     buff = buffList[idx];
     if ((buff != null) && buff.getClassCode().equals("CLUS")) {
       filteredList.add(buff);
     }
   }
   return (filteredList.toArray(new CFSecurityClusterBuff[0]));
 }