/*
* Image.java
*
* Generated by com.evutils.codegen.JDOObjectGenerator
*
* Use but DON'T TOUCH
*/
package com.evolute.siprp.server.db.data.siprp_local3;

import com.evolute.utils.jdo.*;

public final class Image implements JDOInnerObject
{
	private Integer id;
	private String name;
	private byte[] image_data;

	public Image()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == ImageDataAuto.ID )
		{
			return id;
		}
		else if( fieldName == ImageDataAuto.NAME )
		{
			return name;
		}
		else if( fieldName == ImageDataAuto.IMAGE_DATA )
		{
			return image_data;
		}
		else if( fieldName.equals( ImageDataAuto.ID ) )
		{
			return id;
		}
		else if( fieldName.equals( ImageDataAuto.NAME ) )
		{
			return name;
		}
		else if( fieldName.equals( ImageDataAuto.IMAGE_DATA ) )
		{
			return image_data;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == ImageDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == ImageDataAuto.NAME )
		{
			name = ( String ) value;
		}
		else if( fieldName == ImageDataAuto.IMAGE_DATA )
		{
			image_data = ( byte[] ) value;
		}
		else if( fieldName.equals( ImageDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( ImageDataAuto.NAME ) )
		{
			name = ( String )  value;
		}
		else if( fieldName.equals( ImageDataAuto.IMAGE_DATA ) )
		{
			image_data = ( byte[] )  value;
		}
	}

	public Integer getId()
	{
		return id;
	}

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

	public String getName()
	{
		return name;
	}

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

	public byte[] getImage_data()
	{
		return image_data;
	}

	public void setImage_data(byte[] image_dataValue )
	{
		this.image_data = image_dataValue;
	}

	public Class<ImageDataAuto> getOuterClass()
	{
		return ImageDataAuto.class;
	}

	public ImageDataAuto getOuterClassInstance()
	{
		ImageDataAuto outerObj = new ImageDataAuto();
		outerObj.setInnerObject(this);
		return outerObj;
	}

	public Integer getJDOPrimaryKey()
	{
		Object obj = this.getId();
		if(obj instanceof JDOObject){
			 obj = ((JDOObject) obj).getInnerObject();
		}
		return (Integer) obj;
	}
}
