package org.domain.zzzzzz2.session;

import org.domain.zzzzzz2.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("officesHome")
public class OfficesHome extends EntityHome<Offices> {

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

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

	@Override
	protected Offices createInstance() {
		Offices offices = new Offices();
		return offices;
	}

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

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

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

}
