Java Doc for PersonQuery.java in  » J2EE » enhydra » jspPhoneBook » data » 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 » J2EE » enhydra » jspPhoneBook.data 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   jspPhoneBook.data.PersonQuery

PersonQuery
public class PersonQuery implements Query(Code)
PersonQuery is used to query the person table in the database.
It returns objects of type PersonDO.

General usage:

In DODS: Create a Data Object named "Dog", and create an Attribute named "Name", and set that Attribute to "Can be queried." DODS will then generate the method DogQuery.setQueryName().

In your Business Layer, prepare the query:

 DogQuery	dq = new DogQuery();
 dq.setQueryName("Rex")
 if (	Rex	is a reserved name )
 dq.requireUniqueInstance();
 
Then, get the query results one of two ways:

#1:

 String names	= "";
 DogDO[] dogs	= dq.getDOArray();
 for ( int i = 0;	i < dogs.length;	i++	) {
 names +=	dogs[i].getName() +	" ";
 }
 
or #2:
 String names	= "";
 DogDO dog;
 while ( null	!= ( dog = dq.getNextDO() )	) {
 names +=	dog.getName() +	" ";
 }
 

Note: If requireUniqueInstance() was called, then getDOArray() or getNextDO() will throw an exception if more than one "Rex" was found.

Note: Results of the query will come from the Data Object cache if: - The cache is available. - Matches were found in the cache. - No other tables (Data Objects of other types) were involved in the query. This can happen if you extend the DogQuery class and you make calls to the QueryBuilder object to add SQL involving other tables. If any of these conditions is not true, then any results from the query will come from the database.

To reuse the query object, call:

 dq.reset();
 

author:
   EnhydraTeam
version:
   $Revision: 1.1 $



Constructor Summary
public  PersonQuery()
     Public constructor.
public  PersonQuery(DBTransaction dbTrans)
     Public constructor.

Method Summary
public  voidaddOrderByFirstName(boolean direction_flag)
     Add firstName to the ORDER BY clause.
public  voidaddOrderByFirstName()
     Add firstName to the ORDER BY clause.
public  voidaddOrderByLastName(boolean direction_flag)
     Add lastName to the ORDER BY clause.
public  voidaddOrderByLastName()
     Add lastName to the ORDER BY clause.
public  voidaddOrderByPhoneNumber(boolean direction_flag)
     Add phoneNumber to the ORDER BY clause.
public  voidaddOrderByPhoneNumber()
     Add phoneNumber to the ORDER BY clause.
public  voidcloseParen()
     Place a closing parenthesis in the WHERE clause.
public  booleancontainsWildcards(String dbSearchValue)
    
public  StringconvertUserSearchValue(String userSearchValue)
    
public  ResultSetexecuteQuery(DBConnection conn)
     Method to query objects from the database. The following call in runQuery() dbQuery.query( this ); causes the dbQuery object to invoke executeQuery()
Parameters:
  conn - Handle to database connection.
public  QueryResultgetCachedResults(QueryResult result)
     Return QueryResult with read DOs or DataStructs from caches.
public  intgetCount()
    
public  PersonDO[]getDOArray()
     Return array of DOs constructed from ResultSet returned by query.
public  intgetDatabaseLimit()
    
public  booleangetDatabaseLimitExceeded()
     Get the database limit exceeded flag of the query.
public  booleangetLoadData()
     Return true if Query is prepared for select t1.* statement.
public  StringgetLogicalDatabase()
    
public  intgetMaxRows()
     Return limit of rows (DOs) returned.
public  PersonDOgetNextDO()
     Return successive DOs from array built from ResultSet returned by query.
public  QueryBuildergetQueryBuilder()
     Returns the QueryBuilder that this PersonQuery uses to construct and execute database queries. PersonQuery.setQueryXXX methods use the QueryBuilder to append SQL expressions to the "WHERE" clause to be executed. The QueryBuilder.addEndClause method. can be used to append freeform SQL expressions to the WHERE clause, e.g.
