Package org.h2.command.ddl
Class CreateLinkedTable
java.lang.Object
org.h2.command.Prepared
org.h2.command.ddl.DefineCommand
org.h2.command.ddl.SchemaCommand
org.h2.command.ddl.CreateLinkedTable
This class represents the statement
CREATE LINKED TABLE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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
Fields inherited from class org.h2.command.ddl.DefineCommand
transactional
Fields inherited from class org.h2.command.Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getType()
Get the command type as defined in CommandInterfacevoid
setAutoCommit
(boolean mode) Specify if the autocommit mode is activated or notvoid
setComment
(String comment) void
void
setEmitUpdates
(boolean emitUpdates) void
setFetchSize
(int fetchSize) Specify the number of rows fetched by the linked table commandvoid
setForce
(boolean force) void
setGlobalTemporary
(boolean globalTemp) void
setIfNotExists
(boolean ifNotExists) void
setOriginalSchema
(String originalSchema) void
setOriginalTable
(String originalTable) void
setPassword
(String password) void
setReadOnly
(boolean readOnly) void
setTableName
(String tableName) void
setTemporary
(boolean temp) void
void
long
update()
Execute the statement.Methods inherited from class org.h2.command.ddl.SchemaCommand
getSchema
Methods inherited from class org.h2.command.ddl.DefineCommand
isReadOnly, isTransactional, queryMeta, setTransactional
Methods inherited from class org.h2.command.Prepared
checkCanceled, checkParameters, collectDependencies, getCteCleanups, getCurrentRowNumber, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, toString
-
Field Details
-
tableName
-
driver
-
url
-
user
-
password
-
originalSchema
-
originalTable
-
ifNotExists
private boolean ifNotExists -
comment
-
emitUpdates
private boolean emitUpdates -
force
private boolean force -
temporary
private boolean temporary -
globalTemporary
private boolean globalTemporary -
readOnly
private boolean readOnly -
fetchSize
private int fetchSize -
autocommit
private boolean autocommit
-
-
Constructor Details
-
CreateLinkedTable
-
-
Method Details
-
setTableName
-
setDriver
-
setOriginalTable
-
setPassword
-
setUrl
-
setUser
-
setIfNotExists
public void setIfNotExists(boolean ifNotExists) -
setFetchSize
public void setFetchSize(int fetchSize) Specify the number of rows fetched by the linked table command- Parameters:
fetchSize
- to set
-
setAutoCommit
public void setAutoCommit(boolean mode) Specify if the autocommit mode is activated or not- Parameters:
mode
- to set
-
update
public long update()Description copied from class:Prepared
Execute the statement. -
setEmitUpdates
public void setEmitUpdates(boolean emitUpdates) -
setComment
-
setForce
public void setForce(boolean force) -
setTemporary
public void setTemporary(boolean temp) -
setGlobalTemporary
public void setGlobalTemporary(boolean globalTemp) -
setReadOnly
public void setReadOnly(boolean readOnly) -
setOriginalSchema
-
getType
public int getType()Description copied from class:Prepared
Get the command type as defined in CommandInterface
-