vishnu.parser.statements
Class CreateTableStatement

java.lang.Object
  extended by vishnu.parser.statements.CreateTableStatement
All Implemented Interfaces:
SQLStatement

public class CreateTableStatement
extends java.lang.Object
implements SQLStatement

 

Constructor Summary
CreateTableStatement(java.lang.String name, java.util.Collection<ColumnSignature> columns, java.util.Collection<java.lang.String> pks)
           
 
Method Summary
 java.lang.String getName()
          devuelve el nombre de la tabla
 StatementPerformer getPerformer()
           
 TableSignature getTableSignature()
          devuelve la signatura de tabla a crear
 boolean isQuery()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateTableStatement

public CreateTableStatement(java.lang.String name,
                            java.util.Collection<ColumnSignature> columns,
                            java.util.Collection<java.lang.String> pks)
Parameters:
name - es el nombre de la tabla a crear.
columns - es la lista de signaturas de columna a definir.
pks - es la lista de nombres de columnas que seran clave primaria.
Method Detail

getName

public java.lang.String getName()
devuelve el nombre de la tabla


getTableSignature

public TableSignature getTableSignature()
devuelve la signatura de tabla a crear


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getPerformer

public StatementPerformer getPerformer()
Specified by:
getPerformer in interface SQLStatement

isQuery

public boolean isQuery()
Specified by:
isQuery in interface SQLStatement