2004.04.29


com.jdc.rdb.sql
Class SQLClause

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.rdb.sql.SQLClause
All Implemented Interfaces:
Clause, Serializable
Direct Known Subclasses:
DDLClause, DMLClause

public abstract class SQLClause
extends Object
implements Clause, Serializable

SQLClause represents a Structured Query Language (SQL) statement clause. This class is the superclass for all Data Definition Language (DDL) and Data Manipulation Language (DML) statement clause classes.

The following Structure Query Language statement clauses are supported:

Refer to the DDLClause and DMLClause statement clause classes for the specific SQL statement clauses supported..
Note:
The SQLClause class is declared abstract and cannot be instantiated.

Version:
2.0
Author:
Jay Damon
See Also:
DDLClause, DMLClause, Serialized Form

Field Summary
 
Fields inherited from class com.jdc.lang.Object
string
 
Constructor Summary
SQLClause()
          Constructs a new SQLClause object.
 
Method Summary
protected  boolean contains()
          Returns true if the SQL clause value contains the SQL clause keyword.
 String getKeyword()
          Returns the SQL clause keyword.
 String getValue()
          Returns the SQL clause value.
 void setKeyword(String keyword)
          Sets the SQL clause keyword.
 void setValue(String value)
          Sets the SQL clause value.
 String toString()
          Returns a String representation of this SQLClause object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLClause

public SQLClause()
Constructs a new SQLClause object.

Method Detail

contains

protected boolean contains()
Returns true if the SQL clause value contains the SQL clause keyword.

Returns:
True if the clause value contains the clause keyword.
False if the clause value does not contain the clause keyword.

getKeyword

public String getKeyword()
Returns the SQL clause keyword.

Returns:
The SQL clause keyword.

getValue

public String getValue()
Returns the SQL clause value.

Returns:
The SQL clause value.

setKeyword

public void setKeyword(String keyword)
Sets the SQL clause keyword.

Throws:
SQLInvalidException - No SQL clause keyword is specified or the keyword is changed.

setValue

public void setValue(String value)
Sets the SQL clause value.

Throws:
SQLInvalidException - No SQL clause value is specified.

toString

public String toString()
Returns a String representation of this SQLClause object.

Specified by:
toString in interface Clause
Overrides:
toString in class Object
Returns:
A String representation of this SQLClause object.

2004.04.29



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