Package org.jboss.as.console.client.shared.deployment.model

Examples of org.jboss.as.console.client.shared.deployment.model.DeployedPersistenceUnit


                            if (index != -1)
                            {
                                name = fullname.substring(index + 1);
                            }
                            ModelNode puNode = node.get(RESULT);
                            DeployedPersistenceUnit pu = deployedPersistenceUnitEntityAdapter.fromDMR(puNode);
                            pu.setName(name);
                            pu.setType(persistenceUnit);
                            pu.setSubsystem(subsystem);
                            pu.setAddress(addressFor(subsystem.getAddress(), "hibernate-persistence-unit", fullname));
                            if (puNode.get("entity").isDefined())
                            {
                                List<ModelNode> entityNodes = puNode.get("entity").asList();
                                List<String> names = new ArrayList<String>(entityNodes.size());
                                for (ModelNode entityNode : entityNodes)
                                {
                                    String entityName = entityNode.asProperty().getName();
                                    names.add(entityName);
                                }
                                pu.setEntities(names);
                            }
                            pus.add(pu);
                        }
                    }
                }
View Full Code Here


                            if (index != -1)
                            {
                                name = fullname.substring(index + 1);
                            }
                            ModelNode puNode = node.get(RESULT);
                            DeployedPersistenceUnit pu = deployedPersistenceUnitEntityAdapter.fromDMR(puNode);
                            pu.setName(name);
                            pu.setType(persistenceUnit);
                            pu.setSubsystem(subsystem);
                            pu.setAddress(addressFor(subsystem.getAddress(), "hibernate-persistence-unit", fullname));
                            if (puNode.get("entity").isDefined())
                            {
                                List<ModelNode> entityNodes = puNode.get("entity").asList();
                                List<String> names = new ArrayList<String>(entityNodes.size());
                                for (ModelNode entityNode : entityNodes)
                                {
                                    String entityName = entityNode.asProperty().getName();
                                    names.add(entityName);
                                }
                                pu.setEntities(names);
                            }
                            pus.add(pu);
                        }
                    }
                }
View Full Code Here

                                String tokenString = unit.getName();
                                String[] tokens = tokenString.split("#");

                                ModelNode unitValue = unit.getValue();
                                System.out.println(tokens[0]+">"+unitValue);
                                DeployedPersistenceUnit pu = deployedPersistenceUnitEntityAdapter.fromDMR(unitValue);

                                pu.setName(tokens[1]);
                                pu.setType(persistenceUnit);
                                pu.setSubsystem(subsystem);

                                // TODO: re-enable?
                                //pu.setAddress(addressFor(subsystem.getAddress(), "hibernate-persistence-unit", fullname));
                                if (unitValue.hasDefined("entity"))
                                {
                                    List<ModelNode> entityNodes = unitValue.get("entity").asList();
                                    List<String> names = new ArrayList<String>(entityNodes.size());
                                    for (ModelNode entityNode : entityNodes)
                                    {
                                        String entityName = entityNode.asProperty().getName();
                                        names.add(entityName);
                                    }
                                    pu.setEntities(names);
                                }
                                pus.add(pu);
                            }
                        }
View Full Code Here

                            if (index != -1)
                            {
                                name = fullname.substring(index + 1);
                            }
                            ModelNode puNode = node.get(RESULT);
                            DeployedPersistenceUnit pu = deployedPersistenceUnitEntityAdapter.fromDMR(puNode);
                            pu.setName(name);
                            pu.setType(persistenceUnit);
                            pu.setSubsystem(subsystem);
                            pu.setAddress(addressFor(subsystem.getAddress(), "hibernate-persistence-unit", fullname));
                            if (puNode.get("entity").isDefined())
                            {
                                List<ModelNode> entityNodes = puNode.get("entity").asList();
                                List<String> names = new ArrayList<String>(entityNodes.size());
                                for (ModelNode entityNode : entityNodes)
                                {
                                    String entityName = entityNode.asProperty().getName();
                                    names.add(entityName);
                                }
                                pu.setEntities(names);
                            }
                            pus.add(pu);
                        }
                    }
                }
View Full Code Here

                                String tokenString = unit.getName();
                                String[] tokens = tokenString.split("#");

                                ModelNode unitValue = unit.getValue();
                                System.out.println(tokens[0]+">"+unitValue);
                                DeployedPersistenceUnit pu = deployedPersistenceUnitEntityAdapter.fromDMR(unitValue);

                                pu.setName(tokens[1]);
                                pu.setType(persistenceUnit);
                                pu.setSubsystem(subsystem);

                                // TODO: re-enable?
                                //pu.setAddress(addressFor(subsystem.getAddress(), "hibernate-persistence-unit", fullname));
                                if (unitValue.hasDefined("entity"))
                                {
                                    List<ModelNode> entityNodes = unitValue.get("entity").asList();
                                    List<String> names = new ArrayList<String>(entityNodes.size());
                                    for (ModelNode entityNode : entityNodes)
                                    {
                                        String entityName = entityNode.asProperty().getName();
                                        names.add(entityName);
                                    }
                                    pu.setEntities(names);
                                }
                                pus.add(pu);
                            }
                        }
View Full Code Here

                                String tokenString = unit.getName();
                                String[] tokens = tokenString.split("#");

                                ModelNode unitValue = unit.getValue();
                                System.out.println(tokens[0]+">"+unitValue);
                                DeployedPersistenceUnit pu = deployedPersistenceUnitEntityAdapter.fromDMR(unitValue);

                                pu.setName(tokens[1]);
                                pu.setType(persistenceUnit);
                                pu.setSubsystem(subsystem);

                                // TODO: re-enable?
                                //pu.setAddress(addressFor(subsystem.getAddress(), "hibernate-persistence-unit", fullname));
                                if (unitValue.hasDefined("entity"))
                                {
                                    List<ModelNode> entityNodes = unitValue.get("entity").asList();
                                    List<String> names = new ArrayList<String>(entityNodes.size());
                                    for (ModelNode entityNode : entityNodes)
                                    {
                                        String entityName = entityNode.asProperty().getName();
                                        names.add(entityName);
                                    }
                                    pu.setEntities(names);
                                }
                                pus.add(pu);
                            }
                        }
View Full Code Here

                                String tokenString = unit.getName();
                                String[] tokens = tokenString.split("#");

                                ModelNode unitValue = unit.getValue();
                                System.out.println(tokens[0]+">"+unitValue);
                                DeployedPersistenceUnit pu = deployedPersistenceUnitEntityAdapter.fromDMR(unitValue);

                                pu.setName(tokens[1]);
                                pu.setType(persistenceUnit);
                                pu.setSubsystem(subsystem);

                                // TODO: re-enable?
                                //pu.setAddress(addressFor(subsystem.getAddress(), "hibernate-persistence-unit", fullname));
                                if (unitValue.hasDefined("entity"))
                                {
                                    List<ModelNode> entityNodes = unitValue.get("entity").asList();
                                    List<String> names = new ArrayList<String>(entityNodes.size());
                                    for (ModelNode entityNode : entityNodes)
                                    {
                                        String entityName = entityNode.asProperty().getName();
                                        names.add(entityName);
                                    }
                                    pu.setEntities(names);
                                }
                                pus.add(pu);
                            }
                        }
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.shared.deployment.model.DeployedPersistenceUnit

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.