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

📄 container.java

📁 人力资源管理系统主要包括:人员管理、招聘管理、培训管理、奖惩管理和薪金管理五大管理模块。
💻 JAVA
字号:
//$Id: Container.java,v 1.1.2.1 2003/11/08 02:25:29 oneovthafew Exp $package org.hibernate.test;import java.util.ArrayList;import java.util.Collection;import java.util.List;import java.util.Map;import java.util.Set;public class Container {		public static final class ContainerInnerClass {		private Simple simple;		private String name;		private One one;		private Many many;		private int count;				public void setSimple(Simple simple) {			this.simple = simple;		}				public Simple getSimple() {			return simple;		}		/**		 * Returns the name.		 * @return String		 */		public String getName() {			return name;		}				/**		 * Sets the name.		 * @param name The name to set		 */		public void setName(String name) {			this.name = name;		}				public String toString() {			return name + " = " + simple.getCount()			+ "/" + ( one==null ? "nil" : one.getKey().toString() )			+ "/" + ( many==null ? "nil" : many.getKey().toString() );		}						/**		 * Returns the one.		 * @return One		 */		public One getOne() {			return one;		}				/**		 * Sets the one.		 * @param one The one to set		 */		public void setOne(One one) {			this.one = one;		}				/**		 * Returns the many.		 * @return Many		 */		public Many getMany() {			return many;		}				/**		 * Sets the many.		 * @param many The many to set		 */		public void setMany(Many many) {			this.many = many;		}				/**		 * Returns the count.		 * @return int		 */		public int getCount() {			return count;		}		/**		 * Sets the count.		 * @param count The count to set		 */		public void setCount(int count) {			this.count = count;		}	}		private List oneToMany;	private List manyToMany;	private List components;	private Set composites;	private Collection cascades;	private long id;	private Collection bag;	private Collection lazyBag = new ArrayList();	private Map ternaryMap;	private Set ternarySet;		/**	 * Constructor for Container.	 */	public Container() {		super();	}		/**	 * Returns the components.	 * @return List	 */	public List getComponents() {		return components;	}		/**	 * Returns the manyToMany.	 * @return List	 */	public List getManyToMany() {		return manyToMany;	}		/**	 * Returns the oneToMany.	 * @return List	 */	public List getOneToMany() {		return oneToMany;	}		/**	 * Sets the components.	 * @param components The components to set	 */	public void setComponents(List components) {		this.components = components;	}		/**	 * Sets the manyToMany.	 * @param manyToMany The manyToMany to set	 */	public void setManyToMany(List manyToMany) {		this.manyToMany = manyToMany;	}		/**	 * Sets the oneToMany.	 * @param oneToMany The oneToMany to set	 */	public void setOneToMany(List oneToMany) {		this.oneToMany = oneToMany;	}		/**	 * Returns the id.	 * @return long	 */	public long getId() {		return id;	}		/**	 * Sets the id.	 * @param id The id to set	 */	public void setId(long id) {		this.id = id;	}		/**	 * Gets the composites.	 * @return Returns a Set	 */	public Set getComposites() {		return composites;	}		/**	 * Sets the composites.	 * @param composites The composites to set	 */	public void setComposites(Set composites) {		this.composites = composites;	}		/**	 * Returns the bag.	 * @return Collection	 */	public Collection getBag() {		return bag;	}		/**	 * Sets the bag.	 * @param bag The bag to set	 */	public void setBag(Collection bag) {		this.bag = bag;	}		/**	 * Returns the ternary.	 * @return Map	 */	public Map getTernaryMap() {		return ternaryMap;	}		/**	 * Sets the ternary.	 * @param ternary The ternary to set	 */	public void setTernaryMap(Map ternary) {		this.ternaryMap = ternary;	}		public static final class Ternary {		private String name;		private Foo foo;		private Glarch glarch;		/**		 * Returns the foo.		 * @return Foo		 */		public Foo getFoo() {			return foo;		}				/**		 * Returns the glarch.		 * @return Glarch		 */		public Glarch getGlarch() {			return glarch;		}				/**		 * Returns the name.		 * @return String		 */		public String getName() {			return name;		}				/**		 * Sets the foo.		 * @param foo The foo to set		 */		public void setFoo(Foo foo) {			this.foo = foo;		}				/**		 * Sets the glarch.		 * @param glarch The glarch to set		 */		public void setGlarch(Glarch glarch) {			this.glarch = glarch;		}				/**		 * Sets the name.		 * @param name The name to set		 */		public void setName(String name) {			this.name = name;		}			}		/**	 * Returns the ternarySet.	 * @return Set	 */	public Set getTernarySet() {		return ternarySet;	}		/**	 * Sets the ternarySet.	 * @param ternarySet The ternarySet to set	 */	public void setTernarySet(Set ternarySet) {		this.ternarySet = ternarySet;	}		/**	 * Returns the lazyBag.	 * @return Collection	 */	public Collection getLazyBag() {		return lazyBag;	}		/**	 * Sets the lazyBag.	 * @param lazyBag The lazyBag to set	 */	public void setLazyBag(Collection lazyBag) {		this.lazyBag = lazyBag;	}		/**	 * Returns the cascades.	 * @return Collection	 */	public Collection getCascades() {		return cascades;	}	/**	 * Sets the cascades.	 * @param cascades The cascades to set	 */	public void setCascades(Collection cascades) {		this.cascades = cascades;	}}

⌨️ 快捷键说明

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