Chapter 12. databaseLimit attribute

This is attribute of <table_name>Query.java class. It is used in execution of select statements. It defines maximal number of DOs that will be returned as query result when query is executed.

For example, if query should return only unique results, DatabaseLimit is maximal number of unique query results that will be returned as query result.

For example, if security is used in queries, DatabaseLimit is maximal number of query results (for which user has access) that will be returned as query result.

When the query is executed, always will be retrived databaseLimit+1 results from database to get information is there are any more results that are not retrieved with the query because of databaseLimit attribute.

This attribute is private. The public methods that work with these attributes are also in the <table_name>Query.java class and they are:

Sets the attribute DatabaseLimit to value newLimit.

Returns the current value of the DatabaseLimit attribute.

The default value of this attribute is 0.