code: protected Object[] createParams(NodeId id, Object p, boolean before) {
  
          // Create the key
          List<Object> key = new ArrayList<Object>();
          if (getStorageModel() == SM_BINARY_KEYS) {
              key.add(id.getRawBytes());
          } else {
              key.add(id.getMostSignificantBits());
              key.add(id.getLeastSignificantBits());
          }
  
          // Create the parameters
          List<Object> params = new ArrayList<Object>();
          if (before) {
              params.add(p);
              params.addAll(key);
          } else {
              params.addAll(key);
              params.add(p);
          }
  
          return params.toArray();
      }
docs: Creates a parameter array for an SQL statement that needs
  (i) a node identifier, and (2) another parameter.
  
  @param id the node id
  @param p the other parameter
  @param before whether the other parameter should be before the uuid parameter
  @return an Object array that represents the parameters