Parameters: query - The query to execute Parameters: lock - the lock that need to be acquired on the object Possible values are:LockType.NO_LOCK (aka read only) - changes to the object will not be written todatabase; LockType.READ_LOCK (aka optimistic lock) - changes to the object willbe written to the database, in this case the lock will be automatically upgradedto the write lock on transaction commit; LockType.WRITE_LOCK (aka pessimisticlock) - changes to the object will be written to the database.
Parameters: query - The query to execute Parameters: lock - the lock that need to be acquired on the object Possible values are:LockType.NO_LOCK (aka read only) - changes to the object will not be written todatabase; LockType.READ_LOCK (aka optimistic lock) - changes to the object willbe written to the database, in this case the lock will be automatically upgradedto the write lock on transaction commit; LockType.WRITE_LOCK (aka pessimisticlock) - changes to the object will be written to the database.
Parameters: query - The query to execute Parameters: lock - the lock that need to be acquired on the object Possible values are:LockType.NO_LOCK (aka read only) - changes to the object will not be written todatabase; LockType.READ_LOCK (aka optimistic lock) - changes to the object willbe written to the database, in this case the lock will be automatically upgradedto the write lock on transaction commit; LockType.WRITE_LOCK (aka pessimisticlock) - changes to the object will be written to the database. an Iterator that iterates Objects of class c if calling the .next() method. Thereturned objects are locked with the given lock value.
Parameters: query - The query to execute an Iterator that iterates Objects of class c if calling the .next() method. Thereturned objects are locked for read.
Parameters: query - The OQL query to execute. Use this method if you don't want to load all thecollection at once as OQLQuery.execute() does. an Iterator that iterates Objects. The returned objects are locked for read.
Parameters: query - The OQL query to execute. Use this method if you don't want to load all thecollection at once as OQLQuery.execute() does. an Iterator that iterates Objects. The returned objects are locked for read.
Parameters: query - The query to execute Parameters: lock - the lock that need to be acquired on the object Possible values are:LockType.NO_LOCK (aka read only) - changes to the object will not be written todatabase; LockType.READ_LOCK (aka optimistic lock) - changes to the object willbe written to the database, in this case the lock will be automatically upgradedto the write lock on transaction commit; LockType.WRITE_LOCK (aka pessimisticlock) - changes to the object will be written to the database. an Iterator that iterates Objects of class c if calling the .next() method. Thereturned objects are locked with the given lock value.