|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.webactiv.util.WAPrimaryKey
public abstract class WAPrimaryKey
The webactiv primary key for a entity bean defines :
| Field Summary | |
|---|---|
String |
componentName
The component name in the space |
String |
id
The row id in the table defined by getTableName() |
String |
space
The space where is implemented the entity |
| Constructor Summary | |
|---|---|
WAPrimaryKey(String id)
Constructor which set only the id |
|
WAPrimaryKey(String id,
String componentId)
|
|
WAPrimaryKey(String id,
String space,
String componentName)
Constructor which set id, space and component name |
|
WAPrimaryKey(String id,
WAPrimaryKey pk)
Constructor which set the id The WAPrimaryKey provides space and component name |
|
| Method Summary | |
|---|---|
WAPrimaryKey |
clone()
|
abstract boolean |
equals(Object obj)
This method must be specialized - Check if an another object is equal to this object |
String |
getComponentName()
Get the component name of this object |
String |
getId()
Get the row id of this object |
String |
getInstanceId()
|
String |
getRootTableName()
Return the object root table name |
String |
getSpace()
Get the space of this object |
String |
getSpaceId()
|
String |
getTableName()
Get the database table name where the object is stored |
String |
getTableName(String space,
String componentName)
Get the database table name where the object is stored |
int |
hashCode()
Returns a hash code for the key |
void |
setComponentName(String componentName)
Set the component name of this object |
void |
setId(String val)
Set the row id of this object |
void |
setSpace(String space)
Set the space of this object |
String |
toString()
Converts the contents of the key into a readable String. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String id
getTableName()public String space
public String componentName
| Constructor Detail |
|---|
public WAPrimaryKey(String id)
id
public WAPrimaryKey(String id,
String space,
String componentName)
id,
space,
componentName
public WAPrimaryKey(String id,
String componentId)
public WAPrimaryKey(String id,
WAPrimaryKey pk)
| Method Detail |
|---|
public abstract boolean equals(Object obj)
equals in class Objectobj - the object to compare to this WAPrimaryKey
public String getRootTableName()
public String getId()
idpublic void setId(String val)
val - the row ididpublic String getSpace()
spacepublic void setSpace(String space)
space - the spacespacepublic String getComponentName()
componentNamepublic void setComponentName(String componentName)
componentName - the component namecomponentNamepublic String getTableName()
space,
componentName,
getRootTableName()
public String getTableName(String space,
String componentName)
space - a space namecomponentName - a component name
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic String getSpaceId()
public String getInstanceId()
public WAPrimaryKey clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||