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