java.lang.Object
de.hybris.platform.persistence.links.jdbc.dml.relation.OrderedRelation
All Implemented Interfaces:
Relation

public class OrderedRelation extends Object
  • Constructor Details

    • OrderedRelation

      public OrderedRelation(de.hybris.platform.persistence.links.jdbc.dml.relation.RelationId relationId, Iterable<de.hybris.platform.persistence.links.jdbc.dml.relation.ExistingLinkToChild> existingLinks, boolean markAsModified)
  • Method Details

    • getModificationsForInsertion

      public Iterable<RelationModification> getModificationsForInsertion(Iterable<Long> childPKsToInsert, int position)
    • getModificationsForSetting

      public Iterable<RelationModification> getModificationsForSetting(Iterable<Long> childPKsToSet)
    • builder

      public static de.hybris.platform.persistence.links.jdbc.dml.relation.BaseRelation.Builder builder(de.hybris.platform.persistence.links.jdbc.dml.relation.RelationId id)
    • getLanguagePK

      public long getLanguagePK()
      Specified by:
      getLanguagePK in interface Relation
    • getModificationsForRemoval

      public Iterable<RelationModification> getModificationsForRemoval(Iterable<Long> childPKsToRemove)
      Specified by:
      getModificationsForRemoval in interface Relation
    • getExistingLinks

      public Iterable<de.hybris.platform.persistence.links.jdbc.dml.relation.ExistingLinkToChild> getExistingLinks()
    • getRelationId

      public de.hybris.platform.persistence.links.jdbc.dml.relation.RelationId getRelationId()
    • getParentPK

      public long getParentPK()
    • isMarkAsModified

      protected boolean isMarkAsModified()
    • getReversePosition

      protected int getReversePosition()
    • noModifications

      protected Iterable<RelationModification> noModifications()
    • touchParent

      protected Iterable<RelationModification> touchParent()
    • removeExistingLink

      protected Iterable<RelationModification> removeExistingLink(de.hybris.platform.persistence.links.jdbc.dml.relation.ExistingLinkToChild link)
    • addNewLink

      protected Iterable<RelationModification> addNewLink(long childPK, int position)
    • shiftExistingLink

      protected Iterable<RelationModification> shiftExistingLink(de.hybris.platform.persistence.links.jdbc.dml.relation.ExistingLinkToChild link, int newPosition)
    • clear

      protected Iterable<RelationModification> clear()