package org.domain.zzzzzz2.session;

import org.domain.zzzzzz2.entity.*;
import java.util.ArrayList;
import java.util.List;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("productlinesHome")
public class ProductlinesHome extends EntityHome<Productlines> {

	public void setProductlinesProductline(String id) {
		setId(id);
	}

	public String getProductlinesProductline() {
		return (String) getId();
	}

	@Override
	protected Productlines createInstance() {
		Productlines productlines = new Productlines();
		return productlines;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public Productlines getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

	public List<Products> getProductses() {
		return getInstance() == null ? null : new ArrayList<Products>(
				getInstance().getProductses());
	}

}
