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

📄 deleteeventlockstatement.java

📁 一个用java写的地震分析软件(无源码)
💻 JAVA
字号:
// *** PACKAGE NAME *** \
package org.trinet.jasi.EW.SQL;


// *** IMPORTS *** \
import java.util.*;
import java.sql.Connection;
import java.sql.SQLException;
import org.trinet.jasi.EW.EWSolutionLock;


/**
 * <!-- Class Description>
 *
 *
 **/


public class DeleteEventLockStatement extends EWSQLStatement
{

  // *** CLASS ATTRIBUTES *** \


  // *** CONSTRUCTORS *** \
  public DeleteEventLockStatement()
  {
    sSQLStatement = new String("Begin Release_Locked_Event(OUT_Retcode => :OUT_Retcode,IN_idEvent => :IN_idEvent,		IN_iLockTime => :IN_iLockTime); End;");
    bIsQuery = false;
    init();
  }


  public DeleteEventLockStatement(Connection IN_conn)
  {
    this();
    SetConnection(IN_conn);
  }


  // *** CLASS METHODS *** \


  protected boolean SetInputParams(Object obj)
  {

    EWSolutionLock objEWSolutionLock = (EWSolutionLock)obj;

    try
    {
      cs.setLong(2, objEWSolutionLock.idEvent);
      cs.setInt(3, objEWSolutionLock.iLockTime);
    }
    catch (SQLException ex)
    {
      System.err.println("Exception in DeleteEventLockStatement:SetInputParams()");
      System.err.println(ex);
      ex.printStackTrace();
      return(false);
    }

    return(true);
  }   // end DeleteEventLockStatement::SetInputParams()


  protected boolean RegisterOutputParams()
  {
    try
    {
      cs.registerOutParameter(1, java.sql.Types.INTEGER);
    }
    catch (SQLException ex)
    {
      System.err.println("Exception in DeleteEventLockStatement:RegisterOutputParams()");
      System.err.println(ex);
      ex.printStackTrace();
      return(false);
    }
    return(true);
  }  // end DeleteEventLockStatement:RegisterOutputParams()


  protected boolean RetrieveOutputParams(Object obj)
  {
    EWSolutionLock objEWSolutionLock = (EWSolutionLock)obj;

    try
    {
      objEWSolutionLock.iRetCode=cs.getInt(1);
    }
    catch (SQLException ex)
    {
      System.err.println("Exception in DeleteEventLockStatement:RetrieveOutputParams()");
      System.err.println(ex);
      ex.printStackTrace();
      return(false);
    }

    return(true);
  }   // end DeleteEventLockStatement::RetrieveOutputParams()


} // end class DeleteEventLockStatement


//             <EOF>

⌨️ 快捷键说明

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