Class CreateCacheStatementBuilder.CreateCacheStatement

java.lang.Object
com.tangosol.util.Base
com.tangosol.coherence.dslquery.statement.AbstractStatement
com.tangosol.coherence.dslquery.statement.CreateCacheStatementBuilder.CreateCacheStatement
All Implemented Interfaces:
Statement
Enclosing class:
CreateCacheStatementBuilder

public static class CreateCacheStatementBuilder.CreateCacheStatement extends AbstractStatement
Implementation of the CohQL "CREATE CACHE" command.
  • Field Details

    • f_sCache

      protected final String f_sCache
      The name of the cache to be created by this command.
  • Constructor Details

    • CreateCacheStatement

      public CreateCacheStatement(String sCache)
      Construct a CreateCacheStatement that will create a cache with the specified name.
      Parameters:
      sCache - the name of the cache to create
  • Method Details

    • execute

      public StatementResult execute(ExecutionContext ctx)
      Description copied from interface: Statement
      Execute a CohQL query or command and return the relevant result.
      Parameters:
      ctx - the context to use
      Returns:
      a StatementResult containing the results of executing the statement
    • showPlan

      public void showPlan(PrintWriter out)
      Description copied from interface: Statement
      Output to the provided PrintWriter a human readable trace of the actions that will be taken by this statement if or when executed.
      Parameters:
      out - the PrintWriter to write the trace to