Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2006-2009 Floggy Open Source Group. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package net.sourceforge.floggy.persistence.fr2422928;
 
 import java.util.Date;
 
 
 public class Freezed implements PersistableDeletable {
 
 	public static final Date DEADLINE = new Date(987654321);
 	public static final String DESCRIPTION = "This is sample class that is freezed between versions!";
 	public static final Freezed NESTED = new Freezed();
 	public static final String UUID = "2573882d-163c-11dd-98c7-b9f43dcf5330";
 	public static final short CODE = (short)56734;
 
 	protected String uuid;
 	protected Date deadline;
 	protected String description;
 	protected Freezed nested;
 	protected short code;

 
 	public boolean equals(Object obj) {
 		if (this == obj)
 			return true;
 		if (obj == null)
 			return false;
 		if (getClass() != obj.getClass())
 			return false;
 		final Freezed other = (Freezedobj;
 		if ( != other.code)
 			return false;
 		if ( == null) {
 			if (other.deadline != null)
 				return false;
 		} else if (!.equals(other.deadline))
 			return false;
 		if ( == null) {
 			if (other.description != null)
 				return false;
 		} else if (!.equals(other.description))
 			return false;
 		if ( == null) {
 			if (other.nested != null)
 				return false;
 		} else if (!.equals(other.nested))
 			return false;
 		if ( == null) {
 			if (other.uuid != null)
 				return false;
 		} else if (!.equals(other.uuid))
 			return false;
 		return true;
 	}

Returns:
the code
 
 	public short getCode() {
 		return ;
 	}

Returns:
the deadline
 
 	public Date getDeadline() {
 		return ;
 	}

Returns:
the description
 
 	public String getDescription() {
 		return ;
 	}

Returns:
the nested
 
 	public Freezed getNested() {
		return ;
	}

Returns:
the uuid
	public String getUuid() {
		return ;
	}

	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ;
		result = prime * result
				+ (( == null) ? 0 : .hashCode());
		result = prime * result
				+ (( == null) ? 0 : .hashCode());
		result = prime * result + (( == null) ? 0 : .hashCode());
		result = prime * result + (( == null) ? 0 : .hashCode());
		return result;
	}

Parameters:
code the code to set
	public void setCode(short code) {
		this. = code;
	}

Parameters:
deadline the deadline to set
	public void setDeadline(Date deadline) {
		this. = deadline;
	}

Parameters:
description the description to set
	public void setDescription(String description) {
		this. = description;
	}

Parameters:
nested the nested to set
	public void setNested(Freezed nested) {
		this. = nested;
	}

Parameters:
uuid the uuid to set
	public void setUuid(String uuid) {
		this. = uuid;
	}
	public void delete() throws FloggyException {
		if ( != null) {
			PersistableManager.getInstance().delete();
		}
	}
New to GrepCode? Check out our FAQ X