Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » Java » General » Downloads
 
Add your own
alternative version

Building Tree Structure Domain Model

, 12 Dec 2008 CPOL
How to build domain model with tree structure, thinking Object-Oriented
treemodelsrc.zip
org
schedulemanager
demo
model
view
package org.schedulemanager.demo.model;

import java.util.ArrayList;
import java.util.List;

public abstract class Job {
	protected String id;
	protected String name;
	protected String circle;
	protected String type;

	public final static String BATCHJOB = "BATCHJOB";
	public final static String JOBGROUP = "JOBGROUP";
	
	public final static String DAILY = "DAILY";
	public final static String WEEKLY = "WEEKLY";
	public final static String MONTHLY = "MONTHLY";
	
	public Job(String id) {
		this.id = id ;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public abstract void addJob(Job job);
	public abstract List<Job> getJobList();
	

}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

RipleyKuo
Software Developer
Taiwan Taiwan
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141220.1 | Last Updated 12 Dec 2008
Article Copyright 2008 by RipleyKuo
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid