Author: Jacob Hookom

The following are examples of the OJB Taglib. Make sure that you have properly configured the build.properties and ran the "build-db" target successfully in order to run the examples. Documentation at this point is scarce, so please refer to the ojb.tld for syntax.

Query Tags
<ojb:object> execute example view source code Returns an Object from the Broker
<ojb:collection> execute example view source code Returns a Collection of the defined type from the Broker
<ojb:iterator> execute example view source code Returns an Iterator of the defined type from the Broker
<ojb:count> execute example view source code Returns an Integer specifying the possible count of the Query
<ojb:criteria> execute example view source code Works like every other Query tag, but allows you to store the criteria in a variable to re-use later


Criteria Tags
<ojb:between> execute example view source code For a 'property' values would be between a 'start' and 'end'
<ojb:notBetween> execute example view source code For a 'property' values are not between the given 'start' and 'end'
<ojb:groupBy> execute example view source code Group results by the specified 'property'
<ojb:orderBy> execute example view source code Order results by the specified 'property' in the order specified by 'sort' as 'asc' or 'desc' [default is 'asc']
<ojb:lt> execute example view source code Specify criteria less than a 'value' for a 'property' of the queried objects
<ojb:ltf> execute example view source code Define criteria of a 'property' to be less than a specified 'field'
<ojb:lte> execute example view source code Specify criteria less than or equal to a 'value' for a 'property' of the queried objects
<ojb:ltef> execute example view source code Define criteria of a 'property' to be less than or equal to a specified 'field'
<ojb:gt> execute example view source code Specify criteria greater than a 'value' for a 'property' of the queried objects
<ojb:gtf> execute example view source code Define criteria of a 'property' to be greater than a specified 'field'
<ojb:gte> execute example view source code Specify criteria greater than or equal to a 'value' for a 'property' of the queried objects
<ojb:gtef> execute example view source code Define criteria of a 'property' to be greater than or equal to a specified 'field'
<ojb:eq> execute example view source code Specify criteria for a 'property' to be equal to a specified 'value'
<ojb:neq> execute example view source code Specify criteria for a 'property' to be not equal to a specified 'value'
<ojb:eqf> execute example view source code Specify criteria for a 'property' to be equal to a specified 'field'
<ojb:neqf> execute example view source code Specify criteria for a 'property' to be not equal to a specified 'field'
<ojb:like> execute example view source code Specify criteria for a 'property' to be like the specified 'value'
<ojb:notLike> execute example view source code Specify criteria for a 'property' to not be like the specified 'value'
<ojb:in> execute example view source code Specify criteria for a 'property' to be in the specified criteria or collection in 'value'
<ojb:notIn> execute example view source code Specify criteria for a 'property' to not be in the specified criteria or collection in 'value'


Update Tags
<ojb:store> execute example view source code Stores via insert/update for the specified 'value' via broker
<ojb:delete> execute example view source code Deletes the specified 'value' via broker
<ojb:insert> execute example view source code Insert the specified 'value' via broker
<ojb:update> execute example view source code Update the specified 'value' via broker