001 /** 002 * Copyright (c) 2000-2012 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.portlet.dynamicdatamapping.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.dynamicdatamapping.model.DDMStructure; 020 021 /** 022 * The persistence interface for the d d m structure 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 DDMStructurePersistenceImpl 030 * @see DDMStructureUtil 031 * @generated 032 */ 033 public interface DDMStructurePersistence extends BasePersistence<DDMStructure> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link DDMStructureUtil} to access the d d m structure persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the d d m structure in the entity cache if it is enabled. 042 * 043 * @param ddmStructure the d d m structure 044 */ 045 public void cacheResult( 046 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure); 047 048 /** 049 * Caches the d d m structures in the entity cache if it is enabled. 050 * 051 * @param ddmStructures the d d m structures 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures); 055 056 /** 057 * Creates a new d d m structure with the primary key. Does not add the d d m structure to the database. 058 * 059 * @param structureId the primary key for the new d d m structure 060 * @return the new d d m structure 061 */ 062 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure create( 063 long structureId); 064 065 /** 066 * Removes the d d m structure with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param structureId the primary key of the d d m structure 069 * @return the d d m structure that was removed 070 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure remove( 074 long structureId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 077 078 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateImpl( 079 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure, 080 boolean merge) 081 throws com.liferay.portal.kernel.exception.SystemException; 082 083 /** 084 * Returns the d d m structure with the primary key or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureException} if it could not be found. 085 * 086 * @param structureId the primary key of the d d m structure 087 * @return the d d m structure 088 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 089 * @throws SystemException if a system exception occurred 090 */ 091 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByPrimaryKey( 092 long structureId) 093 throws com.liferay.portal.kernel.exception.SystemException, 094 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 095 096 /** 097 * Returns the d d m structure with the primary key or returns <code>null</code> if it could not be found. 098 * 099 * @param structureId the primary key of the d d m structure 100 * @return the d d m structure, or <code>null</code> if a d d m structure with the primary key could not be found 101 * @throws SystemException if a system exception occurred 102 */ 103 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByPrimaryKey( 104 long structureId) 105 throws com.liferay.portal.kernel.exception.SystemException; 106 107 /** 108 * Returns all the d d m structures where uuid = ?. 109 * 110 * @param uuid the uuid 111 * @return the matching d d m structures 112 * @throws SystemException if a system exception occurred 113 */ 114 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByUuid( 115 java.lang.String uuid) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Returns a range of all the d d m structures where uuid = ?. 120 * 121 * <p> 122 * 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. 123 * </p> 124 * 125 * @param uuid the uuid 126 * @param start the lower bound of the range of d d m structures 127 * @param end the upper bound of the range of d d m structures (not inclusive) 128 * @return the range of matching d d m structures 129 * @throws SystemException if a system exception occurred 130 */ 131 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByUuid( 132 java.lang.String uuid, int start, int end) 133 throws com.liferay.portal.kernel.exception.SystemException; 134 135 /** 136 * Returns an ordered range of all the d d m structures where uuid = ?. 137 * 138 * <p> 139 * 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. 140 * </p> 141 * 142 * @param uuid the uuid 143 * @param start the lower bound of the range of d d m structures 144 * @param end the upper bound of the range of d d m structures (not inclusive) 145 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 146 * @return the ordered range of matching d d m structures 147 * @throws SystemException if a system exception occurred 148 */ 149 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByUuid( 150 java.lang.String uuid, int start, int end, 151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 152 throws com.liferay.portal.kernel.exception.SystemException; 153 154 /** 155 * Returns the first d d m structure in the ordered set where uuid = ?. 156 * 157 * <p> 158 * 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. 159 * </p> 160 * 161 * @param uuid the uuid 162 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 163 * @return the first matching d d m structure 164 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 165 * @throws SystemException if a system exception occurred 166 */ 167 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByUuid_First( 168 java.lang.String uuid, 169 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 170 throws com.liferay.portal.kernel.exception.SystemException, 171 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 172 173 /** 174 * Returns the last d d m structure in the ordered set where uuid = ?. 175 * 176 * <p> 177 * 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. 178 * </p> 179 * 180 * @param uuid the uuid 181 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 182 * @return the last matching d d m structure 183 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 184 * @throws SystemException if a system exception occurred 185 */ 186 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByUuid_Last( 187 java.lang.String uuid, 188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 189 throws com.liferay.portal.kernel.exception.SystemException, 190 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 191 192 /** 193 * Returns the d d m structures before and after the current d d m structure in the ordered set where uuid = ?. 194 * 195 * <p> 196 * 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. 197 * </p> 198 * 199 * @param structureId the primary key of the current d d m structure 200 * @param uuid the uuid 201 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 202 * @return the previous, current, and next d d m structure 203 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 204 * @throws SystemException if a system exception occurred 205 */ 206 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByUuid_PrevAndNext( 207 long structureId, java.lang.String uuid, 208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 209 throws com.liferay.portal.kernel.exception.SystemException, 210 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 211 212 /** 213 * Returns the d d m structure where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureException} if it could not be found. 214 * 215 * @param uuid the uuid 216 * @param groupId the group ID 217 * @return the matching d d m structure 218 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 219 * @throws SystemException if a system exception occurred 220 */ 221 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByUUID_G( 222 java.lang.String uuid, long groupId) 223 throws com.liferay.portal.kernel.exception.SystemException, 224 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 225 226 /** 227 * Returns the d d m structure where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 228 * 229 * @param uuid the uuid 230 * @param groupId the group ID 231 * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 232 * @throws SystemException if a system exception occurred 233 */ 234 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByUUID_G( 235 java.lang.String uuid, long groupId) 236 throws com.liferay.portal.kernel.exception.SystemException; 237 238 /** 239 * Returns the d d m structure where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 240 * 241 * @param uuid the uuid 242 * @param groupId the group ID 243 * @param retrieveFromCache whether to use the finder cache 244 * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 245 * @throws SystemException if a system exception occurred 246 */ 247 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByUUID_G( 248 java.lang.String uuid, long groupId, boolean retrieveFromCache) 249 throws com.liferay.portal.kernel.exception.SystemException; 250 251 /** 252 * Returns all the d d m structures where groupId = ?. 253 * 254 * @param groupId the group ID 255 * @return the matching d d m structures 256 * @throws SystemException if a system exception occurred 257 */ 258 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByGroupId( 259 long groupId) 260 throws com.liferay.portal.kernel.exception.SystemException; 261 262 /** 263 * Returns a range of all the d d m structures where groupId = ?. 264 * 265 * <p> 266 * 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. 267 * </p> 268 * 269 * @param groupId the group ID 270 * @param start the lower bound of the range of d d m structures 271 * @param end the upper bound of the range of d d m structures (not inclusive) 272 * @return the range of matching d d m structures 273 * @throws SystemException if a system exception occurred 274 */ 275 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByGroupId( 276 long groupId, int start, int end) 277 throws com.liferay.portal.kernel.exception.SystemException; 278 279 /** 280 * Returns an ordered range of all the d d m structures where groupId = ?. 281 * 282 * <p> 283 * 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. 284 * </p> 285 * 286 * @param groupId the group ID 287 * @param start the lower bound of the range of d d m structures 288 * @param end the upper bound of the range of d d m structures (not inclusive) 289 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 290 * @return the ordered range of matching d d m structures 291 * @throws SystemException if a system exception occurred 292 */ 293 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByGroupId( 294 long groupId, int start, int end, 295 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 296 throws com.liferay.portal.kernel.exception.SystemException; 297 298 /** 299 * Returns the first d d m structure in the ordered set where groupId = ?. 300 * 301 * <p> 302 * 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. 303 * </p> 304 * 305 * @param groupId the group ID 306 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 307 * @return the first matching d d m structure 308 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 309 * @throws SystemException if a system exception occurred 310 */ 311 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByGroupId_First( 312 long groupId, 313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 314 throws com.liferay.portal.kernel.exception.SystemException, 315 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 316 317 /** 318 * Returns the last d d m structure in the ordered set where groupId = ?. 319 * 320 * <p> 321 * 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. 322 * </p> 323 * 324 * @param groupId the group ID 325 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 326 * @return the last matching d d m structure 327 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 328 * @throws SystemException if a system exception occurred 329 */ 330 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByGroupId_Last( 331 long groupId, 332 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 333 throws com.liferay.portal.kernel.exception.SystemException, 334 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 335 336 /** 337 * Returns the d d m structures before and after the current d d m structure in the ordered set where groupId = ?. 338 * 339 * <p> 340 * 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. 341 * </p> 342 * 343 * @param structureId the primary key of the current d d m structure 344 * @param groupId the group ID 345 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 346 * @return the previous, current, and next d d m structure 347 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 348 * @throws SystemException if a system exception occurred 349 */ 350 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByGroupId_PrevAndNext( 351 long structureId, long groupId, 352 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 353 throws com.liferay.portal.kernel.exception.SystemException, 354 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 355 356 /** 357 * Returns all the d d m structures that the user has permission to view where groupId = ?. 358 * 359 * @param groupId the group ID 360 * @return the matching d d m structures that the user has permission to view 361 * @throws SystemException if a system exception occurred 362 */ 363 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByGroupId( 364 long groupId) 365 throws com.liferay.portal.kernel.exception.SystemException; 366 367 /** 368 * Returns a range of all the d d m structures that the user has permission to view where groupId = ?. 369 * 370 * <p> 371 * 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. 372 * </p> 373 * 374 * @param groupId the group ID 375 * @param start the lower bound of the range of d d m structures 376 * @param end the upper bound of the range of d d m structures (not inclusive) 377 * @return the range of matching d d m structures that the user has permission to view 378 * @throws SystemException if a system exception occurred 379 */ 380 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByGroupId( 381 long groupId, int start, int end) 382 throws com.liferay.portal.kernel.exception.SystemException; 383 384 /** 385 * Returns an ordered range of all the d d m structures that the user has permissions to view where groupId = ?. 386 * 387 * <p> 388 * 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. 389 * </p> 390 * 391 * @param groupId the group ID 392 * @param start the lower bound of the range of d d m structures 393 * @param end the upper bound of the range of d d m structures (not inclusive) 394 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 395 * @return the ordered range of matching d d m structures that the user has permission to view 396 * @throws SystemException if a system exception occurred 397 */ 398 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByGroupId( 399 long groupId, int start, int end, 400 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 401 throws com.liferay.portal.kernel.exception.SystemException; 402 403 /** 404 * Returns the d d m structures before and after the current d d m structure in the ordered set of d d m structures that the user has permission to view where groupId = ?. 405 * 406 * @param structureId the primary key of the current d d m structure 407 * @param groupId the group ID 408 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 409 * @return the previous, current, and next d d m structure 410 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 411 * @throws SystemException if a system exception occurred 412 */ 413 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] filterFindByGroupId_PrevAndNext( 414 long structureId, long groupId, 415 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 416 throws com.liferay.portal.kernel.exception.SystemException, 417 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 418 419 /** 420 * Returns all the d d m structures where classNameId = ?. 421 * 422 * @param classNameId the class name ID 423 * @return the matching d d m structures 424 * @throws SystemException if a system exception occurred 425 */ 426 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByClassNameId( 427 long classNameId) 428 throws com.liferay.portal.kernel.exception.SystemException; 429 430 /** 431 * Returns a range of all the d d m structures where classNameId = ?. 432 * 433 * <p> 434 * 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. 435 * </p> 436 * 437 * @param classNameId the class name ID 438 * @param start the lower bound of the range of d d m structures 439 * @param end the upper bound of the range of d d m structures (not inclusive) 440 * @return the range of matching d d m structures 441 * @throws SystemException if a system exception occurred 442 */ 443 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByClassNameId( 444 long classNameId, int start, int end) 445 throws com.liferay.portal.kernel.exception.SystemException; 446 447 /** 448 * Returns an ordered range of all the d d m structures where classNameId = ?. 449 * 450 * <p> 451 * 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. 452 * </p> 453 * 454 * @param classNameId the class name ID 455 * @param start the lower bound of the range of d d m structures 456 * @param end the upper bound of the range of d d m structures (not inclusive) 457 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 458 * @return the ordered range of matching d d m structures 459 * @throws SystemException if a system exception occurred 460 */ 461 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByClassNameId( 462 long classNameId, int start, int end, 463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 464 throws com.liferay.portal.kernel.exception.SystemException; 465 466 /** 467 * Returns the first d d m structure in the ordered set where classNameId = ?. 468 * 469 * <p> 470 * 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. 471 * </p> 472 * 473 * @param classNameId the class name ID 474 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 475 * @return the first matching d d m structure 476 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 477 * @throws SystemException if a system exception occurred 478 */ 479 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByClassNameId_First( 480 long classNameId, 481 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 482 throws com.liferay.portal.kernel.exception.SystemException, 483 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 484 485 /** 486 * Returns the last d d m structure in the ordered set where classNameId = ?. 487 * 488 * <p> 489 * 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. 490 * </p> 491 * 492 * @param classNameId the class name ID 493 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 494 * @return the last matching d d m structure 495 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 496 * @throws SystemException if a system exception occurred 497 */ 498 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByClassNameId_Last( 499 long classNameId, 500 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 501 throws com.liferay.portal.kernel.exception.SystemException, 502 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 503 504 /** 505 * Returns the d d m structures before and after the current d d m structure in the ordered set where classNameId = ?. 506 * 507 * <p> 508 * 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. 509 * </p> 510 * 511 * @param structureId the primary key of the current d d m structure 512 * @param classNameId the class name ID 513 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 514 * @return the previous, current, and next d d m structure 515 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 516 * @throws SystemException if a system exception occurred 517 */ 518 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByClassNameId_PrevAndNext( 519 long structureId, long classNameId, 520 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 521 throws com.liferay.portal.kernel.exception.SystemException, 522 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 523 524 /** 525 * Returns the d d m structure where groupId = ? and structureKey = ? or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureException} if it could not be found. 526 * 527 * @param groupId the group ID 528 * @param structureKey the structure key 529 * @return the matching d d m structure 530 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 531 * @throws SystemException if a system exception occurred 532 */ 533 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByG_S( 534 long groupId, java.lang.String structureKey) 535 throws com.liferay.portal.kernel.exception.SystemException, 536 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 537 538 /** 539 * Returns the d d m structure where groupId = ? and structureKey = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 540 * 541 * @param groupId the group ID 542 * @param structureKey the structure key 543 * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 544 * @throws SystemException if a system exception occurred 545 */ 546 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_S( 547 long groupId, java.lang.String structureKey) 548 throws com.liferay.portal.kernel.exception.SystemException; 549 550 /** 551 * Returns the d d m structure where groupId = ? and structureKey = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 552 * 553 * @param groupId the group ID 554 * @param structureKey the structure key 555 * @param retrieveFromCache whether to use the finder cache 556 * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 557 * @throws SystemException if a system exception occurred 558 */ 559 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_S( 560 long groupId, java.lang.String structureKey, boolean retrieveFromCache) 561 throws com.liferay.portal.kernel.exception.SystemException; 562 563 /** 564 * Returns all the d d m structures where groupId = ? and name = ? and description = ?. 565 * 566 * @param groupId the group ID 567 * @param name the name 568 * @param description the description 569 * @return the matching d d m structures 570 * @throws SystemException if a system exception occurred 571 */ 572 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D( 573 long groupId, java.lang.String name, java.lang.String description) 574 throws com.liferay.portal.kernel.exception.SystemException; 575 576 /** 577 * Returns a range of all the d d m structures where groupId = ? and name = ? and description = ?. 578 * 579 * <p> 580 * 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. 581 * </p> 582 * 583 * @param groupId the group ID 584 * @param name the name 585 * @param description the description 586 * @param start the lower bound of the range of d d m structures 587 * @param end the upper bound of the range of d d m structures (not inclusive) 588 * @return the range of matching d d m structures 589 * @throws SystemException if a system exception occurred 590 */ 591 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D( 592 long groupId, java.lang.String name, java.lang.String description, 593 int start, int end) 594 throws com.liferay.portal.kernel.exception.SystemException; 595 596 /** 597 * Returns an ordered range of all the d d m structures where groupId = ? and name = ? and description = ?. 598 * 599 * <p> 600 * 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. 601 * </p> 602 * 603 * @param groupId the group ID 604 * @param name the name 605 * @param description the description 606 * @param start the lower bound of the range of d d m structures 607 * @param end the upper bound of the range of d d m structures (not inclusive) 608 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 609 * @return the ordered range of matching d d m structures 610 * @throws SystemException if a system exception occurred 611 */ 612 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D( 613 long groupId, java.lang.String name, java.lang.String description, 614 int start, int end, 615 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 616 throws com.liferay.portal.kernel.exception.SystemException; 617 618 /** 619 * Returns the first d d m structure in the ordered set where groupId = ? and name = ? and description = ?. 620 * 621 * <p> 622 * 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. 623 * </p> 624 * 625 * @param groupId the group ID 626 * @param name the name 627 * @param description the description 628 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 629 * @return the first matching d d m structure 630 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 631 * @throws SystemException if a system exception occurred 632 */ 633 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByG_N_D_First( 634 long groupId, java.lang.String name, java.lang.String description, 635 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 636 throws com.liferay.portal.kernel.exception.SystemException, 637 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 638 639 /** 640 * Returns the last d d m structure in the ordered set where groupId = ? and name = ? and description = ?. 641 * 642 * <p> 643 * 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. 644 * </p> 645 * 646 * @param groupId the group ID 647 * @param name the name 648 * @param description the description 649 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 650 * @return the last matching d d m structure 651 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 652 * @throws SystemException if a system exception occurred 653 */ 654 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByG_N_D_Last( 655 long groupId, java.lang.String name, java.lang.String description, 656 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 657 throws com.liferay.portal.kernel.exception.SystemException, 658 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 659 660 /** 661 * Returns the d d m structures before and after the current d d m structure in the ordered set where groupId = ? and name = ? and description = ?. 662 * 663 * <p> 664 * 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. 665 * </p> 666 * 667 * @param structureId the primary key of the current d d m structure 668 * @param groupId the group ID 669 * @param name the name 670 * @param description the description 671 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 672 * @return the previous, current, and next d d m structure 673 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 674 * @throws SystemException if a system exception occurred 675 */ 676 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByG_N_D_PrevAndNext( 677 long structureId, long groupId, java.lang.String name, 678 java.lang.String description, 679 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 680 throws com.liferay.portal.kernel.exception.SystemException, 681 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 682 683 /** 684 * Returns all the d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?. 685 * 686 * @param groupId the group ID 687 * @param name the name 688 * @param description the description 689 * @return the matching d d m structures that the user has permission to view 690 * @throws SystemException if a system exception occurred 691 */ 692 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D( 693 long groupId, java.lang.String name, java.lang.String description) 694 throws com.liferay.portal.kernel.exception.SystemException; 695 696 /** 697 * Returns a range of all the d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?. 698 * 699 * <p> 700 * 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. 701 * </p> 702 * 703 * @param groupId the group ID 704 * @param name the name 705 * @param description the description 706 * @param start the lower bound of the range of d d m structures 707 * @param end the upper bound of the range of d d m structures (not inclusive) 708 * @return the range of matching d d m structures that the user has permission to view 709 * @throws SystemException if a system exception occurred 710 */ 711 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D( 712 long groupId, java.lang.String name, java.lang.String description, 713 int start, int end) 714 throws com.liferay.portal.kernel.exception.SystemException; 715 716 /** 717 * Returns an ordered range of all the d d m structures that the user has permissions to view where groupId = ? and name = ? and description = ?. 718 * 719 * <p> 720 * 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. 721 * </p> 722 * 723 * @param groupId the group ID 724 * @param name the name 725 * @param description the description 726 * @param start the lower bound of the range of d d m structures 727 * @param end the upper bound of the range of d d m structures (not inclusive) 728 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 729 * @return the ordered range of matching d d m structures that the user has permission to view 730 * @throws SystemException if a system exception occurred 731 */ 732 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D( 733 long groupId, java.lang.String name, java.lang.String description, 734 int start, int end, 735 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 736 throws com.liferay.portal.kernel.exception.SystemException; 737 738 /** 739 * Returns the d d m structures before and after the current d d m structure in the ordered set of d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?. 740 * 741 * @param structureId the primary key of the current d d m structure 742 * @param groupId the group ID 743 * @param name the name 744 * @param description the description 745 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 746 * @return the previous, current, and next d d m structure 747 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 748 * @throws SystemException if a system exception occurred 749 */ 750 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] filterFindByG_N_D_PrevAndNext( 751 long structureId, long groupId, java.lang.String name, 752 java.lang.String description, 753 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 754 throws com.liferay.portal.kernel.exception.SystemException, 755 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 756 757 /** 758 * Returns all the d d m structures. 759 * 760 * @return the d d m structures 761 * @throws SystemException if a system exception occurred 762 */ 763 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll() 764 throws com.liferay.portal.kernel.exception.SystemException; 765 766 /** 767 * Returns a range of all the d d m structures. 768 * 769 * <p> 770 * 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. 771 * </p> 772 * 773 * @param start the lower bound of the range of d d m structures 774 * @param end the upper bound of the range of d d m structures (not inclusive) 775 * @return the range of d d m structures 776 * @throws SystemException if a system exception occurred 777 */ 778 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll( 779 int start, int end) 780 throws com.liferay.portal.kernel.exception.SystemException; 781 782 /** 783 * Returns an ordered range of all the d d m structures. 784 * 785 * <p> 786 * 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. 787 * </p> 788 * 789 * @param start the lower bound of the range of d d m structures 790 * @param end the upper bound of the range of d d m structures (not inclusive) 791 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 792 * @return the ordered range of d d m structures 793 * @throws SystemException if a system exception occurred 794 */ 795 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll( 796 int start, int end, 797 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 798 throws com.liferay.portal.kernel.exception.SystemException; 799 800 /** 801 * Removes all the d d m structures where uuid = ? from the database. 802 * 803 * @param uuid the uuid 804 * @throws SystemException if a system exception occurred 805 */ 806 public void removeByUuid(java.lang.String uuid) 807 throws com.liferay.portal.kernel.exception.SystemException; 808 809 /** 810 * Removes the d d m structure where uuid = ? and groupId = ? from the database. 811 * 812 * @param uuid the uuid 813 * @param groupId the group ID 814 * @throws SystemException if a system exception occurred 815 */ 816 public void removeByUUID_G(java.lang.String uuid, long groupId) 817 throws com.liferay.portal.kernel.exception.SystemException, 818 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 819 820 /** 821 * Removes all the d d m structures where groupId = ? from the database. 822 * 823 * @param groupId the group ID 824 * @throws SystemException if a system exception occurred 825 */ 826 public void removeByGroupId(long groupId) 827 throws com.liferay.portal.kernel.exception.SystemException; 828 829 /** 830 * Removes all the d d m structures where classNameId = ? from the database. 831 * 832 * @param classNameId the class name ID 833 * @throws SystemException if a system exception occurred 834 */ 835 public void removeByClassNameId(long classNameId) 836 throws com.liferay.portal.kernel.exception.SystemException; 837 838 /** 839 * Removes the d d m structure where groupId = ? and structureKey = ? from the database. 840 * 841 * @param groupId the group ID 842 * @param structureKey the structure key 843 * @throws SystemException if a system exception occurred 844 */ 845 public void removeByG_S(long groupId, java.lang.String structureKey) 846 throws com.liferay.portal.kernel.exception.SystemException, 847 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 848 849 /** 850 * Removes all the d d m structures where groupId = ? and name = ? and description = ? from the database. 851 * 852 * @param groupId the group ID 853 * @param name the name 854 * @param description the description 855 * @throws SystemException if a system exception occurred 856 */ 857 public void removeByG_N_D(long groupId, java.lang.String name, 858 java.lang.String description) 859 throws com.liferay.portal.kernel.exception.SystemException; 860 861 /** 862 * Removes all the d d m structures from the database. 863 * 864 * @throws SystemException if a system exception occurred 865 */ 866 public void removeAll() 867 throws com.liferay.portal.kernel.exception.SystemException; 868 869 /** 870 * Returns the number of d d m structures where uuid = ?. 871 * 872 * @param uuid the uuid 873 * @return the number of matching d d m structures 874 * @throws SystemException if a system exception occurred 875 */ 876 public int countByUuid(java.lang.String uuid) 877 throws com.liferay.portal.kernel.exception.SystemException; 878 879 /** 880 * Returns the number of d d m structures where uuid = ? and groupId = ?. 881 * 882 * @param uuid the uuid 883 * @param groupId the group ID 884 * @return the number of matching d d m structures 885 * @throws SystemException if a system exception occurred 886 */ 887 public int countByUUID_G(java.lang.String uuid, long groupId) 888 throws com.liferay.portal.kernel.exception.SystemException; 889 890 /** 891 * Returns the number of d d m structures where groupId = ?. 892 * 893 * @param groupId the group ID 894 * @return the number of matching d d m structures 895 * @throws SystemException if a system exception occurred 896 */ 897 public int countByGroupId(long groupId) 898 throws com.liferay.portal.kernel.exception.SystemException; 899 900 /** 901 * Returns the number of d d m structures that the user has permission to view where groupId = ?. 902 * 903 * @param groupId the group ID 904 * @return the number of matching d d m structures that the user has permission to view 905 * @throws SystemException if a system exception occurred 906 */ 907 public int filterCountByGroupId(long groupId) 908 throws com.liferay.portal.kernel.exception.SystemException; 909 910 /** 911 * Returns the number of d d m structures where classNameId = ?. 912 * 913 * @param classNameId the class name ID 914 * @return the number of matching d d m structures 915 * @throws SystemException if a system exception occurred 916 */ 917 public int countByClassNameId(long classNameId) 918 throws com.liferay.portal.kernel.exception.SystemException; 919 920 /** 921 * Returns the number of d d m structures where groupId = ? and structureKey = ?. 922 * 923 * @param groupId the group ID 924 * @param structureKey the structure key 925 * @return the number of matching d d m structures 926 * @throws SystemException if a system exception occurred 927 */ 928 public int countByG_S(long groupId, java.lang.String structureKey) 929 throws com.liferay.portal.kernel.exception.SystemException; 930 931 /** 932 * Returns the number of d d m structures where groupId = ? and name = ? and description = ?. 933 * 934 * @param groupId the group ID 935 * @param name the name 936 * @param description the description 937 * @return the number of matching d d m structures 938 * @throws SystemException if a system exception occurred 939 */ 940 public int countByG_N_D(long groupId, java.lang.String name, 941 java.lang.String description) 942 throws com.liferay.portal.kernel.exception.SystemException; 943 944 /** 945 * Returns the number of d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?. 946 * 947 * @param groupId the group ID 948 * @param name the name 949 * @param description the description 950 * @return the number of matching d d m structures that the user has permission to view 951 * @throws SystemException if a system exception occurred 952 */ 953 public int filterCountByG_N_D(long groupId, java.lang.String name, 954 java.lang.String description) 955 throws com.liferay.portal.kernel.exception.SystemException; 956 957 /** 958 * Returns the number of d d m structures. 959 * 960 * @return the number of d d m structures 961 * @throws SystemException if a system exception occurred 962 */ 963 public int countAll() 964 throws com.liferay.portal.kernel.exception.SystemException; 965 }