Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.josql.contrib.* (7)org.josql.events.* (4)org.josql.expressions.* (22)
org.josql.filters.* (6)org.josql.functions.* (16)org.josql.incubator.* (2)
org.josql.internal.* (9)org.josql.parser.* (8)org.josql.utils.* (1)

Package Samples:

org.josql.contrib
org.josql.events
org.josql.expressions
org.josql.filters
org.josql.functions.regexp
org.josql.functions
org.josql.incubator
org.josql.internal
org.josql.parser
org.josql.utils

Classes:

JoSQLComparator: This class allows the ORDER BY clause of a JoSQL SQL clause to be used as a Comparator. It should be noted that is the same as performing: Query.execute(List) > Query.execute(List) 55 but there are times when having a separate comparator is desirable. The EXECUTE ON ALL clause is supported but you must call: doExecuteOn(List) 55 first to ensure that they are executed. This class is basically just a thin wrapper around using the comparator gained by calling: Query.getOrderByComparator() > Query.getOrderByComparator() 55 . A note on performance, for small numbers of objects (around 1000) this comparator ...
Setter: This class is used to perform access into a Java object using a String value with a specific notation. The Accessor uses a dot notation such as field1.method1.method2 to perform the access on an object. Each value in the notation refers to a field or method (a no argument method) of the type of the previous value. For instance if you have the following class structure: public class A { public B = new B (); } public class B { public C = new C (); } public class C { String d = ""; } You would then use the notation: B.C.d to get access to field d in Class C. The Accessor also supports a [ ] notation ...
BindVariable: This class represents a "bind variable" used within a SQL statement. A bind variable can be either: Named - a named bind variable is prefixed with ":", the value of the variable is set in the org.josql.Query object via: Query.setVariable(String,Object) > Query.setVariable(String,Object) 55 . The parser used (javacc generated) is a little picky about "reserved keywords" and as such you cannot use the following as the names of bind variables: select, from, limit, execute, on, all, results, where, having, order, by, group. If you must use one of reserved names then suffix it with "$", i.e. "execute$", ...
JoSQLAntFileSelector: A custom file selector for use with Ant. See: Custom Ant Selectors for more details. Allows a JoSQL WHERE clause to be applied to each file passed to the selector isSelected(File,String,File) 55 . An obvious question to ask here is "why do I need this when Ant has lots of custom file selectors". Well, in short, you don't "need" this selector, but I've found that trying to remember all the custom elements and their attributes can be painful and doesn't give me all the power needed to select the files I want. This custom selector however does. The selector supports the following "param"s. where - ...
JoSQLLogRecordFilter: A java.util.logging.Filter that uses a JoSQL statement to provide the filtering. The value returned by the isLoggable(LogRecord) 55 method is determined by executing the WHERE clause of a JoSQL statement on each java.util.logging.LogRecord passed in. Since this uses a sub-set of the JoSQL functionality certain restrictions apply: The SELECT clause is ignored. The object defined in the FROM clause must be java.util.logging.LogRecord EXECUTE ON functions are not supported here since there is no way to get the entire set of objects to work on. ORDER BY, GROUP BY, HAVING and LIMIT clauses are ignored. ...
JoSQLJSPQueryTag: Allows a JoSQL Query to be used in a JSP. Example: <%@ page import="java.util.Arrays" %> <%@ page import="java.io.File" %> <%@ tablib prefix="josql" uri="josqltaglib" %> <josql:query inputList='<%= Arrays.asList (new File ("/home/me/").listFiles ()) %>' results="queryResults"> SELECT * FROM java.io.File WHERE name = '.bashrc' </josql:query> The body of the tag is taken as the statement to execute. Note: this class deliberately does NOT extend org.josql.Query since doing so would then prevent the query from being released via the release() 55 method. The following attributes are ...
LikeExpression: Represents a LHS [ NOT ] [ $ ] LIKE RHS expression. It should be noted that unlike "normal" SQL the "." character is not supported since in practice it tends to be redundant. It is possible to use: $ in front of the "LIKE" to indicate that a case insensitive comparison should be performed, for example: SELECT * FROM java.lang.String WHERE toString $LIKE '%value' Also, the LHS or RHS can be built up using the "+" operator to concatenate a string, thus: SELECT * FROM java.lang.String WHREE toString $LIKE '%' + :myValue In this way (using the named bind variable ) you don't have to provide the wildcard. ...
JoSQLJRDataSource: A data source suitable for use with JasperReports . This is basically just an extension to org.josql.Query that allows the results to be iterated over, thereby providing the ability for objects to be reported on that are held in memory. One limitation here is that the SQL query must return columns rather than the objects since the values need to be mapped by JasperReports. For example: SELECT lastModified, name FROM java.io.File WHERE name LIKE '%.html' This query would work but it should be noted that the select "columns" (since they do not have aliases assigned) will be labeled 1, 2, X and so ...
JoSQLFileFilter: A java.io.FileFilter that uses a JoSQL statement to provide the filtering. The value returned by the accept(File) 55 method is determined by executing the WHERE clause of a JoSQL statement on each File passed in. Since this uses a sub-set of the JoSQL functionality certain restrictions apply: The SELECT clause is ignored. The object defined in the FROM clause must be java.io.File EXECUTE ON functions are not supported here since there is no way to get the entire set of objects to work on. ORDER BY, GROUP BY, HAVING and LIMIT clauses are ignored. Examples: SELECT * FROM java.io.File WHERE name $LIKE ...
JoSQLSwingTableModel: A table model suitable for use with Swing JTable. This is basically just an extension to org.josql.Query that allows the results to be iterated over, thereby providing the ability for objects to be reported on that are held in memory. One limitation here is that the SQL query must return columns rather than the objects since the values need to be mapped by the renderer and editor. For example: SELECT lastModified, name FROM java.io.File WHERE name LIKE '%.html' This query would work but it should be noted that the select "columns" (since they do not have aliases assigned) will be labeled 1, 2, ...
InExpression: This class represents in [ NOT ] IN [ LIKE ] [ ALL ] expression. If any of the values listed are Maps or Collections then they are iterated over to see if a match is found. For Maps only the key values are checked. If you pass a list then it is iterated over using a for construct rather than an Iterator since it's much faster. Note: due to the way that the expression is designed it is POSSIBLE to have a binary expression in the in list, however at this time that is not supported since it can lead to an ambiguous result, for example: true IN (true, false) has no sensible meaning. Last Modified By: ...
JoSQLSwingFileFilter: A javax.swing.filechooser.FileFilter that uses a JoSQL statement to provide the filtering. The value returned by the accept(File) 55 method is determined by executing the WHERE clause of a JoSQL statement on each File passed in. This just uses an instance of: JoSQLFileFilter to do it's job, see that class for details of usage. Last Modified By: $Author: barrygently $ Last Modified On: $Date: 2005/01/07 17:10:40 $ Current Revision: $Revision: 1.1 $
AndOrExpression: Represents either an AND expression or a OR expression. Lazy evaluation is employed here such if the expression is: LHS OR RHS and LHS = true then the RHS is NOT evaluated, if the expression is: LHS AND RHS and LHS = false then the RHS is NOT evaluated (see isTrue(Object,Query) 55 ). This is important to note if you expect side-effects to occur in the RHS (bad practice anyway so don't do it!). Last Modified By: $Author: barrygently $ Last Modified On: $Date: 2004/12/20 16:22:43 $ Current Revision: $Revision: 1.2 $
Accessor: Represents an "accessor" into an object. An accessor is basically a dot separated list of method names, such as: myObj.id.name . All of the methods referenced must have no arguments and be "public" in the referring class. You can use either the actual method name or the JavaBean naming convention. Thus: myObj.id.name might also be represented as: getMyObj.getId.getName . Last Modified By: $Author: barrygently $ Last Modified On: $Date: 2005/04/28 05:48:59 $ Current Revision: $Revision: 1.4 $
DefaultObjectFilter: A general purpose object filter that uses a JoSQL statement to provide the filtering. The value returned by the accept(Object) 55 method is determined by executing the JoSQL WHERE clause passed in. A "wrapper" is created around the WHERE clause to make it a fully-formed JoSQL statement. Last Modified By: $Author: barrygently $ Last Modified On: $Date: 2005/01/07 17:10:40 $ Current Revision: $Revision: 1.1 $
ObjectIndex: This is an experimental class aimed at producing an index across a collection of homogeneous objects. It should be noted here that it is the "sorting" of the elements in the List of objects that takes nearly all the time here. Use the sort() 55 method yourself to only perform sort once. Everytime you add an object however the sort status of the List of objects will be invalidated and have to be re-sorted before you have retrieve the objects again.
StackTraceElementFilter: This class allows you to filter the stack trace of a Throwable, so cutting down on the (sometimes) pointless long stack traces. Usage: SELECT * FROM java.lang.StackTraceElement WHERE className LIKE 'org.josql.%' And then to use in code: StackTraceElementFilter f = new StackTraceElementFilter (sql); f.filter (new Throwable ()); Last Modified By: $Author: barrygently $ Last Modified On: $Date: 2005/01/07 17:10:40 $ Current Revision: $Revision: 1.1 $
RegExp: Defines a regular expression, use the RegExpFactory.getDefaultInstance() 55 to get the "default" instance, and then just call: match(String,String) 55 . Last Modified By: $Author: barrygently $ Last Modified On: $Date: 2005/01/07 17:10:41 $ Current Revision: $Revision: 1.1 $
GTLTExpression: This class represents one of the following: > - Greater than - Less than >= - Greater than or equal to - Less than or equal to You can also force a "string" comparison by prefixing with "$". This will force both sides to be strings via the toString method. Last Modified By: $Author: barrygently $ Last Modified On: $Date: 2005/01/07 17:08:07 $ Current Revision: $Revision: 1.4 $
FunctionHandler: Defines an interface that custom objects can use to indicate that they can store a reference to the Query object. A function handler object does NOT have to implement this class, this is here purely as a convenience for developers so that they can easily get a reference to the Query object, since the Query object will call the setQuery(Query) 55 method.
EqualsExpression: This class represents an "=" or "!=" expression. This class also provides the ability for the developer to prefix the "=" or "!=" with "$" to indicate that a case-insensitive comparison should be made, in which case the LHS and RHS are converted to strings first. Last Modified By: $Author: barrygently $ Last Modified On: $Date: 2004/12/20 16:22:43 $ Current Revision: $Revision: 1.2 $
ArithmeticExpression: Represents the arithmetic expressions: *, +, /, - and %. It should be noted that ALL numbers in JoSQL are represented as double values, this allows for easy arithmetic operations without the fear of losing precision or casting issues. Last Modified By: $Author: barrygently $ Last Modified On: $Date: 2004/12/20 16:22:43 $ Current Revision: $Revision: 1.2 $
GNURegExpWrapper: The wrapper implementation for the GNU implementation of regular expression matching. See: http://www.cacas.org/java/gnu/regexp/ for details. Last Modified By: $Author: barrygently $ Last Modified On: $Date: 2005/01/07 17:10:41 $ Current Revision: $Revision: 1.1 $
OroApacheRegExpWrapper: The wrapper implementation for the Apache ORO implementation of regular expression matching. See: http://jakarta.apache.org/oro/ for details. Last Modified By: $Author: barrygently $ Last Modified On: $Date: 2005/01/07 17:10:41 $ Current Revision: $Revision: 1.1 $
ParseException: This exception is thrown when parse errors are encountered. You can explicitly create objects of this exception type by calling the method generateParseException in the generated parser. You can modify this class to customize your error reporting mechanisms so long as you retain the public fields.

Home | Contact Us | Privacy Policy | Terms of Service