Java Doc for SelectRequest.java in  » Database-JDBC-Connection-Pool » sequoia-2.10.9 » org » continuent » sequoia » controller » requests » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database JDBC Connection Pool » sequoia 2.10.9 » org.continuent.sequoia.controller.requests 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.continuent.sequoia.controller.requests.AbstractRequest
      org.continuent.sequoia.controller.requests.SelectRequest

All known Subclasses:   org.continuent.sequoia.controller.requests.UnknownReadRequest,
SelectRequest
public class SelectRequest extends AbstractRequest implements Serializable(Code)
A SelectRequest is an SQL request returning a java.sql.ResultSet . It may also have database side-effects.

It has the following syntax:

 SELECT [ALL|DISTINCT] select-item[,select-item]* 
 FROM table-specification[,table-specification]* 
 [WHERE search-condition] 
 [GROUP BY grouping-column[,grouping-column]] 
 [HAVING search-condition] 
 [ORDER BY sort-specification[,sort-specification]] 
 [LIMIT ignored]
 
Note that table-specification in the FROM clause can be a sub-select. Everything after the end of the WHERE clause is ignored.
author:
   Emmanuel Cecchet
author:
   Julie Marguerite
author:
   Mathieu Peltier
author:
   Sara Bouchenak
version:
   1.0


Field Summary
final public static  intAVERAGE_FUNCTION
    
final public static  intCOUNT_FUNCTION
    
final public static  intMAX_FUNCTION
    
final public static  intMIN_FUNCTION
    
final public static  intNO_FUNCTION
    
final public static  intSUM_FUNCTION
    
protected transient  CollectionaliasFrom
    
protected transient  Collectionfrom
     ArrayList of String objects.
public transient  intfuncType
     Need to keep track of type of query, e.g.
protected transient  ArrayListorder
    
protected transient  StringpkValue
    
protected transient  ArrayListselect
     ArrayList of TableColumn objects.
protected transient  ArrayListwhere
     ArrayList of TableColumn objects.
protected transient  HashtablewhereValues
     Hashtable of String keys corresponding to column names and String values corresponding to the values associated with the UNIQUE columns of a UNIQUE SELECT.

Constructor Summary
public  SelectRequest(String sqlQuery, boolean escapeProcessing, int timeout, String lineSeparator)
     Creates a new SelectRequest instance.
protected  SelectRequest(String sqlQuery, boolean escapeProcessing, int timeout, String lineSeparator, int type)
    

Method Summary
public  booleanaltersAggregateList()
    
public  booleanaltersDatabaseCatalog()
    
public  booleanaltersDatabaseSchema()
    
public  booleanaltersMetadataCache()
    
public  booleanaltersQueryResultCache()
    
public  booleanaltersSomething()
    
public  booleanaltersStoredProcedureList()
    
public  booleanaltersUserDefinedTypes()
    
public  booleanaltersUsers()
    
public  voidcloneParsing(AbstractRequest request)
    
public  voiddebug()
     Displays some debugging information about this request.
public  CollectiongetAliasedFrom()
     Returns a Collection of AliasedDatabaseTable objects representing the table names found in the FROM clause of this request.
public  CollectiongetFrom()
     Returns a Collection of String objects representing the table names found in the FROM clause of this request.
public  ArrayListgetOrderBy()
     Returns an ArrayList of OrderBy objects representing the columns involved in the ORDER BY clause of this request.
public  StringgetParsingResultsAsString()
    
public  StringgetPkValue()
    
public  ArrayListgetSelect()
     Returns an ArrayList of DatabaseColumn objects representing the columns selected in the SELECT clause of this request.
public  ArrayListgetWhere()
     Returns an ArrayList of TableColumn objects representing the columns involved in the WHERE clause of this request.
public  HashtablegetWhereValues()
     Returns an Hashtable of String keys representing unique column names and String values associated with the columns involved in this request.
public  booleanisMustBroadcast()
     Returns the mustBroadcast value.
public  booleanneedsMacroProcessing()
    
public  voidparse(DatabaseSchema schema, int granularity, boolean isCaseSensitive)
    

The result of the parsing is accessible through the SelectRequest.getSelect() , SelectRequest.getFrom() and SelectRequest.getWhere() functions.

public  booleanreturnsResultSet()
    
public  voidsetMustBroadcast(boolean mustBroadcast)
     Sets the mustBroadcast value.
public  voidsetPkValue(String pkValue)
    

Field Detail
AVERAGE_FUNCTION
final public static int AVERAGE_FUNCTION(Code)
Represents a SQL average() macro



