org.silverpeas.importExport.versioning
Class DocumentVersionPK

java.lang.Object
  extended by com.stratelia.webactiv.util.WAPrimaryKey
      extended by org.silverpeas.importExport.versioning.DocumentVersionPK
All Implemented Interfaces:
Serializable, Cloneable

public class DocumentVersionPK
extends WAPrimaryKey
implements Serializable

This object contains the info about PrimaryKey of document version

Version:
1.0
Author:
Georgy Shakirin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.stratelia.webactiv.util.WAPrimaryKey
componentName, id, space
 
Constructor Summary
DocumentVersionPK(int id)
          Constructor declaration
DocumentVersionPK(int id, String spaceId, String componentId)
          Constructor declaration
DocumentVersionPK(int id, WAPrimaryKey pk)
          Constructor declaration
 
Method Summary
 boolean equals(Object other)
          Method declaration
 String getRootTableName()
          **********
 String getTableName()
          Method declaration
 int hashCode()
          Returns a hash code for the key
 String toString()
          Method declaration
 
Methods inherited from class com.stratelia.webactiv.util.WAPrimaryKey
clone, getComponentName, getId, getInstanceId, getSpace, getSpaceId, getTableName, setComponentName, setId, setSpace
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocumentVersionPK

public DocumentVersionPK(int id)
Constructor declaration

Parameters:
id -
See Also:

DocumentVersionPK

public DocumentVersionPK(int id,
                         String spaceId,
                         String componentId)
Constructor declaration

Parameters:
id -
spaceId -
componentId -
See Also:

DocumentVersionPK

public DocumentVersionPK(int id,
                         WAPrimaryKey pk)
Constructor declaration

Parameters:
id -
pk -
See Also:
Method Detail

getRootTableName

public String getRootTableName()
**********

Overrides:
getRootTableName in class WAPrimaryKey
Returns:
the root table name of the object (exemple : Publication, Node, ...)

getTableName

public String getTableName()
Method declaration

Overrides:
getTableName in class WAPrimaryKey
Returns:
See Also:

equals

public boolean equals(Object other)
Method declaration

Specified by:
equals in class WAPrimaryKey
Parameters:
other -
Returns:
See Also:

toString

public String toString()
Method declaration

Overrides:
toString in class WAPrimaryKey
Returns:
See Also:

hashCode

public int hashCode()
Returns a hash code for the key

Overrides:
hashCode in class WAPrimaryKey
Returns:
A hash code for this object


Copyright © 2016 Silverpeas. All Rights Reserved.