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

📄 transactionregistry.java

📁 jdo开发实例,一个功能全面的oa系统
💻 JAVA
字号:
/**
* <p>Title: transactionRegistry</p>
* <p>Description: used to lookup transaction registries</p>
* <p>Copyright: Copyright (c) 2002-2003</p>
* <p>Company: RealMap</p>
* @author: Mulder
* @version 2003a
*/

package com.gzrealmap.oa.db;
import java.sql.*;
import com.gzrealmap.lib.jdbc.JDBCUtil;
public class transactionRegistry
{
   private JDBCUtil db;
   private String id;
   private String className;
   private String category;
   private String description;
   private String confirmInfo;//Confirm info mation before the transaction is performed
   public transactionFactory theTransactionFactory;

   /**
   @roseuid 3DD5CF2A03C3
    */
   public transactionRegistry(String id) throws  Exception
   {
    this.id=id;
    db = JDBCUtil.getInstance();
    db.connect();
   	ResultSet rs = db.query("select * from transactions where tranid="+id);
   	if (rs.next())
   	{
   		className = rs.getString("className").trim();
   		category  = rs.getString("tranType");
   		description=rs.getString("tranName");
   		confirmInfo=rs.getString("confirmInfo");
   	}
   	else throw new Exception("No transaction "+id+" definition found!");
   }
   /**
   @return java.lang.String
   @roseuid 3DD5C5DD0257
    */
   public String getClassName()
   {
    return className;
   }
   public String getDescription()
   {
    return description;
   }
   public String getCategory()
   {
    return category;
   }
   public String getConfirmInfo()
   {
   	return confirmInfo;
   }
}

⌨️ 快捷键说明

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