public  intgetReadSkip()
    
public  booleangetUnique()
    
public  booleangetUserStringAppendWildcard()
     Get user string append wildcard.
public  StringgetUserStringSingleWildcard()
     Get user string single wildcard.
public  StringgetUserStringSingleWildcardEscape()
     Get user string single wildcard escape.
public  booleangetUserStringTrim()
     Get user string trim.
public  StringgetUserStringWildcard()
     Get user string wildcard.
public  StringgetUserStringWildcardEscape()
     Get user string wildcard escape.
public  intget_FetchSize()
    
public  intget_QueryTimeout()
    
public  voidhitDatabase()
     Set that all queries go to database, not to cache.
public  booleanisOrderRelevant()
     Returns attribute orderRelevant.
public  Objectnext(ResultSet rs)
     WARNING! This method is disabled.
public  voidopenParen()
     Place an open parenthesis in the WHERE clause.
public  voidor()
     Insert an OR between WHERE clauses.
public  voidrequireUniqueInstance()
     Set "unique instance" assertion bit.
public  voidreset()
     Reset the query parameters.
public  intselectCount()
    
public  voidsetDBMatchFirstName(String x)
    
public  voidsetDBMatchLastName(String x)
    
public  voidsetDBMatchPhoneNumber(String x)
    
public  voidsetDatabaseLimit(int newLimit)
    
public  voidsetLoadData(boolean newValue)
     Set loadData parameter.
public  voidsetLogicalDatabase(String dbName)
    
public  voidsetMaxRows(int maxRows)
     Limit the number of rows (DOs) returned.
public  voidsetOrderRelevant(boolean newOrderRelevant)
     Sets attribute orderRelevant.
public  voidsetQueryFirstName(String x, String cmp_op)
     Set the firstName to query, with a QueryBuilder comparison operator.
Parameters:
  x - The firstName of the person to query.
Parameters:
  cmp_op - QueryBuilder comparison operator to use.
exception:
  DataObjectException - If a database access error occurs.
