001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 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 * @param uuid the uuid 158 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 159 * @return the first matching d d m structure 160 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 161 * @throws SystemException if a system exception occurred 162 */ 163 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByUuid_First( 164 java.lang.String uuid, 165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 166 throws com.liferay.portal.kernel.exception.SystemException, 167 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 168 169 /** 170 * Returns the first d d m structure in the ordered set where uuid = ?. 171 * 172 * @param uuid the uuid 173 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 174 * @return the first matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 175 * @throws SystemException if a system exception occurred 176 */ 177 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByUuid_First( 178 java.lang.String uuid, 179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 180 throws com.liferay.portal.kernel.exception.SystemException; 181 182 /** 183 * Returns the last d d m structure in the ordered set where uuid = ?. 184 * 185 * @param uuid the uuid 186 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 187 * @return the last matching d d m structure 188 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 189 * @throws SystemException if a system exception occurred 190 */ 191 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByUuid_Last( 192 java.lang.String uuid, 193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 194 throws com.liferay.portal.kernel.exception.SystemException, 195 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 196 197 /** 198 * Returns the last d d m structure in the ordered set where uuid = ?. 199 * 200 * @param uuid the uuid 201 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 202 * @return the last matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 203 * @throws SystemException if a system exception occurred 204 */ 205 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByUuid_Last( 206 java.lang.String uuid, 207 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 208 throws com.liferay.portal.kernel.exception.SystemException; 209 210 /** 211 * Returns the d d m structures before and after the current d d m structure in the ordered set where uuid = ?. 212 * 213 * @param structureId the primary key of the current d d m structure 214 * @param uuid the uuid 215 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 216 * @return the previous, current, and next d d m structure 217 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 218 * @throws SystemException if a system exception occurred 219 */ 220 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByUuid_PrevAndNext( 221 long structureId, java.lang.String uuid, 222 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 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 throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureException} if it could not be found. 228 * 229 * @param uuid the uuid 230 * @param groupId the group ID 231 * @return the matching d d m structure 232 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 233 * @throws SystemException if a system exception occurred 234 */ 235 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByUUID_G( 236 java.lang.String uuid, long groupId) 237 throws com.liferay.portal.kernel.exception.SystemException, 238 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 239 240 /** 241 * 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. 242 * 243 * @param uuid the uuid 244 * @param groupId the group ID 245 * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 246 * @throws SystemException if a system exception occurred 247 */ 248 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByUUID_G( 249 java.lang.String uuid, long groupId) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * 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. 254 * 255 * @param uuid the uuid 256 * @param groupId the group ID 257 * @param retrieveFromCache whether to use the finder cache 258 * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 259 * @throws SystemException if a system exception occurred 260 */ 261 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByUUID_G( 262 java.lang.String uuid, long groupId, boolean retrieveFromCache) 263 throws com.liferay.portal.kernel.exception.SystemException; 264 265 /** 266 * Returns all the d d m structures where groupId = ?. 267 * 268 * @param groupId the group ID 269 * @return the matching d d m structures 270 * @throws SystemException if a system exception occurred 271 */ 272 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByGroupId( 273 long groupId) 274 throws com.liferay.portal.kernel.exception.SystemException; 275 276 /** 277 * Returns a range of all the d d m structures where groupId = ?. 278 * 279 * <p> 280 * 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. 281 * </p> 282 * 283 * @param groupId the group ID 284 * @param start the lower bound of the range of d d m structures 285 * @param end the upper bound of the range of d d m structures (not inclusive) 286 * @return the range of matching d d m structures 287 * @throws SystemException if a system exception occurred 288 */ 289 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByGroupId( 290 long groupId, int start, int end) 291 throws com.liferay.portal.kernel.exception.SystemException; 292 293 /** 294 * Returns an ordered range of all the d d m structures where groupId = ?. 295 * 296 * <p> 297 * 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. 298 * </p> 299 * 300 * @param groupId the group ID 301 * @param start the lower bound of the range of d d m structures 302 * @param end the upper bound of the range of d d m structures (not inclusive) 303 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 304 * @return the ordered range of matching d d m structures 305 * @throws SystemException if a system exception occurred 306 */ 307 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByGroupId( 308 long groupId, int start, int end, 309 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 310 throws com.liferay.portal.kernel.exception.SystemException; 311 312 /** 313 * Returns the first d d m structure in the ordered set where groupId = ?. 314 * 315 * @param groupId the group ID 316 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 317 * @return the first matching d d m structure 318 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 319 * @throws SystemException if a system exception occurred 320 */ 321 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByGroupId_First( 322 long groupId, 323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 326 327 /** 328 * Returns the first d d m structure in the ordered set where groupId = ?. 329 * 330 * @param groupId the group ID 331 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 332 * @return the first matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 333 * @throws SystemException if a system exception occurred 334 */ 335 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByGroupId_First( 336 long groupId, 337 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 338 throws com.liferay.portal.kernel.exception.SystemException; 339 340 /** 341 * Returns the last d d m structure in the ordered set where groupId = ?. 342 * 343 * @param groupId the group ID 344 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 345 * @return the last matching d d m structure 346 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 347 * @throws SystemException if a system exception occurred 348 */ 349 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByGroupId_Last( 350 long groupId, 351 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 352 throws com.liferay.portal.kernel.exception.SystemException, 353 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 354 355 /** 356 * Returns the last d d m structure in the ordered set where groupId = ?. 357 * 358 * @param groupId the group ID 359 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 360 * @return the last matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 361 * @throws SystemException if a system exception occurred 362 */ 363 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByGroupId_Last( 364 long groupId, 365 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 366 throws com.liferay.portal.kernel.exception.SystemException; 367 368 /** 369 * Returns the d d m structures before and after the current d d m structure in the ordered set where groupId = ?. 370 * 371 * @param structureId the primary key of the current d d m structure 372 * @param groupId the group ID 373 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 374 * @return the previous, current, and next d d m structure 375 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 376 * @throws SystemException if a system exception occurred 377 */ 378 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByGroupId_PrevAndNext( 379 long structureId, long groupId, 380 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 381 throws com.liferay.portal.kernel.exception.SystemException, 382 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 383 384 /** 385 * Returns all the d d m structures that the user has permission to view where groupId = ?. 386 * 387 * @param groupId the group ID 388 * @return the matching d d m structures that the user has permission to view 389 * @throws SystemException if a system exception occurred 390 */ 391 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByGroupId( 392 long groupId) 393 throws com.liferay.portal.kernel.exception.SystemException; 394 395 /** 396 * Returns a range of all the d d m structures that the user has permission to view where groupId = ?. 397 * 398 * <p> 399 * 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. 400 * </p> 401 * 402 * @param groupId the group ID 403 * @param start the lower bound of the range of d d m structures 404 * @param end the upper bound of the range of d d m structures (not inclusive) 405 * @return the range of matching d d m structures that the user has permission to view 406 * @throws SystemException if a system exception occurred 407 */ 408 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByGroupId( 409 long groupId, int start, int end) 410 throws com.liferay.portal.kernel.exception.SystemException; 411 412 /** 413 * Returns an ordered range of all the d d m structures that the user has permissions to view where groupId = ?. 414 * 415 * <p> 416 * 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. 417 * </p> 418 * 419 * @param groupId the group ID 420 * @param start the lower bound of the range of d d m structures 421 * @param end the upper bound of the range of d d m structures (not inclusive) 422 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 423 * @return the ordered range of matching d d m structures that the user has permission to view 424 * @throws SystemException if a system exception occurred 425 */ 426 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByGroupId( 427 long groupId, int start, int end, 428 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 429 throws com.liferay.portal.kernel.exception.SystemException; 430 431 /** 432 * 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 = ?. 433 * 434 * @param structureId the primary key of the current d d m structure 435 * @param groupId the group ID 436 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 437 * @return the previous, current, and next d d m structure 438 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 439 * @throws SystemException if a system exception occurred 440 */ 441 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] filterFindByGroupId_PrevAndNext( 442 long structureId, long groupId, 443 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 444 throws com.liferay.portal.kernel.exception.SystemException, 445 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 446 447 /** 448 * Returns all the d d m structures where classNameId = ?. 449 * 450 * @param classNameId the class name ID 451 * @return the matching d d m structures 452 * @throws SystemException if a system exception occurred 453 */ 454 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByClassNameId( 455 long classNameId) 456 throws com.liferay.portal.kernel.exception.SystemException; 457 458 /** 459 * Returns a range of all the d d m structures where classNameId = ?. 460 * 461 * <p> 462 * 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. 463 * </p> 464 * 465 * @param classNameId the class name ID 466 * @param start the lower bound of the range of d d m structures 467 * @param end the upper bound of the range of d d m structures (not inclusive) 468 * @return the range of matching d d m structures 469 * @throws SystemException if a system exception occurred 470 */ 471 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByClassNameId( 472 long classNameId, int start, int end) 473 throws com.liferay.portal.kernel.exception.SystemException; 474 475 /** 476 * Returns an ordered range of all the d d m structures where classNameId = ?. 477 * 478 * <p> 479 * 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. 480 * </p> 481 * 482 * @param classNameId the class name ID 483 * @param start the lower bound of the range of d d m structures 484 * @param end the upper bound of the range of d d m structures (not inclusive) 485 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 486 * @return the ordered range of matching d d m structures 487 * @throws SystemException if a system exception occurred 488 */ 489 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByClassNameId( 490 long classNameId, int start, int end, 491 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 492 throws com.liferay.portal.kernel.exception.SystemException; 493 494 /** 495 * Returns the first d d m structure in the ordered set where classNameId = ?. 496 * 497 * @param classNameId the class name ID 498 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 499 * @return the first matching d d m structure 500 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 501 * @throws SystemException if a system exception occurred 502 */ 503 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByClassNameId_First( 504 long classNameId, 505 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 506 throws com.liferay.portal.kernel.exception.SystemException, 507 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 508 509 /** 510 * Returns the first d d m structure in the ordered set where classNameId = ?. 511 * 512 * @param classNameId the class name ID 513 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 514 * @return the first matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 515 * @throws SystemException if a system exception occurred 516 */ 517 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByClassNameId_First( 518 long classNameId, 519 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 520 throws com.liferay.portal.kernel.exception.SystemException; 521 522 /** 523 * Returns the last d d m structure in the ordered set where classNameId = ?. 524 * 525 * @param classNameId the class name ID 526 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 527 * @return the last matching d d m structure 528 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 529 * @throws SystemException if a system exception occurred 530 */ 531 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByClassNameId_Last( 532 long classNameId, 533 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 534 throws com.liferay.portal.kernel.exception.SystemException, 535 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 536 537 /** 538 * Returns the last d d m structure in the ordered set where classNameId = ?. 539 * 540 * @param classNameId the class name ID 541 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 542 * @return the last matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 543 * @throws SystemException if a system exception occurred 544 */ 545 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByClassNameId_Last( 546 long classNameId, 547 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 548 throws com.liferay.portal.kernel.exception.SystemException; 549 550 /** 551 * Returns the d d m structures before and after the current d d m structure in the ordered set where classNameId = ?. 552 * 553 * @param structureId the primary key of the current d d m structure 554 * @param classNameId the class name ID 555 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 556 * @return the previous, current, and next d d m structure 557 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 558 * @throws SystemException if a system exception occurred 559 */ 560 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByClassNameId_PrevAndNext( 561 long structureId, long classNameId, 562 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 563 throws com.liferay.portal.kernel.exception.SystemException, 564 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 565 566 /** 567 * 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. 568 * 569 * @param groupId the group ID 570 * @param structureKey the structure key 571 * @return the matching d d m structure 572 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 573 * @throws SystemException if a system exception occurred 574 */ 575 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByG_S( 576 long groupId, java.lang.String structureKey) 577 throws com.liferay.portal.kernel.exception.SystemException, 578 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 579 580 /** 581 * 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. 582 * 583 * @param groupId the group ID 584 * @param structureKey the structure key 585 * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 586 * @throws SystemException if a system exception occurred 587 */ 588 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_S( 589 long groupId, java.lang.String structureKey) 590 throws com.liferay.portal.kernel.exception.SystemException; 591 592 /** 593 * 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. 594 * 595 * @param groupId the group ID 596 * @param structureKey the structure key 597 * @param retrieveFromCache whether to use the finder cache 598 * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 599 * @throws SystemException if a system exception occurred 600 */ 601 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_S( 602 long groupId, java.lang.String structureKey, boolean retrieveFromCache) 603 throws com.liferay.portal.kernel.exception.SystemException; 604 605 /** 606 * Returns all the d d m structures where groupId = ? and name = ? and description = ?. 607 * 608 * @param groupId the group ID 609 * @param name the name 610 * @param description the description 611 * @return the matching d d m structures 612 * @throws SystemException if a system exception occurred 613 */ 614 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D( 615 long groupId, java.lang.String name, java.lang.String description) 616 throws com.liferay.portal.kernel.exception.SystemException; 617 618 /** 619 * Returns a range of all the d d m structures 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 start the lower bound of the range of d d m structures 629 * @param end the upper bound of the range of d d m structures (not inclusive) 630 * @return the range of matching d d m structures 631 * @throws SystemException if a system exception occurred 632 */ 633 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D( 634 long groupId, java.lang.String name, java.lang.String description, 635 int start, int end) 636 throws com.liferay.portal.kernel.exception.SystemException; 637 638 /** 639 * Returns an ordered range of all the d d m structures where groupId = ? and name = ? and description = ?. 640 * 641 * <p> 642 * 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. 643 * </p> 644 * 645 * @param groupId the group ID 646 * @param name the name 647 * @param description the description 648 * @param start the lower bound of the range of d d m structures 649 * @param end the upper bound of the range of d d m structures (not inclusive) 650 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 651 * @return the ordered range of matching d d m structures 652 * @throws SystemException if a system exception occurred 653 */ 654 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByG_N_D( 655 long groupId, java.lang.String name, java.lang.String description, 656 int start, int end, 657 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 658 throws com.liferay.portal.kernel.exception.SystemException; 659 660 /** 661 * Returns the first d d m structure in the ordered set where groupId = ? and name = ? and description = ?. 662 * 663 * @param groupId the group ID 664 * @param name the name 665 * @param description the description 666 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 667 * @return the first matching d d m structure 668 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 669 * @throws SystemException if a system exception occurred 670 */ 671 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByG_N_D_First( 672 long groupId, java.lang.String name, java.lang.String description, 673 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 674 throws com.liferay.portal.kernel.exception.SystemException, 675 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 676 677 /** 678 * Returns the first d d m structure in the ordered set where groupId = ? and name = ? and description = ?. 679 * 680 * @param groupId the group ID 681 * @param name the name 682 * @param description the description 683 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 684 * @return the first matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 685 * @throws SystemException if a system exception occurred 686 */ 687 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_N_D_First( 688 long groupId, java.lang.String name, java.lang.String description, 689 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 690 throws com.liferay.portal.kernel.exception.SystemException; 691 692 /** 693 * Returns the last d d m structure in the ordered set where groupId = ? and name = ? and description = ?. 694 * 695 * @param groupId the group ID 696 * @param name the name 697 * @param description the description 698 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 699 * @return the last matching d d m structure 700 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a matching d d m structure could not be found 701 * @throws SystemException if a system exception occurred 702 */ 703 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure findByG_N_D_Last( 704 long groupId, java.lang.String name, java.lang.String description, 705 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 706 throws com.liferay.portal.kernel.exception.SystemException, 707 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 708 709 /** 710 * Returns the last d d m structure in the ordered set where groupId = ? and name = ? and description = ?. 711 * 712 * @param groupId the group ID 713 * @param name the name 714 * @param description the description 715 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 716 * @return the last matching d d m structure, or <code>null</code> if a matching d d m structure could not be found 717 * @throws SystemException if a system exception occurred 718 */ 719 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchByG_N_D_Last( 720 long groupId, java.lang.String name, java.lang.String description, 721 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 722 throws com.liferay.portal.kernel.exception.SystemException; 723 724 /** 725 * 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 = ?. 726 * 727 * @param structureId the primary key of the current d d m structure 728 * @param groupId the group ID 729 * @param name the name 730 * @param description the description 731 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 732 * @return the previous, current, and next d d m structure 733 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 734 * @throws SystemException if a system exception occurred 735 */ 736 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] findByG_N_D_PrevAndNext( 737 long structureId, long groupId, java.lang.String name, 738 java.lang.String description, 739 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 740 throws com.liferay.portal.kernel.exception.SystemException, 741 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 742 743 /** 744 * Returns all the d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?. 745 * 746 * @param groupId the group ID 747 * @param name the name 748 * @param description the description 749 * @return the matching d d m structures that the user has permission to view 750 * @throws SystemException if a system exception occurred 751 */ 752 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D( 753 long groupId, java.lang.String name, java.lang.String description) 754 throws com.liferay.portal.kernel.exception.SystemException; 755 756 /** 757 * Returns a range of all the d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?. 758 * 759 * <p> 760 * 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. 761 * </p> 762 * 763 * @param groupId the group ID 764 * @param name the name 765 * @param description the description 766 * @param start the lower bound of the range of d d m structures 767 * @param end the upper bound of the range of d d m structures (not inclusive) 768 * @return the range of matching d d m structures that the user has permission to view 769 * @throws SystemException if a system exception occurred 770 */ 771 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D( 772 long groupId, java.lang.String name, java.lang.String description, 773 int start, int end) 774 throws com.liferay.portal.kernel.exception.SystemException; 775 776 /** 777 * Returns an ordered range of all the d d m structures that the user has permissions to view where groupId = ? and name = ? and description = ?. 778 * 779 * <p> 780 * 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. 781 * </p> 782 * 783 * @param groupId the group ID 784 * @param name the name 785 * @param description the description 786 * @param start the lower bound of the range of d d m structures 787 * @param end the upper bound of the range of d d m structures (not inclusive) 788 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 789 * @return the ordered range of matching d d m structures that the user has permission to view 790 * @throws SystemException if a system exception occurred 791 */ 792 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByG_N_D( 793 long groupId, java.lang.String name, java.lang.String description, 794 int start, int end, 795 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 796 throws com.liferay.portal.kernel.exception.SystemException; 797 798 /** 799 * 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 = ?. 800 * 801 * @param structureId the primary key of the current d d m structure 802 * @param groupId the group ID 803 * @param name the name 804 * @param description the description 805 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 806 * @return the previous, current, and next d d m structure 807 * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureException if a d d m structure with the primary key could not be found 808 * @throws SystemException if a system exception occurred 809 */ 810 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure[] filterFindByG_N_D_PrevAndNext( 811 long structureId, long groupId, java.lang.String name, 812 java.lang.String description, 813 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 814 throws com.liferay.portal.kernel.exception.SystemException, 815 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 816 817 /** 818 * Returns all the d d m structures. 819 * 820 * @return the d d m structures 821 * @throws SystemException if a system exception occurred 822 */ 823 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll() 824 throws com.liferay.portal.kernel.exception.SystemException; 825 826 /** 827 * Returns a range of all the d d m structures. 828 * 829 * <p> 830 * 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. 831 * </p> 832 * 833 * @param start the lower bound of the range of d d m structures 834 * @param end the upper bound of the range of d d m structures (not inclusive) 835 * @return the range of d d m structures 836 * @throws SystemException if a system exception occurred 837 */ 838 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll( 839 int start, int end) 840 throws com.liferay.portal.kernel.exception.SystemException; 841 842 /** 843 * Returns an ordered range of all the d d m structures. 844 * 845 * <p> 846 * 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. 847 * </p> 848 * 849 * @param start the lower bound of the range of d d m structures 850 * @param end the upper bound of the range of d d m structures (not inclusive) 851 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 852 * @return the ordered range of d d m structures 853 * @throws SystemException if a system exception occurred 854 */ 855 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findAll( 856 int start, int end, 857 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 858 throws com.liferay.portal.kernel.exception.SystemException; 859 860 /** 861 * Removes all the d d m structures where uuid = ? from the database. 862 * 863 * @param uuid the uuid 864 * @throws SystemException if a system exception occurred 865 */ 866 public void removeByUuid(java.lang.String uuid) 867 throws com.liferay.portal.kernel.exception.SystemException; 868 869 /** 870 * Removes the d d m structure where uuid = ? and groupId = ? from the database. 871 * 872 * @param uuid the uuid 873 * @param groupId the group ID 874 * @return the d d m structure that was removed 875 * @throws SystemException if a system exception occurred 876 */ 877 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure removeByUUID_G( 878 java.lang.String uuid, long groupId) 879 throws com.liferay.portal.kernel.exception.SystemException, 880 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 881 882 /** 883 * Removes all the d d m structures where groupId = ? from the database. 884 * 885 * @param groupId the group ID 886 * @throws SystemException if a system exception occurred 887 */ 888 public void removeByGroupId(long groupId) 889 throws com.liferay.portal.kernel.exception.SystemException; 890 891 /** 892 * Removes all the d d m structures where classNameId = ? from the database. 893 * 894 * @param classNameId the class name ID 895 * @throws SystemException if a system exception occurred 896 */ 897 public void removeByClassNameId(long classNameId) 898 throws com.liferay.portal.kernel.exception.SystemException; 899 900 /** 901 * Removes the d d m structure where groupId = ? and structureKey = ? from the database. 902 * 903 * @param groupId the group ID 904 * @param structureKey the structure key 905 * @return the d d m structure that was removed 906 * @throws SystemException if a system exception occurred 907 */ 908 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure removeByG_S( 909 long groupId, java.lang.String structureKey) 910 throws com.liferay.portal.kernel.exception.SystemException, 911 com.liferay.portlet.dynamicdatamapping.NoSuchStructureException; 912 913 /** 914 * Removes all the d d m structures where groupId = ? and name = ? and description = ? from the database. 915 * 916 * @param groupId the group ID 917 * @param name the name 918 * @param description the description 919 * @throws SystemException if a system exception occurred 920 */ 921 public void removeByG_N_D(long groupId, java.lang.String name, 922 java.lang.String description) 923 throws com.liferay.portal.kernel.exception.SystemException; 924 925 /** 926 * Removes all the d d m structures from the database. 927 * 928 * @throws SystemException if a system exception occurred 929 */ 930 public void removeAll() 931 throws com.liferay.portal.kernel.exception.SystemException; 932 933 /** 934 * Returns the number of d d m structures where uuid = ?. 935 * 936 * @param uuid the uuid 937 * @return the number of matching d d m structures 938 * @throws SystemException if a system exception occurred 939 */ 940 public int countByUuid(java.lang.String uuid) 941 throws com.liferay.portal.kernel.exception.SystemException; 942 943 /** 944 * Returns the number of d d m structures where uuid = ? and groupId = ?. 945 * 946 * @param uuid the uuid 947 * @param groupId the group ID 948 * @return the number of matching d d m structures 949 * @throws SystemException if a system exception occurred 950 */ 951 public int countByUUID_G(java.lang.String uuid, long groupId) 952 throws com.liferay.portal.kernel.exception.SystemException; 953 954 /** 955 * Returns the number of d d m structures where groupId = ?. 956 * 957 * @param groupId the group ID 958 * @return the number of matching d d m structures 959 * @throws SystemException if a system exception occurred 960 */ 961 public int countByGroupId(long groupId) 962 throws com.liferay.portal.kernel.exception.SystemException; 963 964 /** 965 * Returns the number of d d m structures that the user has permission to view where groupId = ?. 966 * 967 * @param groupId the group ID 968 * @return the number of matching d d m structures that the user has permission to view 969 * @throws SystemException if a system exception occurred 970 */ 971 public int filterCountByGroupId(long groupId) 972 throws com.liferay.portal.kernel.exception.SystemException; 973 974 /** 975 * Returns the number of d d m structures where classNameId = ?. 976 * 977 * @param classNameId the class name ID 978 * @return the number of matching d d m structures 979 * @throws SystemException if a system exception occurred 980 */ 981 public int countByClassNameId(long classNameId) 982 throws com.liferay.portal.kernel.exception.SystemException; 983 984 /** 985 * Returns the number of d d m structures where groupId = ? and structureKey = ?. 986 * 987 * @param groupId the group ID 988 * @param structureKey the structure key 989 * @return the number of matching d d m structures 990 * @throws SystemException if a system exception occurred 991 */ 992 public int countByG_S(long groupId, java.lang.String structureKey) 993 throws com.liferay.portal.kernel.exception.SystemException; 994 995 /** 996 * Returns the number of d d m structures where groupId = ? and name = ? and description = ?. 997 * 998 * @param groupId the group ID 999 * @param name the name 1000 * @param description the description 1001 * @return the number of matching d d m structures 1002 * @throws SystemException if a system exception occurred 1003 */ 1004 public int countByG_N_D(long groupId, java.lang.String name, 1005 java.lang.String description) 1006 throws com.liferay.portal.kernel.exception.SystemException; 1007 1008 /** 1009 * Returns the number of d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?. 1010 * 1011 * @param groupId the group ID 1012 * @param name the name 1013 * @param description the description 1014 * @return the number of matching d d m structures that the user has permission to view 1015 * @throws SystemException if a system exception occurred 1016 */ 1017 public int filterCountByG_N_D(long groupId, java.lang.String name, 1018 java.lang.String description) 1019 throws com.liferay.portal.kernel.exception.SystemException; 1020 1021 /** 1022 * Returns the number of d d m structures. 1023 * 1024 * @return the number of d d m structures 1025 * @throws SystemException if a system exception occurred 1026 */ 1027 public int countAll() 1028 throws com.liferay.portal.kernel.exception.SystemException; 1029 }