com.stratelia.webactiv.util.publication.model
Class PublicationPK

java.lang.Object
  extended by com.stratelia.webactiv.util.WAPrimaryKey
      extended by com.stratelia.webactiv.util.publication.model.PublicationPK
All Implemented Interfaces:
Serializable, Cloneable

public class PublicationPK
extends WAPrimaryKey
implements Serializable

It's the Publication PrimaryKey object It identify a Publication

Version:
1.0
Author:
Nicolas Eysseric
See Also:
Serialized Form

Field Summary
 PublicationDetail pubDetail
          For flat pk design pattern.
 
Fields inherited from class com.stratelia.webactiv.util.WAPrimaryKey
componentName, id, space
 
Constructor Summary
PublicationPK(String id)
          Constructor which set only the id
PublicationPK(String id, String componentId)
           
PublicationPK(String id, String space, String componentName)
          Constructor which set the id The WAPrimaryKey provides space and component name
PublicationPK(String id, WAPrimaryKey pk)
          Constructor which set the id The WAPrimaryKey provides space and component name
 
Method Summary
 boolean equals(Object obj)
          Check if an another object is equal to this object
 String getRootTableName()
          Return the object root table name
 String getTableName()
          Return the object table name
 int hashCode()
          Returns a hash code for the key
 
Methods inherited from class com.stratelia.webactiv.util.WAPrimaryKey
clone, getComponentName, getId, getInstanceId, getSpace, getSpaceId, getTableName, setComponentName, setId, setSpace, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

pubDetail

public transient PublicationDetail pubDetail
For flat pk design pattern.

Constructor Detail

PublicationPK

public PublicationPK(String id)
Constructor which set only the id

Parameters:
id -
Since:
1.0

PublicationPK

public PublicationPK(String id,
                     String space,
                     String componentName)
Constructor which set the id The WAPrimaryKey provides space and component name

Parameters:
id -
space -
componentName -
Since:
1.0

PublicationPK

public PublicationPK(String id,
                     String componentId)

PublicationPK

public PublicationPK(String id,
                     WAPrimaryKey pk)
Constructor which set the id The WAPrimaryKey provides space and component name

Parameters:
id -
pk -
Since:
1.0
Method Detail

getRootTableName

public String getRootTableName()
Return the object root table name

Overrides:
getRootTableName in class WAPrimaryKey
Returns:
the root table name of the object
Since:
1.0

getTableName

public String getTableName()
Return the object table name

Overrides:
getTableName in class WAPrimaryKey
Returns:
the table name of the object
Since:
1.0
See Also:
WAPrimaryKey.space, WAPrimaryKey.componentName, WAPrimaryKey.getRootTableName()

equals

public boolean equals(Object obj)
Check if an another object is equal to this object

Specified by:
equals in class WAPrimaryKey
Parameters:
obj - the object to compare to this PublicationPK
Returns:
true if other is equals to this object
See Also:
Object.equals(java.lang.Object)

hashCode

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

Overrides:
hashCode in class WAPrimaryKey
Returns:
A hash code for this object
See Also:
Object.hashCode()


Copyright © 2016 Silverpeas. All Rights Reserved.