All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.julienviet.reactivex.pgclient.Row Maven / Gradle / Ivy

There is a newer version: 0.6.0
Show newest version
/*
 * Copyright 2014 Red Hat, Inc.
 *
 * Red Hat licenses this file to you under the Apache License, version 2.0
 * (the "License"); you may not use this file except in compliance with the
 * License.  You may obtain a copy of the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */

package com.julienviet.reactivex.pgclient;

import java.util.Map;
import io.reactivex.Observable;
import io.reactivex.Flowable;
import io.reactivex.Single;
import io.reactivex.Completable;
import io.reactivex.Maybe;
import io.vertx.core.json.JsonArray;
import io.vertx.reactivex.core.buffer.Buffer;
import io.vertx.core.json.JsonObject;


@io.vertx.lang.reactivex.RxGen(com.julienviet.pgclient.Row.class)
public class Row extends Tuple {

  @Override
  public String toString() {
    return delegate.toString();
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    Row that = (Row) o;
    return delegate.equals(that.delegate);
  }
  
  @Override
  public int hashCode() {
    return delegate.hashCode();
  }

  public static final io.vertx.lang.reactivex.TypeArg __TYPE_ARG = new io.vertx.lang.reactivex.TypeArg<>(
    obj -> new Row((com.julienviet.pgclient.Row) obj),
    Row::getDelegate
  );

  private final com.julienviet.pgclient.Row delegate;
  
  public Row(com.julienviet.pgclient.Row delegate) {
    super(delegate);
    this.delegate = delegate;
  }

  public com.julienviet.pgclient.Row getDelegate() {
    return delegate;
  }

  /**
   * Get a boolean value at pos.
   * @param name the column
   * @return the value or null
   */
  public Boolean getBoolean(String name) { 
    Boolean ret = delegate.getBoolean(name);
    return ret;
  }

  /**
   * Get an object value at pos.
   * @param name the column
   * @return the value or null
   */
  public Object getValue(String name) { 
    Object ret = (Object) delegate.getValue(name);
    return ret;
  }

  /**
   * Get an integer value at pos.
   * @param name the column
   * @return the value or null
   */
  public Integer getInteger(String name) { 
    Integer ret = delegate.getInteger(name);
    return ret;
  }

  /**
   * Get a long value at pos.
   * @param name the column
   * @return the value or null
   */
  public Long getLong(String name) { 
    Long ret = delegate.getLong(name);
    return ret;
  }

  /**
   * Get a float value at pos.
   * @param name the column
   * @return the value or null
   */
  public Float getFloat(String name) { 
    Float ret = delegate.getFloat(name);
    return ret;
  }

  /**
   * Get a double value at pos.
   * @param name the column
   * @return the value or null
   */
  public Double getDouble(String name) { 
    Double ret = delegate.getDouble(name);
    return ret;
  }

  /**
   * Get a string value at pos.
   * @param name the column
   * @return the value or null
   */
  public Character getCharacter(String name) { 
    Character ret = delegate.getCharacter(name);
    return ret;
  }

  /**
   * Get a string value at pos.
   * @param name the column
   * @return the value or null
   */
  public String getString(String name) { 
    String ret = delegate.getString(name);
    return ret;
  }

  /**
   * Get a json object value at pos.
   * @param name the column
   * @return the value or null
   */
  public JsonObject getJsonObject(String name) { 
    JsonObject ret = delegate.getJsonObject(name);
    return ret;
  }

  /**
   * Get a json array value at pos.
   * @param name the column
   * @return the value or null
   */
  public JsonArray getJsonArray(String name) { 
    JsonArray ret = delegate.getJsonArray(name);
    return ret;
  }

  /**
   * Get a buffer value at pos.
   * @param name the column
   * @return the value or null
   */
  public Buffer getBuffer(String name) { 
    Buffer ret = Buffer.newInstance(delegate.getBuffer(name));
    return ret;
  }


  public static  Row newInstance(com.julienviet.pgclient.Row arg) {
    return arg != null ? new Row(arg) : null;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy