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

model.SQLData Maven / Gradle / Ivy

The newest version!
/**
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
 *
 * 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 model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/*
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
 *
 * 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.
 *
 */

public class SQLData {
	private String tableName;
	private Map> fieldData;
	private List primaryKeys;
	private Map foriegnKeys;
	
	public static class ForiegnKeyData{
		public String tableAndField;
		public String jpaClassName;
		public String jpaResourceClassName;
		public ForiegnKeyData(String tableAndField, String jpaClassName,String jpaResourceClassName) {
			this.tableAndField = tableAndField;
			this.jpaClassName = jpaClassName;
			this.jpaResourceClassName = jpaResourceClassName;
		}
	}
	
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	public Map> getFieldData() {
		if (fieldData==null){
			fieldData=new HashMap>();
		}
		return fieldData;
	}
	
	public void setFieldData(Map> fieldData) {
		this.fieldData = fieldData;
	}
	public List getPrimaryKeys() {
		if (primaryKeys==null){
			primaryKeys=new ArrayList();
		}
		return primaryKeys;
	}
	public void setPrimaryKeys(List primaryKeys) {
		this.primaryKeys = primaryKeys;
	}
	public Map getForiegnKeys() {
		if (foriegnKeys==null){
			foriegnKeys=new HashMap();
		}
		return foriegnKeys;
	}
	public void setForiegnKeys(Map foriegnKeys) {
		this.foriegnKeys = foriegnKeys;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy