All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.persistence.descriptors.MultitenantPolicy Maven / Gradle / Ivy

/*******************************************************************************
 * Copyright (c) 2011, 2012 Oracle and/or its affiliates. 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:
 *     09/09/2011-2.3.1 Guy Pelletier 
 *       - 356197: Add new VPD type to MultitenantType 
 ******************************************************************************/  
package org.eclipse.persistence.descriptors;

import org.eclipse.persistence.exceptions.DescriptorException;
import org.eclipse.persistence.internal.sessions.AbstractRecord;
import org.eclipse.persistence.internal.sessions.AbstractSession;
import org.eclipse.persistence.tools.schemaframework.TableDefinition;

/**
 * A multitenant interface.
 * 
 * @author Guy Pelletier
 * @since EclipseLink 2.3.1
 */
public interface MultitenantPolicy {
    public abstract void addToTableDefinition(TableDefinition tableDefinition);
    public abstract void addFieldsToRow(AbstractRecord row, AbstractSession session);
    public abstract MultitenantPolicy clone(ClassDescriptor descriptor);
    public abstract void postInitialize(AbstractSession session);
    public abstract void initialize(AbstractSession session) throws DescriptorException;    
    public abstract void preInitialize(AbstractSession session) throws DescriptorException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy