Package org.jboss.seam.framework

Examples of org.jboss.seam.framework.Identifier


   {
      if (getPersistenceContext() == null)
      {
         throw new IllegalStateException("Unable to get a Persistence Context to load Entity. Make sure you have an SMPC called entityManager configured in components.xml (or have correctly configured s:convertEntity to use another SMPC).");
      }
      Identifier identifier = EntityIdentifierStore.instance().get(key);
      if (identifier != null)
      {
         return identifier.find(getPersistenceContext());
      }
      else
      {
         return null;
      }
View Full Code Here


    * @return The entity or null if no entity is available at that key
    */
   @Transactional
   public Object get(String key)
   {
      Identifier identifier = EntityIdentifierStore.instance().get(key);
      if (identifier != null)
      {
         return identifier.find(getPersistenceContext());
      }
      else
      {
         return null;
      }
View Full Code Here

TOP

Related Classes of org.jboss.seam.framework.Identifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.