Interface QueryKey

  • All Known Implementing Classes:
    QueryKeyImpl

    public interface QueryKey
    Identity of a query to replace SNode argument in GeneratorQueryProvider methods. SNode is not appropriate for use of GeneratorQueryProvider from generated code. Although it's not a big deal for local/same generator queries, where direct method call is possible, it might come handy if I change generated templates to reuse query instances. Another benefit is that QueryKey would hide implementation detail (like node.getNodeId().toString) from generated code.
    Since:
    3.4
    • Method Detail

      • getTemplateNode

        @Nullable
        SNodeReference getTemplateNode()
        Returns:
        presumably, an identity of a query host handy to identify problems