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

io.jdbd.vendor.stmt.Value Maven / Gradle / Ivy

There is a newer version: 0.12.7
Show newest version
package io.jdbd.vendor.stmt;


import io.jdbd.lang.Nullable;
import io.jdbd.meta.DataType;
import io.jdbd.statement.Parameter;

/**
 * 

* This interface representing a value that is bound to sql. * This is a base interface of below interface: *

    *
  • {@link ParamValue}
  • *
  • {@link NamedValue }
  • *
*
*
* * @see ParamValue * @see NamedValue */ public interface Value { /** * Get parameter value * * @return
    *
  • null
  • *
  • non-{@link Parameter} instance
  • *
  • {@link Parameter instance}
  • *
*/ @Nullable Object get(); /** * Get parameter value,throw {@link NullPointerException} if value is null * @return
    *
  • non-{@link Parameter} instance
  • *
  • {@link Parameter instance}
  • *
* @throws NullPointerException throw when param is null */ Object getNonNull() throws NullPointerException; /** * Get parameter type * @return sql type of bind value. */ DataType getType(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy