blob: 60414702f747ffc763ba229ac2a91c30bf37882a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
*
* Contributors:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.jpt.core.internal;
import org.eclipse.jpt.db.internal.ConnectionProfile;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>IJpa Data Source</b></em>'.
* <!-- end-user-doc -->
*
*
* @see org.eclipse.jpt.core.internal.JpaCorePackage#getIJpaDataSource()
* @model kind="class" interface="true" abstract="true"
* @generated
*/
public interface IJpaDataSource extends IJpaEObject
{
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model kind="operation" unique="false" required="true" ordered="false"
* @generated
*/
String getConnectionProfileName();
void setConnectionProfileName(String newConnectionProfileName);
boolean isConnected();
boolean hasAConnection();
/**
* The data source's connection profile should never be null.
* If we do not have a connection, return a "null" connection profile.
*/
ConnectionProfile getConnectionProfile();
void dispose();
}