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

public Class CreateLinkedTable

extends SchemaCommand
Class Inheritance
Imports
org.h2.api.ErrorCode, org.h2.command.CommandInterface, org.h2.engine.Database, .SessionLocal, org.h2.message.DbException, org.h2.schema.Schema, org.h2.table.TableLink

This class represents the statement CREATE LINKED TABLE

Field Summary

Modifier and TypeField and Description
private boolean
private String
private String
private boolean
private int
private boolean
private boolean
private boolean
private String
private String
private String
private boolean
private String
private boolean
private String
private String

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
setAutoCommit(boolean
to set
mode
)

Specify if the autocommit mode is activated or not

public void
setComment(String comment)

public void
setDriver(String driver)

public void
setEmitUpdates(boolean emitUpdates)

public void
setFetchSize(int
to set
fetchSize
)

Specify the number of rows fetched by the linked table command

public void
setForce(boolean force)

public void
setGlobalTemporary(boolean globalTemp)

public void
setIfNotExists(boolean ifNotExists)

public void
setOriginalSchema(String originalSchema)

public void
setOriginalTable(String originalTable)

public void
setPassword(String password)

public void
setReadOnly(boolean readOnly)

public void
setTableName(String tableName)

public void
setTemporary(boolean temp)

public void
public void
public long
update()

Overrides org.h2.command.Prepared.update.

Execute the statement.

Inherited from org.h2.command.ddl.SchemaCommand:
getSchema

Field Detail

autocommitback to summary
private boolean autocommit
commentback to summary
private String comment
driverback to summary
private String driver
emitUpdatesback to summary
private boolean emitUpdates
fetchSizeback to summary
private int fetchSize
forceback to summary
private boolean force
globalTemporaryback to summary
private boolean globalTemporary
ifNotExistsback to summary
private boolean ifNotExists
originalSchemaback to summary
private String originalSchema
originalTableback to summary
private String originalTable
passwordback to summary
private String password
readOnlyback to summary
private boolean readOnly
tableNameback to summary
private String tableName
temporaryback to summary
private boolean temporary
urlback to summary
private String url
userback to summary
private String user

Constructor Detail

CreateLinkedTableback to summary
public CreateLinkedTable(SessionLocal session, Schema schema)

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
setAutoCommitback to summary
public void setAutoCommit(boolean mode)

Specify if the autocommit mode is activated or not

Parameters
mode:boolean

to set

setCommentback to summary
public void setComment(String comment)
setDriverback to summary
public void setDriver(String driver)
setEmitUpdatesback to summary
public void setEmitUpdates(boolean emitUpdates)
setFetchSizeback to summary
public void setFetchSize(int fetchSize)

Specify the number of rows fetched by the linked table command

Parameters
fetchSize:int

to set

setForceback to summary
public void setForce(boolean force)
setGlobalTemporaryback to summary
public void setGlobalTemporary(boolean globalTemp)
setIfNotExistsback to summary
public void setIfNotExists(boolean ifNotExists)
setOriginalSchemaback to summary
public void setOriginalSchema(String originalSchema)
setOriginalTableback to summary
public void setOriginalTable(String originalTable)
setPasswordback to summary
public void setPassword(String password)
setReadOnlyback to summary
public void setReadOnly(boolean readOnly)
setTableNameback to summary
public void setTableName(String tableName)
setTemporaryback to summary
public void setTemporary(boolean temp)
setUrlback to summary
public void setUrl(String url)
setUserback to summary
public void setUser(String user)
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