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

📄 logtype.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 LOGTYPE
 * @author tongxiaodong
 * Creation time:Nov 14, 2006 10:10:44 PM
 */
public class LogType implements Pojo{
	
	
	private String id = null;
	private String descr = null;
	private String superId = null;
	private String extable = null;
	private String img = null;
	
	public String getId()
	{
		return this.id;
	}
	public void setId(String id )
	{
		this.id = id;
	}
	
	public String getDescr()
	{
		return this.descr;
	}
	public void setDescr(String descr)
	{
		this.descr = descr;
	}
	
	public String getSuperId()
	{
		return this.superId;
	}
	public void setSuperId(String superId)
	{
		this.superId = superId;
	}
	
	public String getExtable()
	{
		return this.extable;
	}
	public void setExtable(String extable)
	{
		this.extable = extable;
	}
	
	public String getImg()
	{
		return this.img;
	}
	public void setImg(String img)
	{
		this.img = img;
	}
	
	/**
	 * 根据属性名获得属性值
	 * @param colName
	 * @return
	 */
	public Object getColValue(String colName)
	{
		if(colName.equals("id"))
		{
			return this.getId();
		}
		
		if(colName.equals("descr"))
		{
			return this.getDescr();
		}
		
		if(colName.equals("extable"))
		{
			return this.getExtable();
		}
		
		if(colName.equals("superId"))
		{
			return this.getSuperId();
		}
		
		if(colName.equals("img"))
		{
			return this.getImg();
		}
		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("descr"))
		{
			this.setDescr(value.toString());
		}
			
		if(colName.equals("superId"))
		{
			this.setSuperId(value.toString());
		}
		
		if(colName.equals("extable"))
		{
			this.setExtable(value.toString());
		}
		
		if(colName.equals("img"))
		{
			this.setImg(value.toString());
		}
	  }catch(Exception c)
	  {
		   //System.out.println(c.getStackTrace());
		   System.out.println("对LogType型Pojo的属性进行非法赋值报错!");
	  }
		
	}

}

⌨️ 快捷键说明

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