/*
 * Copyright (C) 2004-2005  exedio GmbH (www.exedio.com)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package com.exedio.cope;

/**
 * @cope.persistent
 * @author Ralf Wiebicke
 */
public class DeleteOtherItem extends Item
{

	public static final StringAttribute name = stringAttribute(MANDATORY);

	public String toString()
	{
		return getName();
	}
	
	
	
/**

	 **
	 * Creates a new DeleteOtherItem with all the attributes initially needed.
	 * @cope.generated This method has been generated by the cope instrumentor and will be overwritten by the build process.
	 * @param name the initial value for attribute {@link #name}.
	 * @throws com.exedio.cope.MandatoryViolationException if name is null.
	 *
 */public DeleteOtherItem(
				final java.lang.String name)
			throws
				com.exedio.cope.MandatoryViolationException
	{
		this(new com.exedio.cope.AttributeValue[]{
			new com.exedio.cope.AttributeValue(DeleteOtherItem.name,name),
		});
		throwInitialMandatoryViolationException();
	}/**

	 **
	 * Creates a new DeleteOtherItem and sets the given attributes initially.
	 * This constructor is called by {@link com.exedio.cope.Type#newItem Type.newItem}.
	 * @cope.generated This method has been generated by the cope instrumentor and will be overwritten by the build process.
	 *
 */private DeleteOtherItem(final com.exedio.cope.AttributeValue[] initialAttributes)
	{
		super(initialAttributes);
	}/**

	 **
	 * Reactivation constructor. Used for internal purposes only.
	 * @cope.generated This method has been generated by the cope instrumentor and will be overwritten by the build process.
	 * @see Item#Item(com.exedio.cope.util.ReactivationConstructorDummy,int)
	 *
 */private DeleteOtherItem(com.exedio.cope.util.ReactivationConstructorDummy d,final int pk)
	{
		super(d,pk);
	}/**

	 **
	 * Returns the value of the persistent attribute {@link #name}.
	 * @cope.generated This method has been generated by the cope instrumentor and will be overwritten by the build process.
	 *
 */public final java.lang.String getName()
	{
		return (java.lang.String)get(DeleteOtherItem.name);
	}/**

	 **
	 * Sets a new value for the persistent attribute {@link #name}.
	 * @cope.generated This method has been generated by the cope instrumentor and will be overwritten by the build process.
	 *
 */public final void setName(final java.lang.String name)
			throws
				com.exedio.cope.MandatoryViolationException
	{
		try
		{
			set(DeleteOtherItem.name,name);
		}
		catch(com.exedio.cope.LengthViolationException e)
		{
			throw new com.exedio.cope.NestingRuntimeException(e);
		}
		catch(com.exedio.cope.ReadOnlyViolationException e)
		{
			throw new com.exedio.cope.NestingRuntimeException(e);
		}
		catch(com.exedio.cope.UniqueViolationException e)
		{
			throw new com.exedio.cope.NestingRuntimeException(e);
		}
	}/**

	 **
	 * The persistent type information for deleteOtherItem.
	 * @cope.generated This method has been generated by the cope instrumentor and will be overwritten by the build process.
	 *
 */public static final com.exedio.cope.Type TYPE =
		new com.exedio.cope.Type(DeleteOtherItem.class)
;}

@@ -933,72 +933,109 @@
 lic 
-static final StringAttribute name = stringAttribute(MANDATORY);%0A
+String name = null;%0A%0A%09public DeleteOtherItem(final String name)%0A%09%7B%0A%09%09this();%0A%09%09this.name = name;%0A%09%7D%0A%09
 %0A%09pu
@@ -1069,25 +1069,20 @@
 %09return 
-getN
+n
 ame
-()
 ;%0A%09%7D%0A%09%0A%09
@@ -1082,18 +1082,16 @@
 %0A%09%7D%0A%09%0A%09%0A
-%09%0A
 /**%0A%0A%09 *
@@ -1297,425 +1297,88 @@
 %0A%09 *
- @param name the initial value for attribute %7B@link #name%7D.%0A%09 * @throws com.exedio.cope.MandatoryViolationException if name is null.%0A%09 *%0A */public DeleteOtherItem(%0A%09%09%09%09final java.lang.String name)%0A%09%09%09throws%0A%09%09%09%09com.exedio.cope.MandatoryViolationException%0A%09%7B%0A%09%09this(new com.exedio.cope.AttributeValue%5B%5D%7B%0A%09%09%09new com.exedio.cope.AttributeValue(DeleteOtherItem.name,name),%0A%09%09%7D);%0A%09%09throwInitialMandatoryViolationException(
+%0A */public DeleteOtherItem()%0A%09%7B%0A%09%09this(new com.exedio.cope.AttributeValue%5B%5D%7B%0A%09%09%7D
 );%0A%09
@@ -2187,1035 +2187,8 @@
 **%0A%0A
-%09 **%0A%09 * Returns the value of the persistent attribute %7B@link #name%7D.%0A%09 * @cope.generated This method has been generated by the cope instrumentor and will be overwritten by the build process.%0A%09 *%0A */public final java.lang.String getName()%0A%09%7B%0A%09%09return (java.lang.String)get(DeleteOtherItem.name);%0A%09%7D/**%0A%0A%09 **%0A%09 * Sets a new value for the persistent attribute %7B@link #name%7D.%0A%09 * @cope.generated This method has been generated by the cope instrumentor and will be overwritten by the build process.%0A%09 *%0A */public final void setName(final java.lang.String name)%0A%09%09%09throws%0A%09%09%09%09com.exedio.cope.MandatoryViolationException%0A%09%7B%0A%09%09try%0A%09%09%7B%0A%09%09%09set(DeleteOtherItem.name,name);%0A%09%09%7D%0A%09%09catch(com.exedio.cope.LengthViolationException e)%0A%09%09%7B%0A%09%09%09throw new com.exedio.cope.NestingRuntimeException(e);%0A%09%09%7D%0A%09%09catch(com.exedio.cope.ReadOnlyViolationException e)%0A%09%09%7B%0A%09%09%09throw new com.exedio.cope.NestingRuntimeException(e);%0A%09%09%7D%0A%09%09catch(com.exedio.cope.UniqueViolationException e)%0A%09%09%7B%0A%09%09%09throw new com.exedio.cope.NestingRuntimeException(e);%0A%09%09%7D%0A%09%7D/**%0A%0A
 %09 **

make name transient