docs: protected void appendWhereClause(ClassDescriptor cld, boolean useLocking, StringBuffer stmt)
      {
          FieldDescriptor[] pkFields = cld.getPkFields();
          FieldDescriptor[] fields;
  
          fields = pkFields;
          if(useLocking)
          {
              FieldDescriptor[] lockingFields = cld.getLockingFields();
              if(lockingFields.length > 0)
              {
                  fields = new FieldDescriptor[pkFields.length + lockingFields.length];
                  System.arraycopy(pkFields, 0, fields, 0, pkFields.length);
                  System.arraycopy(lockingFields, 0, fields, pkFields.length, lockingFields.length);
              }
          }
  
          appendWhereClause(fields, stmt);
      }