uk.org.ogsadai.client.databrowser.sql
Class DBAbstractSQL

java.lang.Object
  |
  +--uk.org.ogsadai.client.databrowser.sql.DBAbstractSQL
Direct Known Subclasses:
DBQuery, DBUpdate

public abstract class DBAbstractSQL
extends java.lang.Object

Abstract class for holding an SQL statement. Contains a name for the statement, the URL of the database the statement is intended to act on and the statement itself.

Version:
$Revision: 1.5 $
Author:
Paul J Graham, EPCC

Field Summary
private static?java.lang.String COPYRIGHT_NOTICE
??????????Copyright statement
private ?DBDataResource mDataResource
???????????
private ?java.lang.String mName
???????????
private ?java.lang.String mStatement
???????????
?
Constructor Summary
DBAbstractSQL(java.lang.String?name, DBDataResource?resource, java.lang.String?statement)
??????????Construct the SQL given the name, database URL and statement.
?
Method Summary
?DBDataResource getDataResource()
???????????
?java.lang.String getDataResourceName()
???????????
?java.lang.String getDataServiceURL()
???????????
?java.lang.String getName()
???????????
?java.lang.String getStatement()
???????????
?
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
?

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

mName

private java.lang.String mName

mDataResource

private DBDataResource mDataResource

mStatement

private java.lang.String mStatement
Constructor Detail

DBAbstractSQL

public DBAbstractSQL(java.lang.String?name,
                     DBDataResource?resource,
                     java.lang.String?statement)
Construct the SQL given the name, database URL and statement.

Parameters:
name - A name for this SQL statement
resource - data resource
statement - The SQL statement
Method Detail

getDataServiceURL

public java.lang.String getDataServiceURL()
Returns:
The URL of the data service that the SQL is intended for

getDataResourceName

public java.lang.String getDataResourceName()
Returns:
name of the data resource

getDataResource

public DBDataResource getDataResource()
Returns:
The data resource

getName

public java.lang.String getName()
Returns:
The name for the SQL (intended as a unique identifier but not enforced)

getStatement

public java.lang.String getStatement()
Returns:
The SQL statement