⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 geoxygenebrokerhelper.java

📁 用于GIS(全球地理系统)的分析和处理的代码。
💻 JAVA
字号:
/*
 * This file is part of the GeOxygene project source files. 
 * 
 * GeOxygene aims at providing an open framework which implements OGC/ISO specifications for 
 * the development and deployment of geographic (GIS) applications. It is a open source 
 * contribution of the COGIT laboratory at the Institut G閛graphique National (the French 
 * National Mapping Agency).
 * 
 * See: http://oxygene-project.sourceforge.net 
 *  
 * Copyright (C) 2005 Institut G閛graphique National
 *
 * This library is free software; you can redistribute it and/or modify it under the terms
 * of the GNU Lesser General Public License as published by the Free Software Foundation; 
 * either version 2.1 of the License, or any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT ANY 
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License along with 
 * this library (see file LICENSE if present); if not, write to the Free Software 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *  
 */

package fr.ign.cogit.geoxygene.datatools.ojb;

import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.sql.Connection;
import java.util.StringTokenizer;

import org.apache.commons.lang.SystemUtils;
import org.apache.ojb.broker.Identity;
import org.apache.ojb.broker.PBKey;
import org.apache.ojb.broker.PersistenceBroker;
import org.apache.ojb.broker.PersistenceBrokerException;
import org.apache.ojb.broker.VirtualProxy;
import org.apache.ojb.broker.accesslayer.IndirectionHandler;
import org.apache.ojb.broker.core.ValueContainer;
import org.apache.ojb.broker.metadata.ClassDescriptor;
import org.apache.ojb.broker.metadata.FieldDescriptor;
import org.apache.ojb.broker.metadata.MetadataException;
import org.apache.ojb.broker.metadata.MetadataManager;
import org.apache.ojb.broker.metadata.fieldaccess.PersistentField;
import org.apache.ojb.broker.platforms.Platform;
import org.apache.ojb.broker.platforms.PlatformFactory;
import org.apache.ojb.broker.platforms.PlatformOracle9iImpl;
import org.apache.ojb.broker.platforms.PlatformOracleImpl;
import org.apache.ojb.broker.platforms.PlatformPostgreSQLImpl;
import org.apache.ojb.broker.query.Criteria;
import org.apache.ojb.broker.query.MtoNQuery;
import org.apache.ojb.broker.query.Query;
import org.apache.ojb.broker.query.QueryByCriteria;
import org.apache.ojb.broker.query.QueryBySQL;
import org.apache.ojb.broker.query.ReportQueryByCriteria;
import org.apache.ojb.broker.query.ReportQueryByMtoNCriteria;
import org.apache.ojb.broker.util.sequence.SequenceManagerException;

//import fr.ign.cogit.geoxygene.datatools.oracle.ArrayGeOxygene2Oracle;
//import fr.ign.cogit.geoxygene.datatools.oracle.GeomGeOxygene2Oracle;
//#else
/*
import com.develop.java.lang.reflect.Proxy;
*/
//#endif

/**
 * Redefinition de la classe org.apache.ojb.util.BrokerHelper d'OJB, 
 * permettant d'appeler une methode "javaToSql(Object, Connection)
 * pour ecrire les structures dans Oracle.
 * Par rapport a la version originale de BrokerHelper :
 *  les imports ont ete reorganises,
 *  le constructeur renomme,
 *  un parametre connection ajoute dans la signature de getValuesForObject (ligne 352),
 *  un ajout dans la methode getValuesForObject (ligne 375),
 *  un parametre connection ajoute dans getAllRwValues,
 *  un parametre connection ajoute dans getNonKeyRwValues,
 *  un parametre connection ajoute dans getKeyValues,
 *  un parametre connection ajoute dans getKeyValues.
 * Les 4 dernieres modifs se font suite a des erreurs de compile, 
 * suite au premier ajout dans getValuesForObject.
 * 
 * AB 11 juillet 2005 : 
 * <br> Utilisation des noms de classes et de la r閒lection pour permettre la compilation s閜閞閑 pour Oracle.
 * <br> Patch pour permettre l'utilisation de la meme classe de "FieldConversion" pour Oracle et Postgis. 
 *  
 * @author Thierry Badard & Arnaud Braun
 * @version 1.1
 * 
 */
public class GeOxygeneBrokerHelper
{
	
	// AJOUT pour GeOxygene ---------------------------------------------------
	// Nom des classes relatives 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -