| /******************************************************************************* |
| * Copyright (c) 2010-2012 Oracle. All rights reserved. |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 |
| * which accompanies this distribution. |
| * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html |
| * and the Eclipse Distribution License is available at |
| * http://www.eclipse.org/org/documents/edl-v10.php. |
| * |
| * Contributors: |
| * dclarke - EclipseLink 2.4 - MySports Demo Bug 344608 |
| ******************************************************************************/ |
| package example.mysports.admin.services.glassfish; |
| |
| import javax.xml.bind.annotation.XmlAccessType; |
| import javax.xml.bind.annotation.XmlAccessorType; |
| |
| |
| /** |
| * |
| * |
| * @author dclarke |
| * @since EclipseLink 2.4 |
| */ |
| @XmlAccessorType(XmlAccessType.FIELD) |
| public class JDBCResources extends Result { |
| |
| private String id; |
| |
| public String[] getResourceNames() { |
| String[] names = new String[getChildren().size()]; |
| for (int index = 0; index < getChildren().size(); index++) { |
| names[index] = getChildren().get(index).getMessage(); |
| } |
| return names; |
| } |
| } |