exception:
  QueryException - If comparison operator is inappropriate(e.g.
public  voidsetQueryFirstName(String x)
     Set the firstName to query, with a QueryBuilder comparison operator.
Parameters:
  x - The firstName of the person to query.
exception:
  DataObjectException - If a database access error occurs.
exception:
  QueryException - If comparison operator is inappropriate(e.g.
public  voidsetQueryHandle(String handle)
     Set the object handle to query.
public  voidsetQueryLastName(String x, String cmp_op)
     Set the lastName to query, with a QueryBuilder comparison operator.
Parameters:
  x - The lastName of the person to query.
Parameters:
  cmp_op - QueryBuilder comparison operator to use.
exception:
  DataObjectException - If a database access error occurs.
exception:
  QueryException - If comparison operator is inappropriate(e.g.
public  voidsetQueryLastName(String x)
     Set the lastName to query, with a QueryBuilder comparison operator.
Parameters:
  x - The lastName of the person to query.
exception:
  DataObjectException - If a database access error occurs.
exception:
  QueryException - If comparison operator is inappropriate(e.g.
public  voidsetQueryOId(ObjectId oid)
     Set the OID to query.
public  voidsetQueryPhoneNumber(String x, String cmp_op)
     Set the phoneNumber to query, with a QueryBuilder comparison operator.
Parameters:
  x - The phoneNumber of the person to query.
Parameters:
  cmp_op - QueryBuilder comparison operator to use.
exception:
  DataObjectException - If a database access error occurs.
exception:
  QueryException - If comparison operator is inappropriate(e.g.
public  voidsetQueryPhoneNumber(String x)
     Set the phoneNumber to query, with a QueryBuilder comparison operator.
Parameters:
  x - The phoneNumber of the person to query.
exception:
  DataObjectException - If a database access error occurs.
exception:
  QueryException - If comparison operator is inappropriate(e.g.
public  voidsetReadSkip(int newReadSkip)
    
protected  voidsetRefs(HashMap queryRefs)
    
public  voidsetUnique(boolean newUnique)
    
public  voidsetUserMatchFirstName(String x)
    
public  voidsetUserMatchLastName(String x)
    
public  voidsetUserMatchPhoneNumber(String x)
    
public  voidsetUserStringAppendWildcard(boolean userStringAppendWildcard)
     Set user string append wildcard.
public  voidsetUserStringSingleWildcard(String newUserStringSingleWildcard)
     Set user string single wildcard.
public  voidsetUserStringSingleWildcardEscape(String newUserStringSingleWildcardEscape)
     Set user string single wildcard escape.
public  voidsetUserStringTrim(boolean userStringTrim)
     Set user string trim.
public  voidsetUserStringWildcard(String newUserStringWildcard)
     Set user string wildcard.
public  voidsetUserStringWildcardEscape(String newUserStringWildcardEscape)
     Set user string wildcard escape.
public  voidset_FetchSize(int iCurrentFetchSizeIn)
    
public  voidset_QueryTimeout(int iQueryTimeoutIn)
    


Constructor Detail
PersonQuery
public PersonQuery()(Code)
Public constructor.



PersonQuery
public PersonQuery(DBTransaction dbTrans)(Code)
Public constructor.
Parameters:
  dbTrans - current database transaction




Method Detail
addOrderByFirstName
public void addOrderByFirstName(boolean direction_flag)(Code)
Add firstName to the ORDER BY clause. NOTE: The DO cache does not yet support the Order By operation. Using the addOrderBy method forces the query to hit the database.
Parameters:
  direction_flag - True for ascending order, false for descending



addOrderByFirstName
public void addOrderByFirstName()(Code)
Add firstName to the ORDER BY clause. This convenience method assumes ascending order. NOTE: The DO cache does not yet support the Order By operation. Using the addOrderBy method forces the query to hit the database.



addOrderByLastName
public void addOrderByLastName(boolean direction_flag)(Code)
Add lastName to the ORDER BY clause. NOTE: The DO cache does not yet support the Order By operation. Using the addOrderBy method forces the query to hit the database.
Parameters:
  direction_flag - True for ascending order, false for descending



addOrderByLastName
public void addOrderByLastName()(Code)
Add lastName to the ORDER BY clause. This convenience method assumes ascending order. NOTE: The DO cache does not yet support the Order By operation. Using the addOrderBy method forces the query to hit the database.



addOrderByPhoneNumber
public void addOrderByPhoneNumber(boolean direction_flag)(Code)
Add phoneNumber to the ORDER BY clause. NOTE: The DO cache does not yet support the Order By operation. Using the addOrderBy method forces the query to hit the database.
Parameters:
  direction_flag - True for ascending order, false for descending



addOrderByPhoneNumber
public void addOrderByPhoneNumber()(Code)
Add phoneNumber to the ORDER BY clause. This convenience method assumes ascending order. NOTE: The DO cache does not yet support the Order By operation. Using the addOrderBy method forces the query to hit the database.



closeParen
public void closeParen()(Code)
Place a closing parenthesis in the WHERE clause. NOTE: The DO cache does not yet support the Close Paren operator. Using the closeParen() method forces the query to hit the database.
See Also:   openParen
author:
   Jay Gunter



containsWildcards
public boolean containsWildcards(String dbSearchValue)(Code)
Check whether a string contains DB wildcards
Parameters:
  dbSearchValue - The string with possible DB wildcards Whether a string contains DB wildcardsWebDocWf extension



convertUserSearchValue
public String convertUserSearchValue(String userSearchValue)(Code)
Convert a String with user wildcards into a string with DB wildcards
Parameters:
  userSearchValue - The string with user wildcards The string with DB wildcardsWebDocWf extension



executeQuery
public ResultSet executeQuery(DBConnection conn) throws SQLException(Code)
Method to query objects from the database. The following call in runQuery() dbQuery.query( this ); causes the dbQuery object to invoke executeQuery()
Parameters:
  conn - Handle to database connection. ResultSet with the results of the query.
exception:
  java.sql.SQLException - If a database access error occurs.



getCachedResults
public QueryResult getCachedResults(QueryResult result) throws DataObjectException(Code)
Return QueryResult with read DOs or DataStructs from caches. QueryResult .
exception:
  DataObjectException - If a database access error occurs.



getCount
public int getCount() throws NonUniqueQueryException, DataObjectException, SQLException, DatabaseManagerException(Code)
Get the rowcount of the query If possible, do it without reading all rows The row countWebDocWf extension



getDOArray
public PersonDO[] getDOArray() throws DataObjectException, NonUniqueQueryException(Code)
Return array of DOs constructed from ResultSet returned by query. Array of DOs constructed from ResultSet returned by query.
exception:
  DataObjectException - If a database access error occurs.
exception:
  NonUniqueQueryException - If too many rows were found.



getDatabaseLimit
public int getDatabaseLimit()(Code)
Get the database limit of the query The database limit of the queryWebDocWf extension



getDatabaseLimitExceeded
public boolean getDatabaseLimitExceeded()(Code)
Get the database limit exceeded flag of the query. The database limit exceeded flag of the queryTrue if there would have been more rows than the limit, otherwise false.WebDocWf extension



getLoadData
public boolean getLoadData()(Code)
Return true if Query is prepared for select t1.* statement. Otherwise return false. boolean (true/false)



getLogicalDatabase
public String getLogicalDatabase()(Code)
Return logical name of the database that PersonQuery object uses param logical database name



getMaxRows
public int getMaxRows()(Code)
Return limit of rows (DOs) returned. Max number of rows (DOs) returned.



getNextDO
public PersonDO getNextDO() throws DataObjectException, NonUniqueQueryException(Code)
Return successive DOs from array built from ResultSet returned by query. DOs from array built from ResultSet returned by query.
exception:
  DataObjectException - If a database access error occurs.
exception:
  NonUniqueQueryException - If too many rows were found.



getQueryBuilder
public QueryBuilder getQueryBuilder()(Code)
Returns the QueryBuilder that this PersonQuery uses to construct and execute database queries. PersonQuery.setQueryXXX methods use the QueryBuilder to append SQL expressions to the "WHERE" clause to be executed. The QueryBuilder.addEndClause method. can be used to append freeform SQL expressions to the WHERE clause, e.g. "ORDER BY name". Notes regarding cache-enabled DO classes: DO classes can be cache-enabled. If when using a PersonQuery, the application developer does not call getQueryBuilder, then PersonQuery.setQueryXXX methods simply prune the DO cache and return the remaining results. However, a QueryBuilder builds SELECT statements for execution by the actual database, and never searches the built-in cache for the DO. So, if the DO class is cache-enabled, and getQueryBuilder is called, this PersonQuery object ignores the cache and hits the actual database. QueryBuilder that is used to construct and execute database queries.



getReadSkip
public int getReadSkip()(Code)
Get the readSkip number of the query The number of rows which are skippedWebDocWf extension



getUnique
public boolean getUnique()(Code)
Get the unique flag of the query The unique flag of the queryWebDocWf extension



getUserStringAppendWildcard
public boolean getUserStringAppendWildcard()(Code)
Get user string append wildcard. User string append wildcard.WebDocWf extension



getUserStringSingleWildcard
public String getUserStringSingleWildcard()(Code)
Get user string single wildcard. User string single wildcard.WebDocWf extension



getUserStringSingleWildcardEscape
public String getUserStringSingleWildcardEscape()(Code)
Get user string single wildcard escape. User string single wildcard escape.WebDocWf extension



getUserStringTrim
public boolean getUserStringTrim()(Code)
Get user string trim. User string trim.WebDocWf extension



getUserStringWildcard
public String getUserStringWildcard()(Code)
Get user string wildcard. User string wildcard.WebDocWf extension



getUserStringWildcardEscape
public String getUserStringWildcardEscape()(Code)
Get user string wildcard escape. User string wildcard escape.WebDocWf extension



get_FetchSize
public int get_FetchSize()(Code)
reads the current fetchsize for this query the current fetchsize; if -1 the no fetchsize is defined, defaultFetchSize will be use if defined



get_QueryTimeout
public int get_QueryTimeout()(Code)
reads the current queryTimeout for this query the current queryTimeout;



hitDatabase
public void hitDatabase()(Code)
Set that all queries go to database, not to cache.



isOrderRelevant
public boolean isOrderRelevant()(Code)
Returns attribute orderRelevant. true if order of query results is relavant, otherwise false.



next
public Object next(ResultSet rs) throws SQLException, ObjectIdException(Code)
WARNING! This method is disabled. It's implementation is forced by the Query interface. This method is disabled for 2 reasons: 1) the getDOArray() and getNextDO() methods are better because they return DOs instead of JDBC objects. 2) the createExisting() method throws an exception that we cannot reasonably handle here, and that we cannot throw from here.
Parameters:
  rs - JDBC result set from which the next objectwill be instantiated.
exception:
  java.sql.SQLException - If a database access error occurs.
exception:
  com.lutris.appserver.server.sql.ObjectIdException - If an invalid object id was queried from the database.



openParen
public void openParen()(Code)
Place an open parenthesis in the WHERE clause. Example usage: find all the Bobs and Roberts who are 5 or 50 years old: PersonQuery pq = new PersonQuery(); pq.openParen(); pq.setQueryFirstName( "Bob" ); pq.or(); pq.setQueryFirstName( "Robert" ); pq.closeParen(); // AND automatically inserted here. pq.openParen(); pq.setQueryAge( 5 ); pq.or(); pq.setQueryAge( 50 ); pq.closeParen(); NOTE: The DO cache does not yet support the Open Paren operator. Using the openParen() method forces the query to hit the database.
See Also:   QueryBuilder
See Also:    to construct more elaborate queries.
author:
   Jay Gunter



or
public void or()(Code)
Insert an OR between WHERE clauses. Example: find all the persons named Bob or Robert: PersonQuery pq = new PersonQuery(); pq.setQueryFirstName( "Bob" ); pq.or(); pq.setQueryFirstName( "Robert" ); Note: Calls to setQueryXxx methods are implicitly ANDed together, so the following example will always return nothing: PersonQuery pq = new PersonQuery(); pq.setQueryFirstName( "Bob" ); // AND automatically inserted here. pq.setQueryFirstName( "Robert" ); NOTE: The DO cache does not yet support the OR operator. Using the or() method forces the query to hit the database.
See Also:   QueryBuilder
See Also:    to construct more elaborate queries.
author:
   Jay Gunter



requireUniqueInstance
public void requireUniqueInstance()(Code)
Set "unique instance" assertion bit. The first call to the next() method will throw an exception if more than one object was found.



reset
public void reset()(Code)
Reset the query parameters.



selectCount
public int selectCount() throws SQLException, DatabaseManagerException(Code)
Get the rowcount of the query by using count(*) in the DB The row countWebDocWf extension



setDBMatchFirstName
public void setDBMatchFirstName(String x) throws DataObjectException, QueryException(Code)
Set the firstName to query with a DB wildcard string
Parameters:
  x - The firstName of the person to query with DB wildcards
exception:
  DataObjectException - If a database access error occurs.



setDBMatchLastName
public void setDBMatchLastName(String x) throws DataObjectException, QueryException(Code)
Set the lastName to query with a DB wildcard string
Parameters:
  x - The lastName of the person to query with DB wildcards
exception:
  DataObjectException - If a database access error occurs.



setDBMatchPhoneNumber
public void setDBMatchPhoneNumber(String x) throws DataObjectException, QueryException(Code)
Set the phoneNumber to query with a DB wildcard string
Parameters:
  x - The phoneNumber of the person to query with DB wildcards
exception:
  DataObjectException - If a database access error occurs.



setDatabaseLimit
public void setDatabaseLimit(int newLimit)(Code)
Set the database limit of the query
Parameters:
  newLimit - The limit for the queryWebDocWf extension



setLoadData
public void setLoadData(boolean newValue)(Code)
Set loadData parameter. if parameter is set to true, Query select t.* is performed.
Parameters:
  newValue - boolean (true/false)



setLogicalDatabase
public void setLogicalDatabase(String dbName) throws SQLException, DatabaseManagerException(Code)
Change logical database to another logical database (which name is dbName)
Parameters:
  dbName - the logical name of the database



setMaxRows
public void setMaxRows(int maxRows) throws DataObjectException, NonUniqueQueryException(Code)
Limit the number of rows (DOs) returned. NOTE: When setting a limit on rows returned by a query, you usually want to use a call to an addOrderBy method to cause the most interesting rows to be returned first. However, the DO cache does not yet support the Order By operation. Using the addOrderBy method forces the query to hit the database. So, setMaxRows also forces the query to hit the database.
Parameters:
  maxRows - Max number of rows (DOs) returned.
exception:
  DataObjectException - If a database access error occurs.
exception:
  NonUniqueQueryException - If too many rows were found.



setOrderRelevant
public void setOrderRelevant(boolean newOrderRelevant)(Code)
Sets attribute orderRelevant.
Parameters:
  newOrderRelavant - new value of attribute orderRelavant.



setQueryFirstName
public void setQueryFirstName(String x, String cmp_op) throws DataObjectException, QueryException(Code)
Set the firstName to query, with a QueryBuilder comparison operator.
Parameters:
  x - The firstName of the person to query.
Parameters:
  cmp_op - QueryBuilder comparison operator to use.
exception:
  DataObjectException - If a database access error occurs.
exception:
  QueryException - If comparison operator is inappropriate(e.g. CASE_SENSITIVE_CONTAINS on an integer field).



setQueryFirstName
public void setQueryFirstName(String x) throws DataObjectException, QueryException(Code)
Set the firstName to query, with a QueryBuilder comparison operator.
Parameters:
  x - The firstName of the person to query.
exception:
  DataObjectException - If a database access error occurs.
exception:
  QueryException - If comparison operator is inappropriate(e.g. CASE_SENSITIVE_CONTAINS on an integer field).



setQueryHandle
public void setQueryHandle(String handle) throws ObjectIdException(Code)
Set the object handle to query. This is a variant of setQueryOId().
Parameters:
  handle - The string version of the id to query.



setQueryLastName
public void setQueryLastName(String x, String cmp_op) throws DataObjectException, QueryException(Code)
Set the lastName to query, with a QueryBuilder comparison operator.
Parameters:
  x - The lastName of the person to query.
Parameters:
  cmp_op - QueryBuilder comparison operator to use.
exception:
  DataObjectException - If a database access error occurs.
exception:
  QueryException - If comparison operator is inappropriate(e.g. CASE_SENSITIVE_CONTAINS on an integer field).



setQueryLastName
public void setQueryLastName(String x) throws DataObjectException, QueryException(Code)
Set the lastName to query, with a QueryBuilder comparison operator.
Parameters:
  x - The lastName of the person to query.
exception:
  DataObjectException - If a database access error occurs.
exception:
  QueryException - If comparison operator is inappropriate(e.g. CASE_SENSITIVE_CONTAINS on an integer field).



setQueryOId
public void setQueryOId(ObjectId oid)(Code)
Set the OID to query. WARNING! This method assumes that table person has a column named "oid". This method is called from the DO classes to retrieve an object by id.
Parameters:
  oid - The object id to query.



setQueryPhoneNumber
public void setQueryPhoneNumber(String x, String cmp_op) throws DataObjectException, QueryException(Code)
Set the phoneNumber to query, with a QueryBuilder comparison operator.
Parameters:
  x - The phoneNumber of the person to query.
Parameters:
  cmp_op - QueryBuilder comparison operator to use.
exception:
  DataObjectException - If a database access error occurs.
exception:
  QueryException - If comparison operator is inappropriate(e.g. CASE_SENSITIVE_CONTAINS on an integer field).



setQueryPhoneNumber
public void setQueryPhoneNumber(String x) throws DataObjectException, QueryException(Code)
Set the phoneNumber to query, with a QueryBuilder comparison operator.
Parameters:
  x - The phoneNumber of the person to query.
exception:
  DataObjectException - If a database access error occurs.
exception:
  QueryException - If comparison operator is inappropriate(e.g. CASE_SENSITIVE_CONTAINS on an integer field).



setReadSkip
public void setReadSkip(int newReadSkip)(Code)
Set the readSkip number of the query
Parameters:
  newreadSkip - The number of results to skipWebDocWf extension



setRefs
protected void setRefs(HashMap queryRefs)(Code)
Set reference objects



setUnique
public void setUnique(boolean newUnique)(Code)
Set the unique flag of the query
Parameters:
  newUnique - The unique flag for the queryWebDocWf extension



setUserMatchFirstName
public void setUserMatchFirstName(String x) throws DataObjectException, QueryException(Code)
Set the firstName to query with a user wildcard string
Parameters:
  x - The firstName of the person to query with user wildcards
exception:
  DataObjectException - If a database access error occurs.



setUserMatchLastName
public void setUserMatchLastName(String x) throws DataObjectException, QueryException(Code)
Set the lastName to query with a user wildcard string
Parameters:
  x - The lastName of the person to query with user wildcards
exception:
  DataObjectException - If a database access error occurs.



setUserMatchPhoneNumber
public void setUserMatchPhoneNumber(String x) throws DataObjectException, QueryException(Code)
Set the phoneNumber to query with a user wildcard string
Parameters:
  x - The phoneNumber of the person to query with user wildcards
exception:
  DataObjectException - If a database access error occurs.



setUserStringAppendWildcard
public void setUserStringAppendWildcard(boolean userStringAppendWildcard)(Code)
Set user string append wildcard.
Parameters:
  userStringAppendWildcard - New user string append wildcard.WebDocWf extension



setUserStringSingleWildcard
public void setUserStringSingleWildcard(String newUserStringSingleWildcard)(Code)
Set user string single wildcard.
Parameters:
  newUserStringSingleWildcard - New user string single wildcard.WebDocWf extension



setUserStringSingleWildcardEscape
public void setUserStringSingleWildcardEscape(String newUserStringSingleWildcardEscape)(Code)
Set user string single wildcard escape.
Parameters:
  newUserStringSingleWildcardEscape - New user string single wildcard escape.WebDocWf extension



setUserStringTrim
public void setUserStringTrim(boolean userStringTrim)(Code)
Set user string trim.
Parameters:
  userStringTrim - New user string trim.WebDocWf extension



setUserStringWildcard
public void setUserStringWildcard(String newUserStringWildcard)(Code)
Set user string wildcard.
Parameters:
  newUserStringWildcard - New user string wildcard.WebDocWf extension



setUserStringWildcardEscape
public void setUserStringWildcardEscape(String newUserStringWildcardEscape)(Code)
Set user string wildcard escape.
Parameters:
  newUserStringWildcardEscape - New user string wildcard escape.WebDocWf extension



set_FetchSize
public void set_FetchSize(int iCurrentFetchSizeIn)(Code)
Set fetch size for this query



set_QueryTimeout
public void set_QueryTimeout(int iQueryTimeoutIn)(Code)
set the current queryTimeout for this query the current queryTimeout;



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.