Package org.apache.juddi.model

Examples of org.apache.juddi.model.Tmodel


                          TModelInfos tmodelInfos = registeredInfo.getTModelInfos();
                          if (tmodelInfos!=null && tmodelInfos.getTModelInfo()!=null) {
                            Iterator<TModelInfo> iter = tmodelInfos.getTModelInfo().iterator();
                            while (iter.hasNext()) {
                              TModelInfo tModelInfo = iter.next();
                              Tmodel tmodel = (Tmodel) em.find(org.apache.juddi.model.Tmodel.class, tModelInfo.getTModelKey());
                              tmodel.setDeleted(true);
                              em.persist(tmodel);
                            }
                          }
                          log.info("remove all persisted AuthTokens for publisher " + entityKey + ".");
                          Query q1 = em.createQuery("DELETE FROM AuthToken auth WHERE auth.authorizedName = '" + entityKey + "'");
View Full Code Here


                                //this is normally the Install class firing up
                                log.warn(new ErrorMessage("errors.tmodel.ReferentialIntegrityNullEM"));
                        } else {
                                //Collections.sort(buildInTmodels);
                                //if ((buildInTmodels, tmodelKey) == -1)
                                Tmodel modelTModel = null;
                                {
                                        EntityTransaction tx = em.getTransaction();
                                        try {

                                                tx.begin();
                                                modelTModel = em.find(org.apache.juddi.model.Tmodel.class, tmodelKey);

                                                if (modelTModel == null) {
                                                        checked = false;
                                                } else {
                                                        for (org.apache.juddi.model.KeyedReference ref : modelTModel.getCategoryBag().getKeyedReferences()) {
                                                                if ("uddi-org:types:unchecked".equalsIgnoreCase(ref.getKeyName())) {
                                                                        checked = false;
                                                                        break;
                                                                }
                                                        }
View Full Code Here

                EntityManager em = PersistenceManager.getEntityManager();
                boolean found = false;
                if (em == null) {
                        log.warn(new ErrorMessage("errors.tmodel.ReferentialIntegrityNullEM"));
                } else {
                        Tmodel modelTModel = null;
                        {
                                EntityTransaction tx = em.getTransaction();
                                try {

                                        tx.begin();
View Full Code Here

                //this is normally the Install class firing up
                log.warn(new ErrorMessage("errors.tmodel.ReferentialIntegrityNullEM"));
            } else {
                //Collections.sort(buildInTmodels);
                //if ((buildInTmodels, tmodelKey) == -1)
              Tmodel modelTModel = null;
                {
                    EntityTransaction tx = em.getTransaction();
                    try {

                        tx.begin();
                        modelTModel = em.find(org.apache.juddi.model.Tmodel.class, tmodelKey);
                       
                      if (modelTModel == null) checked = false;
                      else {
                        for (org.apache.juddi.model.KeyedReference ref : modelTModel.getCategoryBag().getKeyedReferences()) {
                          if ("uddi-org:types:unchecked".equalsIgnoreCase(ref.getKeyName())) {
                            checked = false;
                            break;
                          }
                        }
View Full Code Here

TOP

Related Classes of org.apache.juddi.model.Tmodel

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.