Class DefaultInsertManyToManyRelationRecord
- java.lang.Object
-
- de.hybris.platform.directpersistence.record.impl.AbstractRelationRecord
-
- de.hybris.platform.directpersistence.record.impl.DefaultInsertManyToManyRelationRecord
-
- All Implemented Interfaces:
InsertManyToManyRelationRecord,Record,RelationRecord
- Direct Known Subclasses:
DefaultInsertOneToManyRelationRecord
public class DefaultInsertManyToManyRelationRecord extends AbstractRelationRecord implements InsertManyToManyRelationRecord
Insert relation record which is used to represent inserting a relation link in changeset.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.directpersistence.record.impl.AbstractRelationRecord
srcToTgt
-
-
Constructor Summary
Constructors Constructor Description DefaultInsertManyToManyRelationRecord(PK sourcePk, PK targetPk, boolean src2tgt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)PKgetSourcePk()Gets source PK.java.lang.IntegergetSourceToTargetPosition()Gets source to target position for ordering.PKgetTargetPk()Gets target PK.java.lang.IntegergetTargetToSourcePosition()Gets target to source position for ordering.inthashCode()voidsetSourceToTargetPosition(java.lang.Integer sourceToTargetPosition)Sets the source to target position.voidsetTargetToSourcePosition(java.lang.Integer targetToSourcePosition)Sets the target to source position.java.lang.StringtoString()-
Methods inherited from class de.hybris.platform.directpersistence.record.impl.AbstractRelationRecord
isSrcToTgt
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.directpersistence.record.RelationRecord
isSrcToTgt
-
-
-
-
Method Detail
-
getSourcePk
public PK getSourcePk()
Description copied from interface:InsertManyToManyRelationRecordGets source PK.- Specified by:
getSourcePkin interfaceInsertManyToManyRelationRecord
-
getTargetPk
public PK getTargetPk()
Description copied from interface:InsertManyToManyRelationRecordGets target PK.- Specified by:
getTargetPkin interfaceInsertManyToManyRelationRecord
-
setSourceToTargetPosition
public void setSourceToTargetPosition(java.lang.Integer sourceToTargetPosition)
Description copied from interface:InsertManyToManyRelationRecordSets the source to target position.- Specified by:
setSourceToTargetPositionin interfaceInsertManyToManyRelationRecord- Parameters:
sourceToTargetPosition- Source to target position
-
getSourceToTargetPosition
public java.lang.Integer getSourceToTargetPosition()
Description copied from interface:InsertManyToManyRelationRecordGets source to target position for ordering.- Specified by:
getSourceToTargetPositionin interfaceInsertManyToManyRelationRecord- Returns:
- source to target position. Could be
nullif position is not known or not applicable
-
setTargetToSourcePosition
public void setTargetToSourcePosition(java.lang.Integer targetToSourcePosition)
Description copied from interface:InsertManyToManyRelationRecordSets the target to source position.- Specified by:
setTargetToSourcePositionin interfaceInsertManyToManyRelationRecord- Parameters:
targetToSourcePosition- Target to source position
-
getTargetToSourcePosition
public java.lang.Integer getTargetToSourcePosition()
Description copied from interface:InsertManyToManyRelationRecordGets target to source position for ordering.- Specified by:
getTargetToSourcePositionin interfaceInsertManyToManyRelationRecord- Returns:
- target to source position. Could be
nullif position is not known or not applicable
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractRelationRecord
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classAbstractRelationRecord
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-