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

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

java.lang.Object
  extended by com.lapetus_ltd._2009.xml.types.XLptsDBCreateStatementRootType
      extended by com.lapetus_ltd.api.db.xml.types.TLptsDBCreateStatementRootType

public class TLptsDBCreateStatementRootType
extends XLptsDBCreateStatementRootType

Class Description : Initiates the root type for the CREATE statement.

This type holds the name and the table to be created. The table then holds all the constraints and columns.
Therefore, all the columns and constraints (table and column) are added to this root for processing.

$LastChangedRevision: 1165 $
$LastChangedDate:: 2010-11-03 10:37:03#$


Field Summary
 
Fields inherited from class com.lapetus_ltd._2009.xml.types.XLptsDBCreateStatementRootType
id, table, title, version
 
Constructor Summary
TLptsDBCreateStatementRootType()
           This constructor initiates the Create Statement Root.
TLptsDBCreateStatementRootType(XLptsDBCreateStatementRootType csrt)
           This constructor copies the Create Root information from an existing XLptsDBCreateStatementRootType.
 
Method Summary
 boolean equals(java.lang.Object obj)
           Check for equal TLptsDBCreateStatementRootType objects.
 
Methods inherited from class com.lapetus_ltd._2009.xml.types.XLptsDBCreateStatementRootType
getId, getTable, getTitle, getVersion, setId, setTable, setTitle, setVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TLptsDBCreateStatementRootType

public TLptsDBCreateStatementRootType()

This constructor initiates the Create Statement Root.

Thread Safe : Yes

Spawns its own Thread : No

May Return NULL : Never.

Notes :
Default Constructor sets the ID, title as "CREATE" and set a new CreateTable.

Example :

   //Create the statement and set the Type of Statement to Update.
   TLptsStatement createStatement = new TLptsStatement(connection,XLptsDBTypeOfStatementType.CREATE);
   //Get the rootType
   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);
   ...
 


TLptsDBCreateStatementRootType

public TLptsDBCreateStatementRootType(XLptsDBCreateStatementRootType csrt)

This constructor copies the Create Root information from an existing XLptsDBCreateStatementRootType.

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

Example :


 public void example(XLptsDBCreateStatementRootType csrt)
 {
   TLptsDBCreateStatementRootType root = new TLptsDBCreateStatementRootType(csrt);
 }

 

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

equals

public boolean equals(java.lang.Object obj)

Check for equal TLptsDBCreateStatementRootType objects.

Thread Safe : Yes

Spawns its own Thread : No

May Return NULL : n/a

Notes : Use this to compare this class to another XLptsDBCreateStatementRootType objects.

Example :

 

Overrides:
equals in class java.lang.Object
Parameters:
obj - the odbc driver type
Returns:
true if they are equal, else false.


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