|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lapetus_ltd._2009.xml.types.XLptsDBCreateStatementTableCommitType
com.lapetus_ltd.api.db.xml.types.TLptsDBCreateStatementTableCommitType
public class TLptsDBCreateStatementTableCommitType
Class Description : This initialises the commit type of the CREATE statement.
Field Summary |
---|
Fields inherited from class com.lapetus_ltd._2009.xml.types.XLptsDBCreateStatementTableCommitType |
---|
commitType |
Constructor Summary | |
---|---|
TLptsDBCreateStatementTableCommitType(TLptsDBCreateStatementTableType table)
This constructor initiates Create Table Temporary Commit Type. |
|
TLptsDBCreateStatementTableCommitType(XLptsDBCreateStatementTableCommitType ctc)
This constructor copies the driver information from an exiting XLptsDBCreateStatementTableCommitType. |
Method Summary | |
---|---|
TLptsDBCreateStatementTableType |
getTable()
This function gets the table set against this commit type. |
void |
setTable(TLptsDBCreateStatementTableType table)
This function sets the table for convenient programming. |
Methods inherited from class com.lapetus_ltd._2009.xml.types.XLptsDBCreateStatementTableCommitType |
---|
getCommitType, setCommitType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TLptsDBCreateStatementTableCommitType(TLptsDBCreateStatementTableType table)
This constructor initiates Create Table Temporary Commit Type.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : Never.
Notes : This Constructor sets the commit type to PRESERVE and CreateTable as table name.
Example :
TLptsStatement createStatement = new TLptsStatement(connection,XLptsDBTypeOfStatementType.CREATE); TLptsDBCreateStatementRootType rootType = new TLptsDBCreateStatementRootType(); rootType.setTitle("root"); //Set a table TLptsDBCreateStatementTableType table = new TLptsDBCreateStatementTableType(); //Set the name of the table table.setTable("newTable"); ... TLptsDBCreateStatementTableCommitType commit = new TLptsDBCreateStatementTableCommitType(table); commit.setCommitType(XLptsDBCreateTableCommitType.DELETE); table.setCommitType(commit); ... }
table
- the CreateTable.public TLptsDBCreateStatementTableCommitType(XLptsDBCreateStatementTableCommitType ctc)
This constructor copies the driver information from an exiting XLptsDBCreateStatementTableCommitType.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : Never.
Notes : Use this function every time you need to copy or instantiate a type XLptsDBCreateStatementTableCommitType class.
Example :
public void example(XLptsDBCreateStatementTableCommitType ctc) { TLptsCreateTableCommit tableCommit = new XLptsDBCreateStatementTableGlobalLocal(ctc); }
ctc
- the class object to copy.Method Detail |
---|
public TLptsDBCreateStatementTableType getTable()
This function gets the table set against this commit type.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : Never.
Notes :
Example :
//Check if we have a TLptsDBCreateStatementTableCommitType if table is temporary to set our commit or not private void (TLptsDBCreateStatementTableCommitType value) { if(value.getTable().getTemporary().isTemporary()) { commit.setCommitType(XLptsDBCreateTableCommitType.DELETE); table.setCommitType(commit); } }
public void setTable(TLptsDBCreateStatementTableType table)
This function sets the table for convenient programming.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : Never.
Notes : Use this function to set table of the table commit type.
Example :
//Check if we have a TLptsDBCreateStatementTableCommitType if table is temporary to set our commit or not private void (TLptsDBCreateStatementTableCommitType value) { if(value.getTable().getTemporary().isTemporary()) { commit.setCommitType(XLptsDBCreateTableCommitType.DELETE); table.setCommitType(commit); } }
table
- the TLptsDBCreateStatementTableType of the TLptsCreateTableCommit.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |