Package org.gatein.wsrp.registration.mapping

Examples of org.gatein.wsrp.registration.mapping.RegistrationMapping


      if (reg != null)
      {
         try
         {
            final ChromatticSession session = persister.getSession();
            final RegistrationMapping mapping = session.findById(RegistrationMapping.class, registrationId);
            session.remove(mapping);
            persister.save();
         }
         finally
         {
View Full Code Here


      try
      {
         ChromatticSession session = persister.getSession();

         ConsumerMapping cm = session.findById(ConsumerMapping.class, consumer.getPersistentKey());
         RegistrationMapping rm = cm.createAndAddRegistrationMappingFrom(null);
         rm.initFrom(registration);
         registration.setPersistentKey(rm.getPersistentKey());

         persister.save();
      }
      catch (Exception e)
      {
View Full Code Here

      try
      {
         ChromatticSession session = persister.getSession();

         RegistrationMapping cm = session.findById(RegistrationMapping.class, registration.getPersistentKey());
         cm.initFrom(registrationSPI);

         persister.save();
      }
      catch (Exception e)
      {
View Full Code Here

      try
      {
         final ChromatticSession session = persister.getSession();

         final RegistrationMapping mapping = session.findById(RegistrationMapping.class, registrationId);
         if (mapping == null)
         {
            return null;
         }
         else
         {
            final ConsumerMapping parent = mapping.getParent();
            return parent.toModel(null, this).getRegistration(registrationId);
         }
      }
      catch (Exception e)
      {
View Full Code Here

TOP

Related Classes of org.gatein.wsrp.registration.mapping.RegistrationMapping

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.