org.opencms.db.jpa.persistence
Class CmsDAOOnlineResourceRelations

java.lang.Object
  extended by org.opencms.db.jpa.persistence.CmsDAOOnlineResourceRelations
All Implemented Interfaces:
I_CmsDAOResourceRelations

@Entity
public class CmsDAOOnlineResourceRelations
extends java.lang.Object
implements I_CmsDAOResourceRelations

This data access object represents a online resource relation entry inside the table "cms_online_resource_relations".

Since:
8.0.0

Nested Class Summary
static class CmsDAOOnlineResourceRelations.CmsDAOOnlineResourceRelationsPK
          This class implements the primary key for a online resource relation entry in the table "cms_online_resource_relations".
 
Constructor Summary
CmsDAOOnlineResourceRelations()
          The default constructor.
CmsDAOOnlineResourceRelations(java.lang.String relationSourceId, java.lang.String relationSourcePath, java.lang.String relationTargetId, java.lang.String relationTargetPath, int relationType)
          A public constructor for generating a new contents object with an unique id.
 
Method Summary
 java.lang.String getRelationSourceId()
          Returns the source id of this relation.
 java.lang.String getRelationSourcePath()
          Returns the source path of this relation.
 java.lang.String getRelationTargetId()
          Returns the target id of this relation.
 java.lang.String getRelationTargetPath()
          Returns the target path of this relation.
 int getRelationType()
          Returns the relation type of this resource relation.
 void setRelationSourceId(java.lang.String relationSourceId)
          Sets the source id for this relation.
 void setRelationSourcePath(java.lang.String relationSourcePath)
          Sets the source path for this resource relation.
 void setRelationTargetId(java.lang.String relationTargetId)
          Sets the target id for this relation.
 void setRelationTargetPath(java.lang.String relationTargetPath)
          Sets the target path for this resource relation.
 void setRelationType(int relationType)
          Sets the relation type for this resource relation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsDAOOnlineResourceRelations

public CmsDAOOnlineResourceRelations()
The default constructor.


CmsDAOOnlineResourceRelations

public CmsDAOOnlineResourceRelations(java.lang.String relationSourceId,
                                     java.lang.String relationSourcePath,
                                     java.lang.String relationTargetId,
                                     java.lang.String relationTargetPath,
                                     int relationType)
A public constructor for generating a new contents object with an unique id.

Parameters:
relationSourceId - the relation source id
relationSourcePath - the relation source path
relationTargetId - the relation target id
relationTargetPath - the relation target path
relationType - the relation type
Method Detail

getRelationSourceId

public java.lang.String getRelationSourceId()
Description copied from interface: I_CmsDAOResourceRelations
Returns the source id of this relation.

Specified by:
getRelationSourceId in interface I_CmsDAOResourceRelations
Returns:
the source id
See Also:
I_CmsDAOResourceRelations.getRelationSourceId()

getRelationSourcePath

public java.lang.String getRelationSourcePath()
Description copied from interface: I_CmsDAOResourceRelations
Returns the source path of this relation.

Specified by:
getRelationSourcePath in interface I_CmsDAOResourceRelations
Returns:
the source path
See Also:
I_CmsDAOResourceRelations.getRelationSourcePath()

getRelationTargetId

public java.lang.String getRelationTargetId()
Description copied from interface: I_CmsDAOResourceRelations
Returns the target id of this relation.

Specified by:
getRelationTargetId in interface I_CmsDAOResourceRelations
Returns:
the target id
See Also:
I_CmsDAOResourceRelations.getRelationTargetId()

getRelationTargetPath

public java.lang.String getRelationTargetPath()
Description copied from interface: I_CmsDAOResourceRelations
Returns the target path of this relation.

Specified by:
getRelationTargetPath in interface I_CmsDAOResourceRelations
Returns:
the target path
See Also:
I_CmsDAOResourceRelations.getRelationTargetPath()

getRelationType

public int getRelationType()
Description copied from interface: I_CmsDAOResourceRelations
Returns the relation type of this resource relation.

Specified by:
getRelationType in interface I_CmsDAOResourceRelations
Returns:
the type
See Also:
I_CmsDAOResourceRelations.getRelationType()

setRelationSourceId

public void setRelationSourceId(java.lang.String relationSourceId)
Description copied from interface: I_CmsDAOResourceRelations
Sets the source id for this relation.

Specified by:
setRelationSourceId in interface I_CmsDAOResourceRelations
Parameters:
relationSourceId - the id to set
See Also:
I_CmsDAOResourceRelations.setRelationSourceId(java.lang.String)

setRelationSourcePath

public void setRelationSourcePath(java.lang.String relationSourcePath)
Description copied from interface: I_CmsDAOResourceRelations
Sets the source path for this resource relation.

Specified by:
setRelationSourcePath in interface I_CmsDAOResourceRelations
Parameters:
relationSourcePath - the source path to set
See Also:
I_CmsDAOResourceRelations.setRelationSourcePath(java.lang.String)

setRelationTargetId

public void setRelationTargetId(java.lang.String relationTargetId)
Description copied from interface: I_CmsDAOResourceRelations
Sets the target id for this relation.

Specified by:
setRelationTargetId in interface I_CmsDAOResourceRelations
Parameters:
relationTargetId - the id to set
See Also:
I_CmsDAOResourceRelations.setRelationTargetId(java.lang.String)

setRelationTargetPath

public void setRelationTargetPath(java.lang.String relationTargetPath)
Description copied from interface: I_CmsDAOResourceRelations
Sets the target path for this resource relation.

Specified by:
setRelationTargetPath in interface I_CmsDAOResourceRelations
Parameters:
relationTargetPath - the target path to set
See Also:
I_CmsDAOResourceRelations.setRelationTargetPath(java.lang.String)

setRelationType

public void setRelationType(int relationType)
Description copied from interface: I_CmsDAOResourceRelations
Sets the relation type for this resource relation.

Specified by:
setRelationType in interface I_CmsDAOResourceRelations
Parameters:
relationType - the type to set
See Also:
I_CmsDAOResourceRelations.setRelationType(int)