Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 6968f21f53e8249837c1f8b51e32524dcfc6e15d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                                 
                                                                               
                                                                                     
                                                                         
                                                                         






                                                                                            
                                                                  



                                                                                                   



                                                                                


                                                               



                                                                  
 



                                                                     







                                                                        



                                                               
 
/*******************************************************************************
 * Copyright (c) 2008 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.eclipselink.core.internal.context;

import org.eclipse.jpt.core.context.persistence.Persistence;
import org.eclipse.jpt.core.internal.context.persistence.GenericPersistenceUnit;
import org.eclipse.jpt.core.resource.persistence.XmlPersistenceUnit;
import org.eclipse.jpt.eclipselink.core.internal.context.caching.Caching;
import org.eclipse.jpt.eclipselink.core.internal.context.connection.Connection;
import org.eclipse.jpt.eclipselink.core.internal.context.customization.Customization;
import org.eclipse.jpt.eclipselink.core.internal.context.logging.Logging;
import org.eclipse.jpt.eclipselink.core.internal.context.options.Options;
import org.eclipse.jpt.eclipselink.core.internal.context.schema.generation.SchemaGeneration;

/**
 * EclipseLinkPersistenceUnit
 */
public class EclipseLinkPersistenceUnit extends GenericPersistenceUnit
{
	private final EclipseLinkProperties eclipseLinkProperties;

	// ********** constructors/initialization **********
	public EclipseLinkPersistenceUnit(Persistence parent, XmlPersistenceUnit persistenceUnit) {
		super(parent, persistenceUnit);
		this.eclipseLinkProperties = new EclipseLinkJpaProperties(this);
	}

	// ******** Behavior *********
	public Caching getCaching() {
		return this.eclipseLinkProperties.getCaching();
	}
	
	public Connection getConnection() {
		return this.eclipseLinkProperties.getConnection();
	}

	public Customization getCustomization() {
		return this.eclipseLinkProperties.getCustomization();
	}

	public Logging getLogging() {
		return this.eclipseLinkProperties.getLogging();
	}

	public SchemaGeneration getSchemaGeneration() {
		return this.eclipseLinkProperties.getSchemaGeneration();
	}

	public Options getOptions() {
		return this.eclipseLinkProperties.getOptions();
	}

}

Back to the top