JBoss EJB client 1.0.5.Final

org.jboss.ejb.client
Class EntityEJBLocator<T extends javax.ejb.EJBObject>

java.lang.Object
  extended by org.jboss.ejb.client.EJBLocator<T>
      extended by org.jboss.ejb.client.EntityEJBLocator<T>
Type Parameters:
T - the remote view type
All Implemented Interfaces:
Serializable

public final class EntityEJBLocator<T extends javax.ejb.EJBObject>
extends EJBLocator<T>

A locator for an entity EJB.

See Also:
Serialized Form

Constructor Summary
EntityEJBLocator(Class<T> viewType, String appName, String moduleName, String beanName, String distinctName, Object primaryKey)
          Construct a new instance.
 
Method Summary
 boolean equals(EJBLocator<?> other)
          Determine whether this object is equal to another.
 boolean equals(EntityEJBLocator<?> other)
          Determine whether this object is equal to another.
 boolean equals(Object other)
          Determine whether this object is equal to another.
 Object getPrimaryKey()
          Get the primary key for the referenced entity.
 int hashCode()
          Get the hash code for this instance.
 String toString()
           
 
Methods inherited from class org.jboss.ejb.client.EJBLocator
createProxyInstance, getAffinity, getAppName, getBeanName, getDistinctName, getModuleName, getProxyClass, getProxyConstructor, getViewType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityEJBLocator

public EntityEJBLocator(Class<T> viewType,
                        String appName,
                        String moduleName,
                        String beanName,
                        String distinctName,
                        Object primaryKey)
Construct a new instance.

Parameters:
viewType - the view type
appName - the application name
moduleName - the module name
beanName - the bean name
distinctName - the distinct name
primaryKey - the entity primary key
Method Detail

getPrimaryKey

public Object getPrimaryKey()
Get the primary key for the referenced entity.

Returns:
the primary key for the referenced entity

equals

public boolean equals(Object other)
Determine whether this object is equal to another.

Overrides:
equals in class EJBLocator<T extends javax.ejb.EJBObject>
Parameters:
other - the other object
Returns:
true if they are equal, false otherwise

equals

public boolean equals(EJBLocator<?> other)
Determine whether this object is equal to another.

Overrides:
equals in class EJBLocator<T extends javax.ejb.EJBObject>
Parameters:
other - the other object
Returns:
true if they are equal, false otherwise

equals

public boolean equals(EntityEJBLocator<?> other)
Determine whether this object is equal to another.

Parameters:
other - the other object
Returns:
true if they are equal, false otherwise

hashCode

public int hashCode()
Get the hash code for this instance.

Overrides:
hashCode in class EJBLocator<T extends javax.ejb.EJBObject>
Returns:
the hash code for this instance

toString

public String toString()
Overrides:
toString in class Object

JBoss EJB client 1.0.5.Final

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.