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

📄 windows.java

📁 具备多表组合查询组件功能。通过将表字段与表间关系映射到对象关系及属性
💻 JAVA
字号:
package cn.edu.buaa.ieguam.logmanage.pojos;

import cn.edu.buaa.ieguam.logmanage.Pojo;
import java.lang.Integer;
import java.lang.String;

/**
 * Pojo for table WINDOWS
 * @author tongxiaodong
 * Creation time:Nov 14, 2006 10:59:33 PM
 */

public class Windows implements Pojo{
	
	private Integer id = null;//PK
	private Integer mainId = null;//FK
	private String sourceName = null;
	private String dateTime = null;
	private String eventId = null;
	private String source = null;
	private String sidType = null;
	private String types = null;
	private String category = null;
	private String datum = null;
	private String descr = null;
	private String computer = null;
	
	public Integer getId()
	{
		return this.id;
	}
	public void setId(String id )
	{
		this.id = new Integer(id);
	}
	
	public Integer getMainId()
	{
		return this.mainId;
	}
	public void setMainId(String mainId )
	{
		this.mainId = new Integer(mainId);
	}
	
	public String getSourceName()
	{
		return this.sourceName;
	}
	public void setSourceName(String sourceName)
	{
		this.sourceName = sourceName;
	}
	
	public String getEventId()
	{
		return this.eventId;
	}
	public void setEventId(String eventId)
	{
		this.eventId = eventId;
	}
	
	public String getDateTime()
	{
		return this.dateTime;
	}
	public void setDateTime(String dateTime)
	{
		this.dateTime = dateTime;
	}
	
	public String getSource()
	{
		return this.source;
	}
	public void setSource(String source)
	{
		this.source = source;
	}
	
	public String getSidType()
	{
		return this.sidType;
	}
	public void setSidType(String sidType)
	{
		this.sidType = sidType;
	}
	
	public String getTypes()
	{
		return this.types;
	}
	public void setTypes(String types)
	{
		this.types = types;
	}
	
	public String getCategory()
	{
		return this.category;
	}
	public void setCategory(String category)
	{
		this.category = category;
	}
	
	public String getDatum()
	{
		return this.datum;
	}
	public void setDatum(String datum)
	{
		this.datum = datum;
	}
	
	public String getDescr()
	{
		return this.descr;
	}
	public void setDescr(String descr)
	{
		this.descr = descr;
	}
	
	public String getComputer()
	{
		return this.computer;
	}
	public void setComputer(String computer)
	{
		this.computer = computer;
	}
	
	/**
	 * 根据属性名获得属性值
	 * @param colName
	 * @return
	 */
	public Object getColValue(String colName)
	{
		if(colName.equals("id"))
		{
			return this.getId();
		}
		
		if(colName.equals("mainId"))
		{
			return this.getMainId();
		}
		
		if(colName.equals("sourceName"))
		{
			return this.sourceName;
		}
		
		if(colName.equals("dateTime"))
		{
			return this.dateTime;
		}
		
		if(colName.equals("eventId"))
		{
			return this.getEventId();
		}
		
		if(colName.equals("source"))
		{
			return this.getSource();
		}
		
		if(colName.equals("sidType"))
		{
			return this.sidType;
		}
		
		if(colName.equals("types"))
		{
			return this.types;
		}
		
		if(colName.equals("category"))
		{
			return this.category;
		}
		
		if(colName.equals("datum"))
		{
			return this.datum;
		}
		
		if(colName.equals("descr"))
		{
			return this.descr;
		}
		
		if(colName.equals("computer"))
		{
			return this.computer;
		}
		
		return null;
	}
	
	/**
	 * 设置属性名对应的属性值
	 * @param colName
	 * @param value
	 */
	public void setColValue(String colName,Object value)
	{
		if(value==null)
		{
			return;
		}
		if(value.toString().equals("null"))
		{
			return;
		}
		if(value.toString().trim().equals(""))
		{
			return;
			
		}
	    
	  try
	  {
		if(colName.equals("id"))
		{
			this.setId(value.toString());
		}
		
		if(colName.equals("mainId"))
		{
			this.setMainId(value.toString());
		}
		
		if(colName.equals("sourceName"))
		{
			this.setSourceName(value.toString());
		}
		
		if(colName.equals("dateTime"))
		{
			this.setDateTime(value.toString());
		}
		
		if(colName.equals("eventId"))
		{
			this.setEventId(value.toString());
		}
		
		if(colName.equals("source"))
		{
			this.setSource(value.toString());
		}
		
		if(colName.equals("sidType"))
		{
			this.setSidType(value.toString());
		}
		
		if(colName.equals("types"))
		{
			this.setTypes(value.toString());
		}
		
		if(colName.equals("category"))
		{
			this.setCategory(value.toString());
		}
		
		if(colName.equals("datum"))
		{
			this.setDatum(value.toString());
		}
		
		if(colName.equals("descr"))
		{
			this.setDescr(value.toString());
		}
		
		if(colName.equals("computer"))
		{
			this.setComputer(value.toString());
		}
		
	  }catch(Exception c)
	  {
		   //System.out.println(c.getStackTrace());
		   System.out.println("对Windows型Pojo的属性进行非法赋值报错!");
	  }
	}
	

}

⌨️ 快捷键说明

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