Class QueryCompiler

java.lang.Object
org.litebridge.orm.engine.QueryCompiler

public final class QueryCompiler extends Object
Compiles a QueryNode chain into a SelectSpec.
  • Constructor Details

  • Method Details

    • compile

      public void compile(QueryNode node, SelectSpec selectSpec)
      Compiles the given QueryNode chain into the provided SelectSpec.
      Parameters:
      node - the end of the query node chain
      selectSpec - the select specification to populate
    • compile

      public void compile(QueryNode node, DeleteSpec deleteSpec)
      Compiles the given QueryNode chain into the provided DeleteSpec.
      Parameters:
      node - the end of the query node chain
      deleteSpec - the delete specification to populate
    • compile

      public void compile(QueryNode node, UpdateSpec updateSpec)
      Compiles the given QueryNode chain into the provided UpdateSpec.
      Parameters:
      node - the end of the query node chain
      updateSpec - the update specification to populate
    • compile

      public void compile(QueryNode node, InsertSpec insertSpec)
      Compiles the given QueryNode chain into the provided InsertSpec.
      Parameters:
      node - the end of the query node chain
      insertSpec - the insert specification to populate