// Path: src/main/java/org/telosys/tools/generic/model/enums/CascadeOption.java
// public enum CascadeOption {
// 	
// 	/**
// 	 * 
// 	 */
// 	MERGE(0, "MERGE"),
// 	
// 	/**
// 	 * 
// 	 */
// 	PERSIST(1, "PERSIST"),
// 	
// 	/**
// 	 * 
// 	 */
// 	REFRESH(2, "REFRESH"),
// 	
// 	/**
// 	 * 
// 	 */
// 	REMOVE(3, "REMOVE"),
// 		
// 	/**
// 	 * 
// 	 */
// 	ALL(4, "ALL");
// 	
// 	//---------------------------------------------------
// 	private final int    value ;
// 	private final String text  ;
// 	
// 	private CascadeOption(int value, String text) {
// 		this.value = value ;
// 		this.text  = text ;
// 	}
// 	
// 	/**
// 	 * Returns the fetch type as an int value (0 to 3) <br>
// 	 * @return
// 	 */
// 	public int getValue() {
// 		return this.value ;
// 	}
// 	
// 	/**
// 	 * Returns the fetch type as a text<br>
// 	 * e.g. : 'MERGE', 'PERSIST', etc
// 	 * @return
// 	 */
// 	public String getText() {
// 		return this.text;
// 	}
// }


import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;
import org.telosys.tools.generic.model.enums.CascadeOption;
/**
 *  Copyright (C) 2008-2017  Telosys project org. ( http://www.telosys.org/ )
 *
 *  Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, Version 3.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *          http://www.gnu.org/licenses/lgpl.html
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.telosys.tools.generic.model;



/**
 * Object containing a set of selected 'cascade options'
 * 
 * @author Laurent Guerin
 *
 */
public class CascadeOptions implements Serializable {
	
	private static final long serialVersionUID = 1L;

	private static final String CASCADE_ALL = "ALL";

// Path: src/main/java/org/telosys/tools/generic/model/enums/CascadeOption.java
// public enum CascadeOption {
// 	
// 	/**
// 	 * 
// 	 */
// 	MERGE(0, "MERGE"),
// 	
// 	/**
// 	 * 
// 	 */
// 	PERSIST(1, "PERSIST"),
// 	
// 	/**
// 	 * 
// 	 */
// 	REFRESH(2, "REFRESH"),
// 	
// 	/**
// 	 * 
// 	 */
// 	REMOVE(3, "REMOVE"),
// 		
// 	/**
// 	 * 
// 	 */
// 	ALL(4, "ALL");
// 	
// 	//---------------------------------------------------
// 	private final int    value ;
// 	private final String text  ;
// 	
// 	private CascadeOption(int value, String text) {
// 		this.value = value ;
// 		this.text  = text ;
// 	}
// 	
// 	/**
// 	 * Returns the fetch type as an int value (0 to 3) <br>
// 	 * @return
// 	 */
// 	public int getValue() {
// 		return this.value ;
// 	}
// 	
// 	/**
// 	 * Returns the fetch type as a text<br>
// 	 * e.g. : 'MERGE', 'PERSIST', etc
// 	 * @return
// 	 */
// 	public String getText() {
// 		return this.text;
// 	}
// }


// Path: src/main/java/org/telosys/tools/generic/model/CascadeOptions.java
import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;
import org.telosys.tools.generic.model.enums.CascadeOption;

/**
 *  Copyright (C) 2008-2017  Telosys project org. ( http://www.telosys.org/ )
 *
 *  Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, Version 3.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *          http://www.gnu.org/licenses/lgpl.html
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.telosys.tools.generic.model;



/**
 * Object containing a set of selected 'cascade options'
 * 
 * @author Laurent Guerin
 *
 */
public class CascadeOptions implements Serializable {
	
	private static final long serialVersionUID = 1L;

	private static final String CASCADE_ALL = "ALL";

	private final CascadeOption cascadeOptions[] = new CascadeOption[CascadeOption.values().length];