001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.model.ResourceBlock; 020 021 /** 022 * The persistence interface for the resource block service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see ResourceBlockPersistenceImpl 030 * @see ResourceBlockUtil 031 * @generated 032 */ 033 @ProviderType 034 public interface ResourceBlockPersistence extends BasePersistence<ResourceBlock> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify or reference this interface directly. Always use {@link ResourceBlockUtil} to access the resource block persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 039 */ 040 041 /** 042 * Returns all the resource blocks where companyId = ? and name = ?. 043 * 044 * @param companyId the company ID 045 * @param name the name 046 * @return the matching resource blocks 047 */ 048 public java.util.List<com.liferay.portal.model.ResourceBlock> findByC_N( 049 long companyId, java.lang.String name); 050 051 /** 052 * Returns a range of all the resource blocks where companyId = ? and name = ?. 053 * 054 * <p> 055 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 056 * </p> 057 * 058 * @param companyId the company ID 059 * @param name the name 060 * @param start the lower bound of the range of resource blocks 061 * @param end the upper bound of the range of resource blocks (not inclusive) 062 * @return the range of matching resource blocks 063 */ 064 public java.util.List<com.liferay.portal.model.ResourceBlock> findByC_N( 065 long companyId, java.lang.String name, int start, int end); 066 067 /** 068 * Returns an ordered range of all the resource blocks where companyId = ? and name = ?. 069 * 070 * <p> 071 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 072 * </p> 073 * 074 * @param companyId the company ID 075 * @param name the name 076 * @param start the lower bound of the range of resource blocks 077 * @param end the upper bound of the range of resource blocks (not inclusive) 078 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 079 * @return the ordered range of matching resource blocks 080 */ 081 public java.util.List<com.liferay.portal.model.ResourceBlock> findByC_N( 082 long companyId, java.lang.String name, int start, int end, 083 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceBlock> orderByComparator); 084 085 /** 086 * Returns the first resource block in the ordered set where companyId = ? and name = ?. 087 * 088 * @param companyId the company ID 089 * @param name the name 090 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 091 * @return the first matching resource block 092 * @throws com.liferay.portal.NoSuchResourceBlockException if a matching resource block could not be found 093 */ 094 public com.liferay.portal.model.ResourceBlock findByC_N_First( 095 long companyId, java.lang.String name, 096 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceBlock> orderByComparator) 097 throws com.liferay.portal.NoSuchResourceBlockException; 098 099 /** 100 * Returns the first resource block in the ordered set where companyId = ? and name = ?. 101 * 102 * @param companyId the company ID 103 * @param name the name 104 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 105 * @return the first matching resource block, or <code>null</code> if a matching resource block could not be found 106 */ 107 public com.liferay.portal.model.ResourceBlock fetchByC_N_First( 108 long companyId, java.lang.String name, 109 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceBlock> orderByComparator); 110 111 /** 112 * Returns the last resource block in the ordered set where companyId = ? and name = ?. 113 * 114 * @param companyId the company ID 115 * @param name the name 116 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 117 * @return the last matching resource block 118 * @throws com.liferay.portal.NoSuchResourceBlockException if a matching resource block could not be found 119 */ 120 public com.liferay.portal.model.ResourceBlock findByC_N_Last( 121 long companyId, java.lang.String name, 122 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceBlock> orderByComparator) 123 throws com.liferay.portal.NoSuchResourceBlockException; 124 125 /** 126 * Returns the last resource block in the ordered set where companyId = ? and name = ?. 127 * 128 * @param companyId the company ID 129 * @param name the name 130 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 131 * @return the last matching resource block, or <code>null</code> if a matching resource block could not be found 132 */ 133 public com.liferay.portal.model.ResourceBlock fetchByC_N_Last( 134 long companyId, java.lang.String name, 135 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceBlock> orderByComparator); 136 137 /** 138 * Returns the resource blocks before and after the current resource block in the ordered set where companyId = ? and name = ?. 139 * 140 * @param resourceBlockId the primary key of the current resource block 141 * @param companyId the company ID 142 * @param name the name 143 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 144 * @return the previous, current, and next resource block 145 * @throws com.liferay.portal.NoSuchResourceBlockException if a resource block with the primary key could not be found 146 */ 147 public com.liferay.portal.model.ResourceBlock[] findByC_N_PrevAndNext( 148 long resourceBlockId, long companyId, java.lang.String name, 149 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceBlock> orderByComparator) 150 throws com.liferay.portal.NoSuchResourceBlockException; 151 152 /** 153 * Removes all the resource blocks where companyId = ? and name = ? from the database. 154 * 155 * @param companyId the company ID 156 * @param name the name 157 */ 158 public void removeByC_N(long companyId, java.lang.String name); 159 160 /** 161 * Returns the number of resource blocks where companyId = ? and name = ?. 162 * 163 * @param companyId the company ID 164 * @param name the name 165 * @return the number of matching resource blocks 166 */ 167 public int countByC_N(long companyId, java.lang.String name); 168 169 /** 170 * Returns all the resource blocks where companyId = ? and groupId = ? and name = ?. 171 * 172 * @param companyId the company ID 173 * @param groupId the group ID 174 * @param name the name 175 * @return the matching resource blocks 176 */ 177 public java.util.List<com.liferay.portal.model.ResourceBlock> findByC_G_N( 178 long companyId, long groupId, java.lang.String name); 179 180 /** 181 * Returns a range of all the resource blocks where companyId = ? and groupId = ? and name = ?. 182 * 183 * <p> 184 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 185 * </p> 186 * 187 * @param companyId the company ID 188 * @param groupId the group ID 189 * @param name the name 190 * @param start the lower bound of the range of resource blocks 191 * @param end the upper bound of the range of resource blocks (not inclusive) 192 * @return the range of matching resource blocks 193 */ 194 public java.util.List<com.liferay.portal.model.ResourceBlock> findByC_G_N( 195 long companyId, long groupId, java.lang.String name, int start, int end); 196 197 /** 198 * Returns an ordered range of all the resource blocks where companyId = ? and groupId = ? and name = ?. 199 * 200 * <p> 201 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 202 * </p> 203 * 204 * @param companyId the company ID 205 * @param groupId the group ID 206 * @param name the name 207 * @param start the lower bound of the range of resource blocks 208 * @param end the upper bound of the range of resource blocks (not inclusive) 209 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 210 * @return the ordered range of matching resource blocks 211 */ 212 public java.util.List<com.liferay.portal.model.ResourceBlock> findByC_G_N( 213 long companyId, long groupId, java.lang.String name, int start, 214 int end, 215 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceBlock> orderByComparator); 216 217 /** 218 * Returns the first resource block in the ordered set where companyId = ? and groupId = ? and name = ?. 219 * 220 * @param companyId the company ID 221 * @param groupId the group ID 222 * @param name the name 223 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 224 * @return the first matching resource block 225 * @throws com.liferay.portal.NoSuchResourceBlockException if a matching resource block could not be found 226 */ 227 public com.liferay.portal.model.ResourceBlock findByC_G_N_First( 228 long companyId, long groupId, java.lang.String name, 229 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceBlock> orderByComparator) 230 throws com.liferay.portal.NoSuchResourceBlockException; 231 232 /** 233 * Returns the first resource block in the ordered set where companyId = ? and groupId = ? and name = ?. 234 * 235 * @param companyId the company ID 236 * @param groupId the group ID 237 * @param name the name 238 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 239 * @return the first matching resource block, or <code>null</code> if a matching resource block could not be found 240 */ 241 public com.liferay.portal.model.ResourceBlock fetchByC_G_N_First( 242 long companyId, long groupId, java.lang.String name, 243 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceBlock> orderByComparator); 244 245 /** 246 * Returns the last resource block in the ordered set where companyId = ? and groupId = ? and name = ?. 247 * 248 * @param companyId the company ID 249 * @param groupId the group ID 250 * @param name the name 251 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 252 * @return the last matching resource block 253 * @throws com.liferay.portal.NoSuchResourceBlockException if a matching resource block could not be found 254 */ 255 public com.liferay.portal.model.ResourceBlock findByC_G_N_Last( 256 long companyId, long groupId, java.lang.String name, 257 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceBlock> orderByComparator) 258 throws com.liferay.portal.NoSuchResourceBlockException; 259 260 /** 261 * Returns the last resource block in the ordered set where companyId = ? and groupId = ? and name = ?. 262 * 263 * @param companyId the company ID 264 * @param groupId the group ID 265 * @param name the name 266 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 267 * @return the last matching resource block, or <code>null</code> if a matching resource block could not be found 268 */ 269 public com.liferay.portal.model.ResourceBlock fetchByC_G_N_Last( 270 long companyId, long groupId, java.lang.String name, 271 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceBlock> orderByComparator); 272 273 /** 274 * Returns the resource blocks before and after the current resource block in the ordered set where companyId = ? and groupId = ? and name = ?. 275 * 276 * @param resourceBlockId the primary key of the current resource block 277 * @param companyId the company ID 278 * @param groupId the group ID 279 * @param name the name 280 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 281 * @return the previous, current, and next resource block 282 * @throws com.liferay.portal.NoSuchResourceBlockException if a resource block with the primary key could not be found 283 */ 284 public com.liferay.portal.model.ResourceBlock[] findByC_G_N_PrevAndNext( 285 long resourceBlockId, long companyId, long groupId, 286 java.lang.String name, 287 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceBlock> orderByComparator) 288 throws com.liferay.portal.NoSuchResourceBlockException; 289 290 /** 291 * Removes all the resource blocks where companyId = ? and groupId = ? and name = ? from the database. 292 * 293 * @param companyId the company ID 294 * @param groupId the group ID 295 * @param name the name 296 */ 297 public void removeByC_G_N(long companyId, long groupId, 298 java.lang.String name); 299 300 /** 301 * Returns the number of resource blocks where companyId = ? and groupId = ? and name = ?. 302 * 303 * @param companyId the company ID 304 * @param groupId the group ID 305 * @param name the name 306 * @return the number of matching resource blocks 307 */ 308 public int countByC_G_N(long companyId, long groupId, java.lang.String name); 309 310 /** 311 * Returns the resource block where companyId = ? and groupId = ? and name = ? and permissionsHash = ? or throws a {@link com.liferay.portal.NoSuchResourceBlockException} if it could not be found. 312 * 313 * @param companyId the company ID 314 * @param groupId the group ID 315 * @param name the name 316 * @param permissionsHash the permissions hash 317 * @return the matching resource block 318 * @throws com.liferay.portal.NoSuchResourceBlockException if a matching resource block could not be found 319 */ 320 public com.liferay.portal.model.ResourceBlock findByC_G_N_P( 321 long companyId, long groupId, java.lang.String name, 322 java.lang.String permissionsHash) 323 throws com.liferay.portal.NoSuchResourceBlockException; 324 325 /** 326 * Returns the resource block where companyId = ? and groupId = ? and name = ? and permissionsHash = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 327 * 328 * @param companyId the company ID 329 * @param groupId the group ID 330 * @param name the name 331 * @param permissionsHash the permissions hash 332 * @return the matching resource block, or <code>null</code> if a matching resource block could not be found 333 */ 334 public com.liferay.portal.model.ResourceBlock fetchByC_G_N_P( 335 long companyId, long groupId, java.lang.String name, 336 java.lang.String permissionsHash); 337 338 /** 339 * Returns the resource block where companyId = ? and groupId = ? and name = ? and permissionsHash = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 340 * 341 * @param companyId the company ID 342 * @param groupId the group ID 343 * @param name the name 344 * @param permissionsHash the permissions hash 345 * @param retrieveFromCache whether to use the finder cache 346 * @return the matching resource block, or <code>null</code> if a matching resource block could not be found 347 */ 348 public com.liferay.portal.model.ResourceBlock fetchByC_G_N_P( 349 long companyId, long groupId, java.lang.String name, 350 java.lang.String permissionsHash, boolean retrieveFromCache); 351 352 /** 353 * Removes the resource block where companyId = ? and groupId = ? and name = ? and permissionsHash = ? from the database. 354 * 355 * @param companyId the company ID 356 * @param groupId the group ID 357 * @param name the name 358 * @param permissionsHash the permissions hash 359 * @return the resource block that was removed 360 */ 361 public com.liferay.portal.model.ResourceBlock removeByC_G_N_P( 362 long companyId, long groupId, java.lang.String name, 363 java.lang.String permissionsHash) 364 throws com.liferay.portal.NoSuchResourceBlockException; 365 366 /** 367 * Returns the number of resource blocks where companyId = ? and groupId = ? and name = ? and permissionsHash = ?. 368 * 369 * @param companyId the company ID 370 * @param groupId the group ID 371 * @param name the name 372 * @param permissionsHash the permissions hash 373 * @return the number of matching resource blocks 374 */ 375 public int countByC_G_N_P(long companyId, long groupId, 376 java.lang.String name, java.lang.String permissionsHash); 377 378 /** 379 * Caches the resource block in the entity cache if it is enabled. 380 * 381 * @param resourceBlock the resource block 382 */ 383 public void cacheResult( 384 com.liferay.portal.model.ResourceBlock resourceBlock); 385 386 /** 387 * Caches the resource blocks in the entity cache if it is enabled. 388 * 389 * @param resourceBlocks the resource blocks 390 */ 391 public void cacheResult( 392 java.util.List<com.liferay.portal.model.ResourceBlock> resourceBlocks); 393 394 /** 395 * Creates a new resource block with the primary key. Does not add the resource block to the database. 396 * 397 * @param resourceBlockId the primary key for the new resource block 398 * @return the new resource block 399 */ 400 public com.liferay.portal.model.ResourceBlock create(long resourceBlockId); 401 402 /** 403 * Removes the resource block with the primary key from the database. Also notifies the appropriate model listeners. 404 * 405 * @param resourceBlockId the primary key of the resource block 406 * @return the resource block that was removed 407 * @throws com.liferay.portal.NoSuchResourceBlockException if a resource block with the primary key could not be found 408 */ 409 public com.liferay.portal.model.ResourceBlock remove(long resourceBlockId) 410 throws com.liferay.portal.NoSuchResourceBlockException; 411 412 public com.liferay.portal.model.ResourceBlock updateImpl( 413 com.liferay.portal.model.ResourceBlock resourceBlock); 414 415 /** 416 * Returns the resource block with the primary key or throws a {@link com.liferay.portal.NoSuchResourceBlockException} if it could not be found. 417 * 418 * @param resourceBlockId the primary key of the resource block 419 * @return the resource block 420 * @throws com.liferay.portal.NoSuchResourceBlockException if a resource block with the primary key could not be found 421 */ 422 public com.liferay.portal.model.ResourceBlock findByPrimaryKey( 423 long resourceBlockId) 424 throws com.liferay.portal.NoSuchResourceBlockException; 425 426 /** 427 * Returns the resource block with the primary key or returns <code>null</code> if it could not be found. 428 * 429 * @param resourceBlockId the primary key of the resource block 430 * @return the resource block, or <code>null</code> if a resource block with the primary key could not be found 431 */ 432 public com.liferay.portal.model.ResourceBlock fetchByPrimaryKey( 433 long resourceBlockId); 434 435 @Override 436 public java.util.Map<java.io.Serializable, com.liferay.portal.model.ResourceBlock> fetchByPrimaryKeys( 437 java.util.Set<java.io.Serializable> primaryKeys); 438 439 /** 440 * Returns all the resource blocks. 441 * 442 * @return the resource blocks 443 */ 444 public java.util.List<com.liferay.portal.model.ResourceBlock> findAll(); 445 446 /** 447 * Returns a range of all the resource blocks. 448 * 449 * <p> 450 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 451 * </p> 452 * 453 * @param start the lower bound of the range of resource blocks 454 * @param end the upper bound of the range of resource blocks (not inclusive) 455 * @return the range of resource blocks 456 */ 457 public java.util.List<com.liferay.portal.model.ResourceBlock> findAll( 458 int start, int end); 459 460 /** 461 * Returns an ordered range of all the resource blocks. 462 * 463 * <p> 464 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 465 * </p> 466 * 467 * @param start the lower bound of the range of resource blocks 468 * @param end the upper bound of the range of resource blocks (not inclusive) 469 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 470 * @return the ordered range of resource blocks 471 */ 472 public java.util.List<com.liferay.portal.model.ResourceBlock> findAll( 473 int start, int end, 474 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceBlock> orderByComparator); 475 476 /** 477 * Removes all the resource blocks from the database. 478 */ 479 public void removeAll(); 480 481 /** 482 * Returns the number of resource blocks. 483 * 484 * @return the number of resource blocks 485 */ 486 public int countAll(); 487 }