File |
Line |
org\andromda\cartridges\ejb\metafacades\EJBEntityFacadeLogicImpl.java |
212 |
org\andromda\cartridges\ejb\metafacades\EJBSessionFacadeLogicImpl.java |
72 |
return EJBMetafacadeUtils.getHomeInterfaceName(this);
}
/**
* @param follow
* @return getEnvironmentEntries
* @see org.andromda.cartridges.ejb.metafacades.EJBEntityFacade#getEnvironmentEntries(boolean)
*/
protected Collection handleGetEnvironmentEntries(boolean follow)
{
return EJBMetafacadeUtils.getEnvironmentEntries(
this,
follow);
}
/**
* @param follow
* @return getConstants
* @see org.andromda.cartridges.ejb.metafacades.EJBEntityFacade#getConstants(boolean)
*/
protected Collection handleGetConstants(boolean follow)
{
return EJBMetafacadeUtils.getConstants(
this,
follow);
}
/**
* @return jndiName
* @see org.andromda.cartridges.ejb.metafacades.EJBEntityFacade#getJndiName()
*/
protected String handleGetJndiName()
{
StringBuilder jndiName = new StringBuilder();
String jndiNamePrefix = StringUtils.trimToEmpty(this.getJndiNamePrefix());
if (StringUtils.isNotBlank(jndiNamePrefix))
{
jndiName.append(jndiNamePrefix);
jndiName.append('/');
}
jndiName.append("ejb/");
jndiName.append(this.getFullyQualifiedName());
return jndiName.toString();
}
/**
* Gets the <code>jndiNamePrefix</code> for this EJB.
*
* @return the EJB Jndi name prefix.
*/
protected String getJndiNamePrefix()
{
String prefix = null;
if (this.isConfiguredProperty(EJBGlobals.JNDI_NAME_PREFIX))
{
prefix = (String)this.getConfiguredProperty(EJBGlobals.JNDI_NAME_PREFIX);
}
return prefix;
}
/**
* @see org.andromda.cartridges.ejb.metafacades.EJBEntityFacadeLogic#handleIsSyntheticCreateMethodAllowed()
*/
protected boolean handleIsSyntheticCreateMethodAllowed() |
File |
Line |
org\andromda\cartridges\ejb\metafacades\EJBAssociationEndFacadeLogic.java |
1033 |
org\andromda\cartridges\ejb\metafacades\EJBAssociationFacadeLogic.java |
881 |
org\andromda\cartridges\ejb\metafacades\EJBEntityAttributeFacadeLogic.java |
999 |
org\andromda\cartridges\ejb\metafacades\EJBEntityFacadeLogic.java |
2210 |
org\andromda\cartridges\ejb\metafacades\EJBFinderMethodFacadeLogic.java |
1107 |
org\andromda\cartridges\ejb\metafacades\EJBOperationFacadeLogic.java |
1116 |
org\andromda\cartridges\ejb\metafacades\EJBSessionAttributeFacadeLogic.java |
900 |
org\andromda\cartridges\ejb\metafacades\EJBSessionFacadeLogic.java |
1772 |
org\andromda\cartridges\ejb\metafacades\ValueObjectFacadeLogic.java |
1268 |
this.getSuperEntityAssociationEnd().validateInvariants(validationMessages);
}
/**
* The property that stores the name of the metafacade.
*/
private static final String NAME_PROPERTY = "name";
private static final String FQNAME_PROPERTY = "fullyQualifiedName";
/**
* @see Object#toString()
*/
@Override
public String toString()
{
final StringBuilder toString = new StringBuilder(this.getClass().getName());
toString.append("[");
try
{
toString.append(Introspector.instance().getProperty(this, FQNAME_PROPERTY));
}
catch (final Throwable tryAgain)
{
try
{
toString.append(Introspector.instance().getProperty(this, NAME_PROPERTY));
}
catch (final Throwable ignore)
{
// - just ignore when the metafacade doesn't have a name or fullyQualifiedName property
}
}
toString.append("]");
return toString.toString();
}
} |