Copyright 2009,2010, Lapetus Systems Ltd. (All rights reserved)

com.lapetus_ltd.api.db.xml.types
Class TLptsDBCreateStatementTableCommitType

java.lang.Object
  extended by com.lapetus_ltd._2009.xml.types.XLptsDBCreateStatementTableCommitType
      extended by com.lapetus_ltd.api.db.xml.types.TLptsDBCreateStatementTableCommitType

public class TLptsDBCreateStatementTableCommitType
extends XLptsDBCreateStatementTableCommitType

Class Description : This initialises the commit type of the CREATE statement.



$LastChangedRevision: 948 $
$LastChangedDate:: 2010-07-26 10:51:44#$


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

TLptsDBCreateStatementTableCommitType

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);
  ...
 }
 

Parameters:
table - the CreateTable.

TLptsDBCreateStatementTableCommitType

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);
 }

 

Parameters:
ctc - the class object to copy.
Method Detail

getTable

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);
   }
 }
 

Returns:
TLptsCreateTableType of TLptsCreateTableCommit.

setTable

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);
   }
 }
 

Parameters:
table - the TLptsDBCreateStatementTableType of the TLptsCreateTableCommit.


Copyright 2009,2010, Lapetus Systems Ltd. (All rights reserved)