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

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

java.lang.Object
  extended by com.lapetus_ltd._2009.xml.types.XLptsDBCreateStatementTableGlobalLocal
      extended by com.lapetus_ltd.api.db.xml.types.TLptsDBCreateStatementTableGlobalLocal

public class TLptsDBCreateStatementTableGlobalLocal
extends XLptsDBCreateStatementTableGlobalLocal

Class Description : Initiates the global and local type for CREATE statements.


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


Field Summary
 
Fields inherited from class com.lapetus_ltd._2009.xml.types.XLptsDBCreateStatementTableGlobalLocal
globalLocal
 
Constructor Summary
TLptsDBCreateStatementTableGlobalLocal()
           This constructor initiates GlobalLocal.
TLptsDBCreateStatementTableGlobalLocal(XLptsDBCreateStatementTableGlobalLocal ctgl)
           This constructor copies the driver information from an XLptsDBCreateStatementTableGlobalLocal.
 
Method Summary
 
Methods inherited from class com.lapetus_ltd._2009.xml.types.XLptsDBCreateStatementTableGlobalLocal
getGlobalLocal, setGlobalLocal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TLptsDBCreateStatementTableGlobalLocal

public TLptsDBCreateStatementTableGlobalLocal()

This constructor initiates GlobalLocal.

Thread Safe : Yes

Spawns its own Thread : No

May Return NULL : Never.

Notes : Default Constructor set globalLocal to NONE and active to false.

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


TLptsDBCreateStatementTableGlobalLocal

public TLptsDBCreateStatementTableGlobalLocal(XLptsDBCreateStatementTableGlobalLocal ctgl)

This constructor copies the driver information from an XLptsDBCreateStatementTableGlobalLocal.

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

Example :


 public void example(XLptsDBCreateStatementTableGlobalLocal ctgl)
 {
   TLptsCreateTableGlobalLocal globalLocal = new XLptsDBCreateStatementTableGlobalLocal(ctgl);
 }

 

Parameters:
ctgl - the class object to copy.


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