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.expando.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.expando.model.ExpandoColumn; 021 022 /** 023 * The persistence interface for the expando column 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 ExpandoColumnPersistenceImpl 031 * @see ExpandoColumnUtil 032 * @generated 033 */ 034 public interface ExpandoColumnPersistence extends BasePersistence<ExpandoColumn> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify or reference this interface directly. Always use {@link ExpandoColumnUtil} to access the expando column persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 039 */ 040 041 /** 042 * Caches the expando column in the entity cache if it is enabled. 043 * 044 * @param expandoColumn the expando column 045 */ 046 public void cacheResult( 047 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn); 048 049 /** 050 * Caches the expando columns in the entity cache if it is enabled. 051 * 052 * @param expandoColumns the expando columns 053 */ 054 public void cacheResult( 055 java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> expandoColumns); 056 057 /** 058 * Creates a new expando column with the primary key. Does not add the expando column to the database. 059 * 060 * @param columnId the primary key for the new expando column 061 * @return the new expando column 062 */ 063 public com.liferay.portlet.expando.model.ExpandoColumn create(long columnId); 064 065 /** 066 * Removes the expando column with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param columnId the primary key of the expando column 069 * @return the expando column that was removed 070 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.expando.model.ExpandoColumn remove(long columnId) 074 throws com.liferay.portal.kernel.exception.SystemException, 075 com.liferay.portlet.expando.NoSuchColumnException; 076 077 public com.liferay.portlet.expando.model.ExpandoColumn updateImpl( 078 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn, 079 boolean merge) 080 throws com.liferay.portal.kernel.exception.SystemException; 081 082 /** 083 * Returns the expando column with the primary key or throws a {@link com.liferay.portlet.expando.NoSuchColumnException} if it could not be found. 084 * 085 * @param columnId the primary key of the expando column 086 * @return the expando column 087 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 088 * @throws SystemException if a system exception occurred 089 */ 090 public com.liferay.portlet.expando.model.ExpandoColumn findByPrimaryKey( 091 long columnId) 092 throws com.liferay.portal.kernel.exception.SystemException, 093 com.liferay.portlet.expando.NoSuchColumnException; 094 095 /** 096 * Returns the expando column with the primary key or returns <code>null</code> if it could not be found. 097 * 098 * @param columnId the primary key of the expando column 099 * @return the expando column, or <code>null</code> if a expando column with the primary key could not be found 100 * @throws SystemException if a system exception occurred 101 */ 102 public com.liferay.portlet.expando.model.ExpandoColumn fetchByPrimaryKey( 103 long columnId) 104 throws com.liferay.portal.kernel.exception.SystemException; 105 106 /** 107 * Returns all the expando columns where tableId = ?. 108 * 109 * @param tableId the table ID 110 * @return the matching expando columns 111 * @throws SystemException if a system exception occurred 112 */ 113 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId( 114 long tableId) 115 throws com.liferay.portal.kernel.exception.SystemException; 116 117 /** 118 * Returns a range of all the expando columns where tableId = ?. 119 * 120 * <p> 121 * 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. 122 * </p> 123 * 124 * @param tableId the table ID 125 * @param start the lower bound of the range of expando columns 126 * @param end the upper bound of the range of expando columns (not inclusive) 127 * @return the range of matching expando columns 128 * @throws SystemException if a system exception occurred 129 */ 130 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId( 131 long tableId, int start, int end) 132 throws com.liferay.portal.kernel.exception.SystemException; 133 134 /** 135 * Returns an ordered range of all the expando columns where tableId = ?. 136 * 137 * <p> 138 * 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. 139 * </p> 140 * 141 * @param tableId the table ID 142 * @param start the lower bound of the range of expando columns 143 * @param end the upper bound of the range of expando columns (not inclusive) 144 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 145 * @return the ordered range of matching expando columns 146 * @throws SystemException if a system exception occurred 147 */ 148 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId( 149 long tableId, int start, int end, 150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 151 throws com.liferay.portal.kernel.exception.SystemException; 152 153 /** 154 * Returns the first expando column in the ordered set where tableId = ?. 155 * 156 * <p> 157 * 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. 158 * </p> 159 * 160 * @param tableId the table ID 161 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 162 * @return the first matching expando column 163 * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found 164 * @throws SystemException if a system exception occurred 165 */ 166 public com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First( 167 long tableId, 168 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 169 throws com.liferay.portal.kernel.exception.SystemException, 170 com.liferay.portlet.expando.NoSuchColumnException; 171 172 /** 173 * Returns the last expando column in the ordered set where tableId = ?. 174 * 175 * <p> 176 * 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. 177 * </p> 178 * 179 * @param tableId the table ID 180 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 181 * @return the last matching expando column 182 * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found 183 * @throws SystemException if a system exception occurred 184 */ 185 public com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last( 186 long tableId, 187 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 188 throws com.liferay.portal.kernel.exception.SystemException, 189 com.liferay.portlet.expando.NoSuchColumnException; 190 191 /** 192 * Returns the expando columns before and after the current expando column in the ordered set where tableId = ?. 193 * 194 * <p> 195 * 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. 196 * </p> 197 * 198 * @param columnId the primary key of the current expando column 199 * @param tableId the table ID 200 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 201 * @return the previous, current, and next expando column 202 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 203 * @throws SystemException if a system exception occurred 204 */ 205 public com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext( 206 long columnId, long tableId, 207 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 208 throws com.liferay.portal.kernel.exception.SystemException, 209 com.liferay.portlet.expando.NoSuchColumnException; 210 211 /** 212 * Returns all the expando columns that the user has permission to view where tableId = ?. 213 * 214 * @param tableId the table ID 215 * @return the matching expando columns that the user has permission to view 216 * @throws SystemException if a system exception occurred 217 */ 218 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId( 219 long tableId) 220 throws com.liferay.portal.kernel.exception.SystemException; 221 222 /** 223 * Returns a range of all the expando columns that the user has permission to view where tableId = ?. 224 * 225 * <p> 226 * 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. 227 * </p> 228 * 229 * @param tableId the table ID 230 * @param start the lower bound of the range of expando columns 231 * @param end the upper bound of the range of expando columns (not inclusive) 232 * @return the range of matching expando columns that the user has permission to view 233 * @throws SystemException if a system exception occurred 234 */ 235 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId( 236 long tableId, int start, int end) 237 throws com.liferay.portal.kernel.exception.SystemException; 238 239 /** 240 * Returns an ordered range of all the expando columns that the user has permissions to view where tableId = ?. 241 * 242 * <p> 243 * 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. 244 * </p> 245 * 246 * @param tableId the table ID 247 * @param start the lower bound of the range of expando columns 248 * @param end the upper bound of the range of expando columns (not inclusive) 249 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 250 * @return the ordered range of matching expando columns that the user has permission to view 251 * @throws SystemException if a system exception occurred 252 */ 253 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId( 254 long tableId, int start, int end, 255 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 256 throws com.liferay.portal.kernel.exception.SystemException; 257 258 /** 259 * Returns the expando columns before and after the current expando column in the ordered set of expando columns that the user has permission to view where tableId = ?. 260 * 261 * @param columnId the primary key of the current expando column 262 * @param tableId the table ID 263 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 264 * @return the previous, current, and next expando column 265 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 266 * @throws SystemException if a system exception occurred 267 */ 268 public com.liferay.portlet.expando.model.ExpandoColumn[] filterFindByTableId_PrevAndNext( 269 long columnId, long tableId, 270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 271 throws com.liferay.portal.kernel.exception.SystemException, 272 com.liferay.portlet.expando.NoSuchColumnException; 273 274 /** 275 * Returns all the expando columns where tableId = ? and name = ?. 276 * 277 * @param tableId the table ID 278 * @param name the name 279 * @return the matching expando columns 280 * @throws SystemException if a system exception occurred 281 */ 282 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N( 283 long tableId, java.lang.String name) 284 throws com.liferay.portal.kernel.exception.SystemException; 285 286 /** 287 * Returns a range of all the expando columns where tableId = ? and name = ?. 288 * 289 * <p> 290 * 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. 291 * </p> 292 * 293 * @param tableId the table ID 294 * @param name the name 295 * @param start the lower bound of the range of expando columns 296 * @param end the upper bound of the range of expando columns (not inclusive) 297 * @return the range of matching expando columns 298 * @throws SystemException if a system exception occurred 299 */ 300 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N( 301 long tableId, java.lang.String name, int start, int end) 302 throws com.liferay.portal.kernel.exception.SystemException; 303 304 /** 305 * Returns an ordered range of all the expando columns where tableId = ? and name = ?. 306 * 307 * <p> 308 * 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. 309 * </p> 310 * 311 * @param tableId the table ID 312 * @param name the name 313 * @param start the lower bound of the range of expando columns 314 * @param end the upper bound of the range of expando columns (not inclusive) 315 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 316 * @return the ordered range of matching expando columns 317 * @throws SystemException if a system exception occurred 318 */ 319 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N( 320 long tableId, java.lang.String name, int start, int end, 321 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 322 throws com.liferay.portal.kernel.exception.SystemException; 323 324 /** 325 * Returns the first expando column in the ordered set where tableId = ? and name = ?. 326 * 327 * <p> 328 * 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. 329 * </p> 330 * 331 * @param tableId the table ID 332 * @param name the name 333 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 334 * @return the first matching expando column 335 * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found 336 * @throws SystemException if a system exception occurred 337 */ 338 public com.liferay.portlet.expando.model.ExpandoColumn findByT_N_First( 339 long tableId, java.lang.String name, 340 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 341 throws com.liferay.portal.kernel.exception.SystemException, 342 com.liferay.portlet.expando.NoSuchColumnException; 343 344 /** 345 * Returns the last expando column in the ordered set where tableId = ? and name = ?. 346 * 347 * <p> 348 * 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. 349 * </p> 350 * 351 * @param tableId the table ID 352 * @param name the name 353 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 354 * @return the last matching expando column 355 * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found 356 * @throws SystemException if a system exception occurred 357 */ 358 public com.liferay.portlet.expando.model.ExpandoColumn findByT_N_Last( 359 long tableId, java.lang.String name, 360 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 361 throws com.liferay.portal.kernel.exception.SystemException, 362 com.liferay.portlet.expando.NoSuchColumnException; 363 364 /** 365 * Returns the expando columns before and after the current expando column in the ordered set where tableId = ? and name = ?. 366 * 367 * <p> 368 * 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. 369 * </p> 370 * 371 * @param columnId the primary key of the current expando column 372 * @param tableId the table ID 373 * @param name the name 374 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 375 * @return the previous, current, and next expando column 376 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 377 * @throws SystemException if a system exception occurred 378 */ 379 public com.liferay.portlet.expando.model.ExpandoColumn[] findByT_N_PrevAndNext( 380 long columnId, long tableId, java.lang.String name, 381 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 382 throws com.liferay.portal.kernel.exception.SystemException, 383 com.liferay.portlet.expando.NoSuchColumnException; 384 385 /** 386 * Returns all the expando columns where tableId = ? and name = any ?. 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 tableId the table ID 393 * @param names the names 394 * @return the matching expando columns 395 * @throws SystemException if a system exception occurred 396 */ 397 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N( 398 long tableId, java.lang.String[] names) 399 throws com.liferay.portal.kernel.exception.SystemException; 400 401 /** 402 * Returns a range of all the expando columns where tableId = ? and name = any ?. 403 * 404 * <p> 405 * 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. 406 * </p> 407 * 408 * @param tableId the table ID 409 * @param names the names 410 * @param start the lower bound of the range of expando columns 411 * @param end the upper bound of the range of expando columns (not inclusive) 412 * @return the range of matching expando columns 413 * @throws SystemException if a system exception occurred 414 */ 415 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N( 416 long tableId, java.lang.String[] names, int start, int end) 417 throws com.liferay.portal.kernel.exception.SystemException; 418 419 /** 420 * Returns an ordered range of all the expando columns where tableId = ? and name = any ?. 421 * 422 * <p> 423 * 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. 424 * </p> 425 * 426 * @param tableId the table ID 427 * @param names the names 428 * @param start the lower bound of the range of expando columns 429 * @param end the upper bound of the range of expando columns (not inclusive) 430 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 431 * @return the ordered range of matching expando columns 432 * @throws SystemException if a system exception occurred 433 */ 434 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N( 435 long tableId, java.lang.String[] names, int start, int end, 436 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 437 throws com.liferay.portal.kernel.exception.SystemException; 438 439 /** 440 * Returns all the expando columns that the user has permission to view where tableId = ? and name = ?. 441 * 442 * @param tableId the table ID 443 * @param name the name 444 * @return the matching expando columns that the user has permission to view 445 * @throws SystemException if a system exception occurred 446 */ 447 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N( 448 long tableId, java.lang.String name) 449 throws com.liferay.portal.kernel.exception.SystemException; 450 451 /** 452 * Returns a range of all the expando columns that the user has permission to view where tableId = ? and name = ?. 453 * 454 * <p> 455 * 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. 456 * </p> 457 * 458 * @param tableId the table ID 459 * @param name the name 460 * @param start the lower bound of the range of expando columns 461 * @param end the upper bound of the range of expando columns (not inclusive) 462 * @return the range of matching expando columns that the user has permission to view 463 * @throws SystemException if a system exception occurred 464 */ 465 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N( 466 long tableId, java.lang.String name, int start, int end) 467 throws com.liferay.portal.kernel.exception.SystemException; 468 469 /** 470 * Returns an ordered range of all the expando columns that the user has permissions to view where tableId = ? and name = ?. 471 * 472 * <p> 473 * 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. 474 * </p> 475 * 476 * @param tableId the table ID 477 * @param name the name 478 * @param start the lower bound of the range of expando columns 479 * @param end the upper bound of the range of expando columns (not inclusive) 480 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 481 * @return the ordered range of matching expando columns that the user has permission to view 482 * @throws SystemException if a system exception occurred 483 */ 484 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N( 485 long tableId, java.lang.String name, int start, int end, 486 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 487 throws com.liferay.portal.kernel.exception.SystemException; 488 489 /** 490 * Returns the expando columns before and after the current expando column in the ordered set of expando columns that the user has permission to view where tableId = ? and name = ?. 491 * 492 * @param columnId the primary key of the current expando column 493 * @param tableId the table ID 494 * @param name the name 495 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 496 * @return the previous, current, and next expando column 497 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 498 * @throws SystemException if a system exception occurred 499 */ 500 public com.liferay.portlet.expando.model.ExpandoColumn[] filterFindByT_N_PrevAndNext( 501 long columnId, long tableId, java.lang.String name, 502 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 503 throws com.liferay.portal.kernel.exception.SystemException, 504 com.liferay.portlet.expando.NoSuchColumnException; 505 506 /** 507 * Returns all the expando columns that the user has permission to view where tableId = ? and name = any ?. 508 * 509 * @param tableId the table ID 510 * @param names the names 511 * @return the matching expando columns that the user has permission to view 512 * @throws SystemException if a system exception occurred 513 */ 514 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N( 515 long tableId, java.lang.String[] names) 516 throws com.liferay.portal.kernel.exception.SystemException; 517 518 /** 519 * Returns a range of all the expando columns that the user has permission to view where tableId = ? and name = any ?. 520 * 521 * <p> 522 * 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. 523 * </p> 524 * 525 * @param tableId the table ID 526 * @param names the names 527 * @param start the lower bound of the range of expando columns 528 * @param end the upper bound of the range of expando columns (not inclusive) 529 * @return the range of matching expando columns that the user has permission to view 530 * @throws SystemException if a system exception occurred 531 */ 532 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N( 533 long tableId, java.lang.String[] names, int start, int end) 534 throws com.liferay.portal.kernel.exception.SystemException; 535 536 /** 537 * Returns an ordered range of all the expando columns that the user has permission to view where tableId = ? and name = any ?. 538 * 539 * <p> 540 * 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. 541 * </p> 542 * 543 * @param tableId the table ID 544 * @param names the names 545 * @param start the lower bound of the range of expando columns 546 * @param end the upper bound of the range of expando columns (not inclusive) 547 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 548 * @return the ordered range of matching expando columns that the user has permission to view 549 * @throws SystemException if a system exception occurred 550 */ 551 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByT_N( 552 long tableId, java.lang.String[] names, int start, int end, 553 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 554 throws com.liferay.portal.kernel.exception.SystemException; 555 556 /** 557 * Returns all the expando columns. 558 * 559 * @return the expando columns 560 * @throws SystemException if a system exception occurred 561 */ 562 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll() 563 throws com.liferay.portal.kernel.exception.SystemException; 564 565 /** 566 * Returns a range of all the expando columns. 567 * 568 * <p> 569 * 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. 570 * </p> 571 * 572 * @param start the lower bound of the range of expando columns 573 * @param end the upper bound of the range of expando columns (not inclusive) 574 * @return the range of expando columns 575 * @throws SystemException if a system exception occurred 576 */ 577 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll( 578 int start, int end) 579 throws com.liferay.portal.kernel.exception.SystemException; 580 581 /** 582 * Returns an ordered range of all the expando columns. 583 * 584 * <p> 585 * 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. 586 * </p> 587 * 588 * @param start the lower bound of the range of expando columns 589 * @param end the upper bound of the range of expando columns (not inclusive) 590 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 591 * @return the ordered range of expando columns 592 * @throws SystemException if a system exception occurred 593 */ 594 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll( 595 int start, int end, 596 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 597 throws com.liferay.portal.kernel.exception.SystemException; 598 599 /** 600 * Removes all the expando columns where tableId = ? from the database. 601 * 602 * @param tableId the table ID 603 * @throws SystemException if a system exception occurred 604 */ 605 public void removeByTableId(long tableId) 606 throws com.liferay.portal.kernel.exception.SystemException; 607 608 /** 609 * Removes all the expando columns where tableId = ? and name = ? from the database. 610 * 611 * @param tableId the table ID 612 * @param name the name 613 * @throws SystemException if a system exception occurred 614 */ 615 public void removeByT_N(long tableId, java.lang.String name) 616 throws com.liferay.portal.kernel.exception.SystemException; 617 618 /** 619 * Removes all the expando columns from the database. 620 * 621 * @throws SystemException if a system exception occurred 622 */ 623 public void removeAll() 624 throws com.liferay.portal.kernel.exception.SystemException; 625 626 /** 627 * Returns the number of expando columns where tableId = ?. 628 * 629 * @param tableId the table ID 630 * @return the number of matching expando columns 631 * @throws SystemException if a system exception occurred 632 */ 633 public int countByTableId(long tableId) 634 throws com.liferay.portal.kernel.exception.SystemException; 635 636 /** 637 * Returns the number of expando columns that the user has permission to view where tableId = ?. 638 * 639 * @param tableId the table ID 640 * @return the number of matching expando columns that the user has permission to view 641 * @throws SystemException if a system exception occurred 642 */ 643 public int filterCountByTableId(long tableId) 644 throws com.liferay.portal.kernel.exception.SystemException; 645 646 /** 647 * Returns the number of expando columns where tableId = ? and name = ?. 648 * 649 * @param tableId the table ID 650 * @param name the name 651 * @return the number of matching expando columns 652 * @throws SystemException if a system exception occurred 653 */ 654 public int countByT_N(long tableId, java.lang.String name) 655 throws com.liferay.portal.kernel.exception.SystemException; 656 657 /** 658 * Returns the number of expando columns where tableId = ? and name = any ?. 659 * 660 * @param tableId the table ID 661 * @param names the names 662 * @return the number of matching expando columns 663 * @throws SystemException if a system exception occurred 664 */ 665 public int countByT_N(long tableId, java.lang.String[] names) 666 throws com.liferay.portal.kernel.exception.SystemException; 667 668 /** 669 * Returns the number of expando columns that the user has permission to view where tableId = ? and name = ?. 670 * 671 * @param tableId the table ID 672 * @param name the name 673 * @return the number of matching expando columns that the user has permission to view 674 * @throws SystemException if a system exception occurred 675 */ 676 public int filterCountByT_N(long tableId, java.lang.String name) 677 throws com.liferay.portal.kernel.exception.SystemException; 678 679 /** 680 * Returns the number of expando columns that the user has permission to view where tableId = ? and name = any ?. 681 * 682 * @param tableId the table ID 683 * @param names the names 684 * @return the number of matching expando columns that the user has permission to view 685 * @throws SystemException if a system exception occurred 686 */ 687 public int filterCountByT_N(long tableId, java.lang.String[] names) 688 throws com.liferay.portal.kernel.exception.SystemException; 689 690 /** 691 * Returns the number of expando columns. 692 * 693 * @return the number of expando columns 694 * @throws SystemException if a system exception occurred 695 */ 696 public int countAll() 697 throws com.liferay.portal.kernel.exception.SystemException; 698 699 public ExpandoColumn remove(ExpandoColumn expandoColumn) 700 throws SystemException; 701 }