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

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

java.lang.Object
  extended by com.lapetus_ltd._2009.xml.types.XLptsDBCreateStatementTableTemporaryType
      extended by com.lapetus_ltd.api.db.xml.types.TLptsDBCreateStatementTableTemporaryType

public class TLptsDBCreateStatementTableTemporaryType
extends XLptsDBCreateStatementTableTemporaryType

Class Description : Initiates the temporary table type for the CREATE statements.


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


Field Summary
 
Fields inherited from class com.lapetus_ltd._2009.xml.types.XLptsDBCreateStatementTableTemporaryType
globalLocal, temporary
 
Constructor Summary
TLptsDBCreateStatementTableTemporaryType()
           This constructor initiates the temporary variable and the GlobalLocal.
TLptsDBCreateStatementTableTemporaryType(XLptsDBCreateStatementTableTemporaryType ctt)
           This constructor copies the driver information from an TLptsDBCreateStatementTableTemporaryType.
 
Method Summary
 
Methods inherited from class com.lapetus_ltd._2009.xml.types.XLptsDBCreateStatementTableTemporaryType
getGlobalLocal, isTemporary, setGlobalLocal, setTemporary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TLptsDBCreateStatementTableTemporaryType

public TLptsDBCreateStatementTableTemporaryType()

This constructor initiates the temporary variable and the GlobalLocal.

Thread Safe : Yes

Spawns its own Thread : No

May Return NULL : Never.

Notes : Default Constructor set temporary to false and create a new TLptsCreateTableGlobalLocal.

Example :

   TLptsStatement createStatement = new TLptsStatement(connection,XLptsDBTypeOfStatementType.CREATE);
   TLptsDBCreateStatementRootType rootType = new TLptsDBCreateStatementRootType();
   rootType.setTitle("root");
   //create a table
   TLptsDBCreateStatementTableType table = new TLptsDBCreateStatementTableType();
   //Set the name of the table
   table.setTable("newTable");
   //set the table in the root type
   rootType.setTable(table);

   //In some DBs the tables can be temporary
   TLptsDBCreateStatementTableTemporaryType temporary = new TLptsDBCreateStatementTableTemporaryType();
   //Set true if we want the table to be temporary
   temporary.setTemporary(false);

   //Set against the temporary type
   TLptsDBCreateStatementTableGlobalLocal globalLocal = new TLptsDBCreateStatementTableGlobalLocal();
   //Temporary table can be global, local or nothing specific
   globalLocal.setGlobalLocal(XLptsDBCreateStatementTableGlobalLocalType.GLOBAL);
   temporary.setGlobalLocal(globalLocal);
   table.setTemporary(temporary);
   ...
 


TLptsDBCreateStatementTableTemporaryType

public TLptsDBCreateStatementTableTemporaryType(XLptsDBCreateStatementTableTemporaryType ctt)

This constructor copies the driver information from an TLptsDBCreateStatementTableTemporaryType.

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 TLptsDBCreateStatementTableTemporaryType class.

Example :


 public void example(TLptsDBCreateStatementTableTemporaryType ctt)
 {
   TLptsCreateTableTemporary temporary = new TLptsCreateTableTemporary(ctt);
 }

 

Parameters:
ctt - the class object to copy.


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