code: @Override
     protected int addNodeRecord(NodeData data) throws SQLException
     {
        if (insertNode == null)
        {
           insertNode = dbConnection.prepareStatement(INSERT_NODE);
        }
        else
        {
           insertNode.clearParameters();
        }
  
        insertNode.setString(1, getInternalId(data.getIdentifier()));
        // if root then parent identifier equals space string
        insertNode.setString(2, data.getParentIdentifier() == null ? Constants.ROOT_PARENT_UUID : getInternalId(data
           .getParentIdentifier()));
        insertNode.setString(3, data.getQPath().getName().getAsString());
        insertNode.setString(4, this.containerConfig.containerName);
        insertNode.setInt(5, data.getPersistedVersion());
        insertNode.setInt(6, data.getQPath().getIndex());
        insertNode.setInt(7, data.getOrderNumber());
        return insertNode.executeUpdate();
     }
docs: {@inheritDoc}