COUNT_FUNCTION
final public static int COUNT_FUNCTION(Code)
Represents a SQL count() macro



MAX_FUNCTION
final public static int MAX_FUNCTION(Code)
Represents a SQL max() macro



MIN_FUNCTION
final public static int MIN_FUNCTION(Code)
Represents a SQL min() macro



NO_FUNCTION
final public static int NO_FUNCTION(Code)
Some values to keep track of function in the SELECT request



SUM_FUNCTION
final public static int SUM_FUNCTION(Code)
Represents a SQL sum() macro



aliasFrom
protected transient Collection aliasFrom(Code)
ArrayList of AliasedTable objects



from
protected transient Collection from(Code)
ArrayList of String objects.



funcType
public transient int funcType(Code)
Need to keep track of type of query, e.g. MAX, COUNT, etc.



order
protected transient ArrayList order(Code)
ArrayList of OrderBy objects



pkValue
protected transient String pkValue(Code)
Primary key value in case of a unique selection



select
protected transient ArrayList select(Code)
ArrayList of TableColumn objects.



where
protected transient ArrayList where(Code)
ArrayList of TableColumn objects.



whereValues
protected transient Hashtable whereValues(Code)
Hashtable of String keys corresponding to column names and String values corresponding to the values associated with the UNIQUE columns of a UNIQUE SELECT.

Used with the COLUMN_UNIQUE_DELETE granularity.
See Also:   org.continuent.sequoia.controller.cache.result.CachingGranularities





Constructor Detail
SelectRequest
public SelectRequest(String sqlQuery, boolean escapeProcessing, int timeout, String lineSeparator)(Code)
Creates a new SelectRequest instance. The caller must give an SQL request, without any leading or trailing spaces and beginning with the 'select' keyword (it will not be checked).

The request is not parsed but it can be done later by a call to SelectRequest.parse(DatabaseSchema,int,boolean) .
Parameters:
  sqlQuery - the SQL query
Parameters:
  escapeProcessing - should the driver to escape processing beforesending to the database ?
Parameters:
  timeout - an int value
Parameters:
  lineSeparator - the line separator used in the query
See Also:   SelectRequest.parse




SelectRequest
protected SelectRequest(String sqlQuery, boolean escapeProcessing, int timeout, String lineSeparator, int type)(Code)

See Also:   AbstractRequest.AbstractRequest(java.lang.Stringbooleanintjava.lang.Stringint)




Method Detail
altersAggregateList
public boolean altersAggregateList()(Code)

See Also:   org.continuent.sequoia.controller.requests.AbstractRequest.altersAggregateList



altersDatabaseCatalog
public boolean altersDatabaseCatalog()(Code)

See Also:   org.continuent.sequoia.controller.requests.AbstractRequest.altersDatabaseCatalog



altersDatabaseSchema
public boolean altersDatabaseSchema()(Code)

See Also:   org.continuent.sequoia.controller.requests.AbstractRequest.altersDatabaseSchema



altersMetadataCache
public boolean altersMetadataCache()(Code)

See Also:   org.continuent.sequoia.controller.requests.AbstractRequest.altersMetadataCache



altersQueryResultCache
public boolean altersQueryResultCache()(Code)

See Also:   org.continuent.sequoia.controller.requests.AbstractRequest.altersQueryResultCache



altersSomething
public boolean altersSomething()(Code)

See Also:   org.continuent.sequoia.controller.requests.AbstractRequest.altersSomething



altersStoredProcedureList
public boolean altersStoredProcedureList()(Code)

See Also:   org.continuent.sequoia.controller.requests.AbstractRequest.altersStoredProcedureList



altersUserDefinedTypes
public boolean altersUserDefinedTypes()(Code)

See Also:   org.continuent.sequoia.controller.requests.AbstractRequest.altersUserDefinedTypes



altersUsers
public boolean altersUsers()(Code)

See Also:   org.continuent.sequoia.controller.requests.AbstractRequest.altersUsers



cloneParsing
public void cloneParsing(AbstractRequest request)(Code)

See Also:   AbstractRequest.cloneParsing(AbstractRequest)



debug
public void debug()(Code)
Displays some debugging information about this request.



getAliasedFrom
public Collection getAliasedFrom()(Code)
Returns a Collection of AliasedDatabaseTable objects representing the table names found in the FROM clause of this request. a Collection of AliasedDatabaseTable



getFrom
public Collection getFrom()(Code)
Returns a Collection of String objects representing the table names found in the FROM clause of this request. a Collection of String



getOrderBy
public ArrayList getOrderBy()(Code)
Returns an ArrayList of OrderBy objects representing the columns involved in the ORDER BY clause of this request. an ArrayList of OrderBy



getParsingResultsAsString
public String getParsingResultsAsString()(Code)

See Also:   org.continuent.sequoia.controller.requests.AbstractRequest.getParsingResultsAsString



getPkValue
public String getPkValue()(Code)
Returns the pkValue.



getSelect
public ArrayList getSelect()(Code)
Returns an ArrayList of DatabaseColumn objects representing the columns selected in the SELECT clause of this request. an ArrayList of TableColumn



getWhere
public ArrayList getWhere()(Code)
Returns an ArrayList of TableColumn objects representing the columns involved in the WHERE clause of this request. an ArrayList of TableColumn



getWhereValues
public Hashtable getWhereValues()(Code)
Returns an Hashtable of String keys representing unique column names and String values associated with the columns involved in this request. an Hashtable value



isMustBroadcast
public boolean isMustBroadcast()(Code)
Returns the mustBroadcast value. Returns the mustBroadcast.



needsMacroProcessing
public boolean needsMacroProcessing()(Code)
true
See Also:   org.continuent.sequoia.controller.requests.AbstractRequest.needsMacroProcessing



parse
public void parse(DatabaseSchema schema, int granularity, boolean isCaseSensitive) throws SQLException(Code)

The result of the parsing is accessible through the SelectRequest.getSelect() , SelectRequest.getFrom() and SelectRequest.getWhere() functions.
See Also:   org.continuent.sequoia.controller.requests.AbstractRequest.parse(org.continuent.sequoia.common.sql.schema.DatabaseSchemaintboolean)




returnsResultSet
public boolean returnsResultSet()(Code)
Does this request returns a ResultSet? false



setMustBroadcast
public void setMustBroadcast(boolean mustBroadcast)(Code)
Sets the mustBroadcast value.
Parameters:
  mustBroadcast - The mustBroadcast to set.



setPkValue
public void setPkValue(String pkValue)(Code)

Parameters:
  pkValue - The pkValue to set.



Fields inherited from org.continuent.sequoia.controller.requests.AbstractRequest
protected transient int cacheable(Code)(Java Doc)
protected String cursorName(Code)(Java Doc)
protected boolean disabledTableExistenceCheck(Code)(Java Doc)
protected transient long endTime(Code)(Java Doc)
protected boolean escapeProcessing(Code)(Java Doc)
protected int fetchSize(Code)(Java Doc)
protected long id(Code)(Java Doc)
protected boolean isAutoCommit(Code)(Java Doc)
protected transient boolean isParsed(Code)(Java Doc)
protected boolean isReadOnly(Code)(Java Doc)
protected transient long logId(Code)(Java Doc)
protected String login(Code)(Java Doc)
protected int maxRows(Code)(Java Doc)
protected String preparedStatementParameters(Code)(Java Doc)
int requestType(Code)(Java Doc)
protected boolean requiresConnectionFlush(Code)(Java Doc)
protected boolean requiresConnectionPoolFlush(Code)(Java Doc)
protected String sqlQueryOrTemplate(Code)(Java Doc)
protected transient long startTime(Code)(Java Doc)
protected int timeoutInSeconds(Code)(Java Doc)
protected long transactionId(Code)(Java Doc)
protected int transactionIsolation(Code)(Java Doc)
protected transient String uniqueKey(Code)(Java Doc)
protected SortedSet writeLockedTables(Code)(Java Doc)

