2004.04.29


com.jdc.rdb.sql.dml.insert
Class Into

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.rdb.sql.SQLClause
              |
              +--com.jdc.rdb.sql.dml.DMLClause
                    |
                    +--com.jdc.rdb.sql.dml.insert.Into
All Implemented Interfaces:
Clause, InsertClause, Serializable

public class Into
extends DMLClause
implements InsertClause

Into represents an Insert SQL statement INTO clause. The INTO clause identifies the object of an Insert operation. The name must identify a Table or a View.

Reference:
IBM® DB2 Universal Database™ SQL Reference Volume 2 Version 8, Page 604.

Version:
2.0
Author:
Jay Damon
See Also:
Insert, Serialized Form

Field Summary
 
Fields inherited from class com.jdc.rdb.sql.dml.DMLClause
sqlClause
 
Fields inherited from class com.jdc.lang.Object
string
 
Constructor Summary
Into()
          Constructs a new Into clause object.
Into(String name)
          Constructs a new Into clause object for the specified Database Table name.
 
Method Summary
 String getKeyword()
          Returns the Into clause keyword.
 String getValue()
          Returns the Into clause value.
 Into setName(String name)
          Sets the database Table name to Insert a row into.
 String toString()
          Returns a String representation of this Into clause.
 
Methods inherited from class com.jdc.rdb.sql.dml.DMLClause
getKeyword
 
Methods inherited from class com.jdc.rdb.sql.SQLClause
contains, setKeyword, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Into

public Into()
Constructs a new Into clause object.


Into

public Into(String name)
Constructs a new Into clause object for the specified Database Table name.

Throws:
SQLInvalidException - No INTO clause table name is specified.
See Also:
setName(String)
Method Detail

getKeyword

public String getKeyword()
Returns the Into clause keyword.

Overrides:
getKeyword in class SQLClause
Returns:
The Into clause keyword.

getValue

public String getValue()
Returns the Into clause value.

Overrides:
getValue in class SQLClause
Returns:
The Into clause value.

setName

public Into setName(String name)
Sets the database Table name to Insert a row into.

Returns:
This Into clause object.
Throws:
SQLInvalidException - No table name is specified.

toString

public String toString()
Returns a String representation of this Into clause.

Specified by:
toString in interface InsertClause
Overrides:
toString in class SQLClause
Returns:
A String representation of this Into clause.

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.