Top Description Fields Constructors Methods
org.h2.command.ddl

public Class CreateSchema

extends DefineCommand
Class Inheritance
Imports
java.util.ArrayList, org.h2.api.ErrorCode, org.h2.command.CommandInterface, org.h2.engine.Database, .RightOwner, .SessionLocal, org.h2.message.DbException, org.h2.schema.Schema

This class represents the statement CREATE SCHEMA

Field Summary

Modifier and TypeField and Description
private String
private boolean
private String
private ArrayList<String>
Inherited from org.h2.command.ddl.DefineCommand:
transactional

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
getType()

Implements abstract org.h2.command.Prepared.getType.

Get the command type as defined in CommandInterface

public void
public void
setIfNotExists(boolean ifNotExists)

public void
public void
public long
update()

Overrides org.h2.command.Prepared.update.

Execute the statement.

Inherited from org.h2.command.ddl.DefineCommand:
isReadOnlyisRetryableisTransactionalqueryMetasetTransactional

Field Detail

authorizationback to summary
private String authorization
ifNotExistsback to summary
private boolean ifNotExists
schemaNameback to summary
private String schemaName
tableEngineParamsback to summary
private ArrayList<String> tableEngineParams

Constructor Detail

CreateSchemaback to summary
public CreateSchema(SessionLocal session)

Method Detail

getTypeback to summary
public int getType()

Implements abstract org.h2.command.Prepared.getType.

Doc from org.h2.command.Prepared.getType.

Get the command type as defined in CommandInterface

Returns:int

the statement type

Annotations
@Override
setAuthorizationback to summary
public void setAuthorization(String userName)
setIfNotExistsback to summary
public void setIfNotExists(boolean ifNotExists)
setSchemaNameback to summary
public void setSchemaName(String name)
setTableEngineParamsback to summary
public void setTableEngineParams(ArrayList<String> tableEngineParams)
updateback to summary
public long update()

Overrides org.h2.command.Prepared.update.

Doc from org.h2.command.Prepared.update.

Execute the statement.

Returns:long

the update count

Annotations
@Override