BEA Systems, Inc.

com.beasys.commerce.foundation.property
Class SimplePropertyLocator

java.lang.Object
  |
  +--com.beasys.commerce.foundation.property.SimplePropertyLocator

public class SimplePropertyLocator
extends java.lang.Object
implements PropertyLocator

Lightweight implementation of a PropertyLocator object. This should be used to improve performance when a full Belonging is not necessary.

See Also:
Serialized Form

Constructor Summary
SimplePropertyLocator()
           
 
Method Summary
 java.lang.Object clone()
          Returns a shallow copy of the Belonging instance.
 int compareTo(java.lang.Object o)
          Standard compareTo operator
 boolean equals(java.lang.Object o)
          Standard equals operator
 java.lang.String getJndiHomeName()
          Get the jndiHomeName of an entity
 java.lang.String getPkString()
          Get the pk of an entity
 java.lang.String getSchemaGroupName()
          Get the schemaGroupName of an entity
 int hashCode()
          Return a hashCode based on all fields to enable lookups in a HashMap
 java.lang.String interfaceName()
          interfaceName() returns the unqualified name of the interface from the UML model
 void setByValue(Belonging value)
          It is possible to call set-by-value with a superclass.
 void setJndiHomeName(java.lang.String s)
          Set the jndiHomeName of an entity
 void setPkString(java.lang.String s)
          Set the pk of an entity
 void setSchemaGroupName(java.lang.String s)
          Set the schemaGroupName of an entity
 java.lang.String toString()
           
 Belonging value()
          value() is a more typesafe implementation of clone()
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimplePropertyLocator

public SimplePropertyLocator()
Method Detail

equals

public boolean equals(java.lang.Object o)
Standard equals operator
Overrides:
equals in class java.lang.Object
Tags copied from interface: Belonging
Parameters:
o - the Object to be compared.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
java.lang.ClassCastException - if the specified object is not of the same type as this Belonging.

compareTo

public int compareTo(java.lang.Object o)
Standard compareTo operator

hashCode

public int hashCode()
Return a hashCode based on all fields to enable lookups in a HashMap
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setJndiHomeName

public void setJndiHomeName(java.lang.String s)
Set the jndiHomeName of an entity
Specified by:
setJndiHomeName in interface PropertyLocator
Tags copied from interface: PropertyLocator
Parameters:
jndiHomeName - jndiHomeName to be added

getJndiHomeName

public java.lang.String getJndiHomeName()
Get the jndiHomeName of an entity
Specified by:
getJndiHomeName in interface PropertyLocator
Tags copied from interface: PropertyLocator
Returns:
jndiHomeName.

setPkString

public void setPkString(java.lang.String s)
Set the pk of an entity
Specified by:
setPkString in interface PropertyLocator
Tags copied from interface: PropertyLocator
Parameters:
pkString - pkString to be added

getPkString

public java.lang.String getPkString()
Get the pk of an entity
Specified by:
getPkString in interface PropertyLocator
Tags copied from interface: PropertyLocator
Returns:
pkString.

setSchemaGroupName

public void setSchemaGroupName(java.lang.String s)
Set the schemaGroupName of an entity
Specified by:
setSchemaGroupName in interface PropertyLocator
Tags copied from interface: PropertyLocator
Parameters:
schemaGroupName - schemaGroupName to be added

getSchemaGroupName

public java.lang.String getSchemaGroupName()
Get the schemaGroupName of an entity
Specified by:
getSchemaGroupName in interface PropertyLocator
Tags copied from interface: PropertyLocator
Returns:
schemaGroupName.

value

public Belonging value()
value() is a more typesafe implementation of clone()
Returns:
a clone of this instance

interfaceName

public java.lang.String interfaceName()
interfaceName() returns the unqualified name of the interface from the UML model
Returns:
the unqualified name of the belonging interface from the UML model

setByValue

public void setByValue(Belonging value)
It is possible to call set-by-value with a superclass. If that is the case, only the fields in the superclass will be set in this instance. The remaining fields get the default values.

It is also possible to call set-by-value with a subclass. In this case, the specialized fields in the subclass will be ignored. The overridden fields in the subclass will be populated.

Tags copied from interface: Belonging
Parameters:
belonging - The Belonging to use for initialization.

clone

public java.lang.Object clone()
Description copied from interface: Belonging
Returns a shallow copy of the Belonging instance.
Overrides:
clone in class java.lang.Object
Tags copied from interface: Belonging
Returns:
A shallow copy of this Belonging.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved