Package edu.caltech.nanodb.commands
Class CreateViewCommand
- java.lang.Object
-
- edu.caltech.nanodb.commands.Command
-
- edu.caltech.nanodb.commands.CreateViewCommand
-
public class CreateViewCommand extends Command
This command-class represents the CREATE VIEW DDL command.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.caltech.nanodb.commands.Command
Command.Type
-
-
Field Summary
Fields Modifier and Type Field Description private SelectClause
selectClause
private java.lang.String
viewName
-
Constructor Summary
Constructors Constructor Description CreateViewCommand(java.lang.String viewName, SelectClause selectClause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(NanoDBServer server)
Actually performs the command.-
Methods inherited from class edu.caltech.nanodb.commands.Command
getCommandType
-
-
-
-
Field Detail
-
viewName
private java.lang.String viewName
-
selectClause
private SelectClause selectClause
-
-
Constructor Detail
-
CreateViewCommand
public CreateViewCommand(java.lang.String viewName, SelectClause selectClause)
-
-
Method Detail
-
execute
public void execute(NanoDBServer server) throws ExecutionException
Description copied from class:Command
Actually performs the command.- Specified by:
execute
in classCommand
- Throws:
ExecutionException
- if an issue occurs during command execution
-
-