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

public Class DropDatabase

extends DefineCommand
Class Inheritance
Imports
java.util.ArrayList, .Collection, org.h2.command.CommandInterface, org.h2.engine.Database, .DbObject, .Right, .RightOwner, .Role, .SessionLocal, .User, org.h2.schema.Schema, .SchemaObject, .Sequence, org.h2.table.Table, .TableType, org.h2.value.ValueNull

This class represents the statement DROP ALL OBJECTS

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static void
addAll(Collection<Schema> schemas, int type, ArrayList<SchemaObject> list)

private void
public int
getType()

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

Get the command type as defined in CommandInterface

public void
setDeleteFiles(boolean b)

public void
setDropAllObjects(boolean b)

public long
update()

Overrides org.h2.command.Prepared.update.

Execute the statement.

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

Field Detail

deleteFilesback to summary
private boolean deleteFiles
dropAllObjectsback to summary
private boolean dropAllObjects

Constructor Detail

DropDatabaseback to summary
public DropDatabase(SessionLocal session)

Method Detail

addAllback to summary
private static void addAll(Collection<Schema> schemas, int type, ArrayList<SchemaObject> list)
dropAllObjectsback to summary
private void dropAllObjects()
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
setDeleteFilesback to summary
public void setDeleteFiles(boolean b)
setDropAllObjectsback to summary
public void setDropAllObjects(boolean b)
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