T - the remote view typepublic final class EntityEJBLocator<T extends EJBObject> extends EJBLocator<T>
| Constructor and Description |
|---|
EntityEJBLocator(Class<T> viewType,
String appName,
String moduleName,
String beanName,
Object primaryKey)
Construct a new instance.
|
EntityEJBLocator(Class<T> viewType,
String appName,
String moduleName,
String beanName,
Object primaryKey,
Affinity affinity)
Construct a new instance.
|
EntityEJBLocator(Class<T> viewType,
String appName,
String moduleName,
String beanName,
String distinctName,
Object primaryKey)
Construct a new instance.
|
EntityEJBLocator(Class<T> viewType,
String appName,
String moduleName,
String beanName,
String distinctName,
Object primaryKey,
Affinity affinity)
Construct a new instance.
|
EntityEJBLocator(EntityEJBLocator<T> original,
Affinity newAffinity)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
<S extends EJBObject> |
narrowAsEntity(Class<S> type)
Narrow this locator to the target type as a entity locator.
|
<S> EntityEJBLocator<? extends S> |
narrowTo(Class<S> type)
Narrow this locator to the target type.
|
String |
toString() |
EJBLocator<T> |
withNewAffinity(Affinity affinity)
Create a copy of this locator, but with the new given affinity.
|
createProxyInstance, getAffinity, getAppName, getBeanName, getDistinctName, getModuleName, getProxyClass, getProxyConstructor, getViewType, narrowAsHome, narrowAsStateful, narrowAsStatelesspublic EntityEJBLocator(Class<T> viewType, String appName, String moduleName, String beanName, Object primaryKey)
viewType - the view typeappName - the application namemoduleName - the module namebeanName - the bean nameprimaryKey - the entity primary keypublic EntityEJBLocator(Class<T> viewType, String appName, String moduleName, String beanName, Object primaryKey, Affinity affinity)
viewType - the view typeappName - the application namemoduleName - the module namebeanName - the bean nameprimaryKey - the entity primary keyaffinity - the affinitypublic EntityEJBLocator(Class<T> viewType, String appName, String moduleName, String beanName, String distinctName, Object primaryKey)
viewType - the view typeappName - the application namemoduleName - the module namebeanName - the bean namedistinctName - the distinct nameprimaryKey - the entity primary keypublic EntityEJBLocator(Class<T> viewType, String appName, String moduleName, String beanName, String distinctName, Object primaryKey, Affinity affinity)
viewType - the view typeappName - the application namemoduleName - the module namebeanName - the bean namedistinctName - the distinct nameprimaryKey - the entity primary keyaffinity - the affinitypublic EntityEJBLocator(EntityEJBLocator<T> original, Affinity newAffinity)
original - the original locatornewAffinity - the new affinitypublic EJBLocator<T> withNewAffinity(Affinity affinity)
EJBLocatorwithNewAffinity in class EJBLocator<T extends EJBObject>affinity - the new affinitypublic <S> EntityEJBLocator<? extends S> narrowTo(Class<S> type)
EJBLocatornarrowTo in class EJBLocator<T extends EJBObject>S - the target typetype - the target type classpublic <S extends EJBObject> EntityEJBLocator<? extends S> narrowAsEntity(Class<S> type)
EJBLocatornarrowAsEntity in class EJBLocator<T extends EJBObject>S - the target typetype - the target type classpublic Object getPrimaryKey()
public boolean equals(Object other)
equals in class EJBLocator<T extends EJBObject>other - the other objecttrue if they are equal, false otherwisepublic boolean equals(EJBLocator<?> other)
equals in class EJBLocator<T extends EJBObject>other - the other objecttrue if they are equal, false otherwisepublic boolean equals(EntityEJBLocator<?> other)
other - the other objecttrue if they are equal, false otherwisepublic int hashCode()
hashCode in class EJBLocator<T extends EJBObject>public String toString()
toString in class EJBLocator<T extends EJBObject>Copyright © 2016 JBoss by Red Hat. All rights reserved.