ewwhereis.java

来自「一个用java写的地震分析软件(无源码)-used to write a sei」· Java 代码 · 共 65 行

JAVA
65
字号

// *** PACKAGE NAME *** \
package org.trinet.util.gazetteer.EW;


// *** IMPORTS *** \
import java.util.Vector;
import java.sql.Connection;

import org.trinet.jasi.EW.SQL.EWSQLStatement;

// Individual SQL Statements
import org.trinet.jasi.EW.SQL.GetNearestPlacesStatement;

public class EWWhereIs
{


  // *** CLASS ATTRIBUTES *** \

  public static final int PLACE_TYPE_CITY       = 1;
  public static final int PLACE_TYPE_FAULT      = 4;
  public static final int PLACE_TYPE_STRUCTURE  = 5;
  public static final int PLACE_TYPE_NOISE_SITE = 6;

  // Data Attributes

  public long   idPlace;
  public double dLat;
  public double dLon;
  public double dDepth;
  public String sDescription;
  public String sName;
  public String sState;
  public int    iPlaceMajorType;
  public int    iPlaceMinorType;

  // *** CLASS SQL STATEMENTS *** \
  static EWSQLStatement es1;


  // *** CONSTRUCTORS *** \
  public EWWhereIs()
  {
    if(es1 == null)
      es1 = new GetNearestPlacesStatement(org.trinet.jasi.DataSource.getConnection());
  }

  // *** CLASS METHODS *** \
  public void SetConnection(Connection IN_conn)
  {
    es1.SetConnection(IN_conn);
  }


  public Vector ReadList()
  {
    Vector ResultList = new Vector();
     int    iRetCode;

    es1.CallQueryStatement((Object)this, ResultList);
    return(ResultList);
  }  // end EWSolution:ReadList()

}

⌨️ 快捷键说明

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