com.liferay.portlet.shopping.service.persistence
Interface ShoppingItemFieldPersistence


public interface ShoppingItemFieldPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByItemId(long itemId)
           
 ShoppingItemField create(long itemFieldId)
           
 ShoppingItemField fetchByPrimaryKey(long itemFieldId)
           
 java.util.List<ShoppingItemField> findAll()
           
 java.util.List<ShoppingItemField> findAll(int start, int end)
           
 java.util.List<ShoppingItemField> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingItemField findByItemId_First(long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingItemField findByItemId_Last(long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingItemField[] findByItemId_PrevAndNext(long itemFieldId, long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<ShoppingItemField> findByItemId(long itemId)
           
 java.util.List<ShoppingItemField> findByItemId(long itemId, int start, int end)
           
 java.util.List<ShoppingItemField> findByItemId(long itemId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingItemField findByPrimaryKey(long itemFieldId)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 void registerListener(ModelListener listener)
           
 ShoppingItemField remove(long itemFieldId)
           
 ShoppingItemField remove(ShoppingItemField shoppingItemField)
           
 void removeAll()
           
 void removeByItemId(long itemId)
           
 void unregisterListener(ModelListener listener)
           
 ShoppingItemField update(ShoppingItemField shoppingItemField)
          Deprecated. Use update(ShoppingItemField shoppingItemField, boolean merge).
 ShoppingItemField update(ShoppingItemField shoppingItemField, boolean merge)
          Add, update, or merge, the entity.
 ShoppingItemField updateImpl(ShoppingItemField shoppingItemField, boolean merge)
           
 

Method Detail

create

ShoppingItemField create(long itemFieldId)

remove

ShoppingItemField remove(long itemFieldId)
                         throws com.liferay.portal.SystemException,
                                NoSuchItemFieldException
Throws:
com.liferay.portal.SystemException
NoSuchItemFieldException

remove

ShoppingItemField remove(ShoppingItemField shoppingItemField)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

ShoppingItemField update(ShoppingItemField shoppingItemField)
                         throws com.liferay.portal.SystemException
Deprecated. Use update(ShoppingItemField shoppingItemField, boolean merge).

Throws:
com.liferay.portal.SystemException

update

ShoppingItemField update(ShoppingItemField shoppingItemField,
                         boolean merge)
                         throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
shoppingItemField - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when shoppingItemField is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

ShoppingItemField updateImpl(ShoppingItemField shoppingItemField,
                             boolean merge)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

ShoppingItemField findByPrimaryKey(long itemFieldId)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchItemFieldException
Throws:
com.liferay.portal.SystemException
NoSuchItemFieldException

fetchByPrimaryKey

ShoppingItemField fetchByPrimaryKey(long itemFieldId)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByItemId

java.util.List<ShoppingItemField> findByItemId(long itemId)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByItemId

java.util.List<ShoppingItemField> findByItemId(long itemId,
                                               int start,
                                               int end)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByItemId

java.util.List<ShoppingItemField> findByItemId(long itemId,
                                               int start,
                                               int end,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByItemId_First

ShoppingItemField findByItemId_First(long itemId,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchItemFieldException
Throws:
com.liferay.portal.SystemException
NoSuchItemFieldException

findByItemId_Last

ShoppingItemField findByItemId_Last(long itemId,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException,
                                           NoSuchItemFieldException
Throws:
com.liferay.portal.SystemException
NoSuchItemFieldException

findByItemId_PrevAndNext

ShoppingItemField[] findByItemId_PrevAndNext(long itemFieldId,
                                             long itemId,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                             throws com.liferay.portal.SystemException,
                                                    NoSuchItemFieldException
Throws:
com.liferay.portal.SystemException
NoSuchItemFieldException

findWithDynamicQuery

java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                      int start,
                                                      int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<ShoppingItemField> findAll()
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<ShoppingItemField> findAll(int start,
                                          int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<ShoppingItemField> findAll(int start,
                                          int end,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByItemId

void removeByItemId(long itemId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByItemId

int countByItemId(long itemId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

registerListener

void registerListener(ModelListener listener)

unregisterListener

void unregisterListener(ModelListener listener)