001package org.andromda.cartridges.ejb3.metafacades;
002
003import org.andromda.cartridges.ejb3.EJB3Profile;
004
005/**
006 * MetafacadeLogic implementation for org.andromda.cartridges.ejb3.metafacades.EJB3PersistenceContextFacade.
007 *
008 * @see EJB3PersistenceContextFacade
009 */
010public class EJB3PersistenceContextFacadeLogicImpl
011    extends EJB3PersistenceContextFacadeLogic
012{
013    private static final long serialVersionUID = 34L;
014    /**
015     * @param metaObject
016     * @param context
017     */
018    public EJB3PersistenceContextFacadeLogicImpl(final Object metaObject, final String context)
019    {
020        super (metaObject, context);
021    }
022
023    /**
024     * @see EJB3PersistenceContextFacade#getUnitName()
025     */
026    @Override
027    protected String handleGetUnitName()
028    {
029        return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_PERSISTENCE_CONTEXT_UNIT_NAME);
030    }
031
032    /**
033     * @see EJB3PersistenceContextFacade#getContextType()
034     */
035    @Override
036    protected String handleGetContextType()
037    {
038        return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_PERSISTENCE_CONTEXT_TYPE);
039    }
040
041    /**
042     * @see EJB3PersistenceContextFacadeLogic#handleGetDatasource()
043     */
044    @Override
045    protected String handleGetDatasource()
046    {
047        return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_PERSISTENCE_CONTEXT_DATASOURCE);
048    }
049}