Interface PreparedPrismQuery


public interface PreparedPrismQuery
Prepared Prism Query with placeholders.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    default ObjectFilter
    bind(Object... args)
    Binds positional placeholders and returns filter
    void
    bindValue(Object realValue)
    Binds next unbound value to provided value
    void
    set(String name, Object realValue)
    Binds named placeholder to provided value
    Returns complete filter with values bound
  • Method Details

    • bindValue

      void bindValue(Object realValue) throws SchemaException
      Binds next unbound value to provided value
      Parameters:
      realValue - Real Value to be bound
      Throws:
      SchemaException - If provided value is invalid according to schema definition (type of value
      IllegalStateException - If there is no positional value to be bound
    • set

      void set(String name, Object realValue) throws SchemaException
      Binds named placeholder to provided value
      Parameters:
      name - Name of named placeholder
      realValue - Real Value to be bound
      Throws:
      SchemaException - If provided value is invalid according to schema definition (type of value
      IllegalStateException - If there is no positional value to be bound
    • toFilter

      ObjectFilter toFilter() throws SchemaException
      Returns complete filter with values bound
      Returns:
      Object Filter parser from Axiom
      Throws:
      SchemaException - If resulting filter with bound values is invalid
      IllegalStateException - If not all placeholders were bound prior to invocation
    • bind

      default ObjectFilter bind(Object... args) throws SchemaException
      Binds positional placeholders and returns filter
      Parameters:
      args -
      Returns:
      Throws:
      SchemaException
    • allPlaceholdersBound

      boolean allPlaceholdersBound()