/** * Initialize the delete all query. * This query is used to delete the collection of objects from the * database. **/ protected void initializeDeleteAllQuery() { ((DeleteAllQuery)this.getDeleteAllQuery()).setReferenceClass(this.getReferenceClass()); if (!this.hasCustomDeleteAllQuery()) { // the selection criteria are re-used by the delete all query this.getDeleteAllQuery().setSelectionCriteria(this.getSelectionCriteria()); } }
/** * Initialize the delete all query. * This query is used to delete the collection of objects from the * database. */ protected void initializeDeleteAllQuery() { ((DeleteAllQuery)this.getDeleteAllQuery()).setReferenceClass(this.getReferenceClass()); if (!this.hasCustomDeleteAllQuery()) { // the selection criteria are re-used by the delete all query this.getDeleteAllQuery().setSelectionCriteria(this.getSelectionCriteria()); } }
/** * Initialize the delete all query. * This query is used to delete the collection of objects from the * database. */ protected void initializeDeleteAllQuery() { ((DeleteAllQuery)this.getDeleteAllQuery()).setReferenceClass(this.getReferenceClass()); if (!this.hasCustomDeleteAllQuery()) { // the selection criteria are re-used by the delete all query this.getDeleteAllQuery().setSelectionCriteria(this.getSelectionCriteria()); } }
/** * Delete all the reference objects. */ protected void deleteAll(DeleteObjectQuery query, Object referenceObjects) throws DatabaseException { ((DeleteAllQuery)this.getDeleteAllQuery()).executeDeleteAll(query.getSession().getSessionForClass(this.getReferenceClass()), query.getTranslationRow(), this.getContainerPolicy().vectorFor(referenceObjects, query.getSession())); }
/** * Delete all the reference objects. */ protected void deleteAll(DeleteObjectQuery query, Object referenceObjects) throws DatabaseException { ((DeleteAllQuery)this.getDeleteAllQuery()).executeDeleteAll(query.getSession().getSessionForClass(this.getReferenceClass()), query.getTranslationRow(), this.getContainerPolicy().vectorFor(referenceObjects, query.getSession())); }
/** * Delete all the reference objects. */ protected void deleteAll(DeleteObjectQuery query, Object referenceObjects) throws DatabaseException { ((DeleteAllQuery)this.getDeleteAllQuery()).executeDeleteAll(query.getSession().getSessionForClass(this.getReferenceClass()), query.getTranslationRow(), this.getContainerPolicy().vectorFor(referenceObjects, query.getSession())); }