Methods inherited from org.continuent.sequoia.controller.requests.AbstractRequest
protected void addDependingTables(DatabaseSchema schema, SortedSet lockedTables)(Code)(Java Doc)
abstract public boolean altersAggregateList()(Code)(Java Doc)
abstract public boolean altersDatabaseCatalog()(Code)(Java Doc)
abstract public boolean altersDatabaseSchema()(Code)(Java Doc)
abstract public boolean altersMetadataCache()(Code)(Java Doc)
abstract public boolean altersQueryResultCache()(Code)(Java Doc)
abstract public boolean altersSomething()(Code)(Java Doc)
abstract public boolean altersStoredProcedureList()(Code)(Java Doc)
abstract public boolean altersUserDefinedTypes()(Code)(Java Doc)
abstract public boolean altersUsers()(Code)(Java Doc)
abstract public void cloneParsing(AbstractRequest request)(Code)(Java Doc)
public void debug()(Code)(Java Doc)
public boolean equals(Object other)(Code)(Java Doc)
public int getCacheAbility()(Code)(Java Doc)
public String getClientIpAddress()(Code)(Java Doc)
public String getCursorName()(Code)(Java Doc)
public long getEndTime()(Code)(Java Doc)
public boolean getEscapeProcessing()(Code)(Java Doc)
public long getExecTimeInMs()(Code)(Java Doc)
public int getFetchSize()(Code)(Java Doc)
public long getId()(Code)(Java Doc)
public String getLineSeparator()(Code)(Java Doc)
final public long getLogId()(Code)(Java Doc)
public String getLogin()(Code)(Java Doc)
public boolean getMacrosAreProcessed()(Code)(Java Doc)
public int getMaxRows()(Code)(Java Doc)
public String getParsingResultsAsString()(Code)(Java Doc)
final public long getPersistentConnectionId()(Code)(Java Doc)
public String getPreparedStatementParameters()(Code)(Java Doc)
public boolean getRetrieveSQLWarnings()(Code)(Java Doc)
public String getSqlOrTemplate()(Code)(Java Doc)
public String getSqlShortForm(int nbOfCharacters)(Code)(Java Doc)
public long getStartTime()(Code)(Java Doc)
public int getTimeout()(Code)(Java Doc)
public long getTransactionId()(Code)(Java Doc)
public int getTransactionIsolation()(Code)(Java Doc)
public String getType()(Code)(Java Doc)
public String getUniqueKey()(Code)(Java Doc)
public SortedSet getWriteLockedDatabaseTables()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public boolean isAlter()(Code)(Java Doc)
public boolean isAutoCommit()(Code)(Java Doc)
final public boolean isCreate()(Code)(Java Doc)
final public boolean isDelete()(Code)(Java Doc)
final public boolean isDrop()(Code)(Java Doc)
final public boolean isInsert()(Code)(Java Doc)
final public boolean isLazyTransactionStart()(Code)(Java Doc)
public boolean isParsed()(Code)(Java Doc)
final public boolean isPersistentConnection()(Code)(Java Doc)
public boolean isReadOnly()(Code)(Java Doc)
final public boolean isSelect()(Code)(Java Doc)
final public boolean isUpdate()(Code)(Java Doc)
abstract public boolean needsMacroProcessing()(Code)(Java Doc)
abstract public void parse(DatabaseSchema schema, int granularity, boolean isCaseSensitive) throws SQLException(Code)(Java Doc)
public boolean requiresConnectionFlush()(Code)(Java Doc)
public boolean requiresConnectionPoolFlush()(Code)(Java Doc)
public void setCacheAbility(int cacheAbility)(Code)(Java Doc)
public void setClientIpAddress(String clientIpAddress)(Code)(Java Doc)
public void setCursorName(String cursorName)(Code)(Java Doc)
public void setEndTime(long endTime)(Code)(Java Doc)
public void setFetchSize(int fetchSize)(Code)(Java Doc)
public void setId(long id)(Code)(Java Doc)
public void setIsAutoCommit(boolean isAutoCommit)(Code)(Java Doc)
public void setIsLazyTransactionStart(boolean isLazyStart)(Code)(Java Doc)
public void setIsReadOnly(boolean isReadOnly)(Code)(Java Doc)
final public void setLineSeparator(String lineSeparator)(Code)(Java Doc)
final public void setLogId(long logId)(Code)(Java Doc)
public void setLogin(String login)(Code)(Java Doc)
public void setMacrosAreProcessed(boolean macrosAreProcessed)(Code)(Java Doc)
public void setMaxRows(int rows)(Code)(Java Doc)
final public void setPersistentConnection(boolean persistentConnection)(Code)(Java Doc)
final public void setPersistentConnectionId(long persistentConnectionId)(Code)(Java Doc)
public void setPreparedStatementParameters(String params)(Code)(Java Doc)
public void setRetrieveSQLWarnings(boolean isRetrieveSQLWarnings)(Code)(Java Doc)
public void setSqlOrTemplate(String sql)(Code)(Java Doc)
public void setStartTime(long startTime)(Code)(Java Doc)
public void setTimeout(int timeout)(Code)(Java Doc)
public void setTransactionId(long id)(Code)(Java Doc)
public void setTransactionIsolation(int isolationLevel)(Code)(Java Doc)
public boolean tableExistenceCheckIsDisabled()(Code)(Java Doc)
public String toDebugString()(Code)(Java Doc)
public String toShortDebugString()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String toStringShortForm(int nbOfCharacters)(Code)(Java Doc)
public String trimCarriageReturnAndTabs()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.