All Downloads are FREE. Search and download functionalities are using the official Maven repository.

klass.model.meta.domain.ServiceOrderByData Maven / Gradle / Ivy

The newest version!
package klass.model.meta.domain;
import java.util.*;
import java.sql.Timestamp;
import java.sql.Date;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.*;
import java.io.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.gs.fw.common.mithra.*;
import com.gs.fw.common.mithra.attribute.*;
import com.gs.fw.common.mithra.util.*;
import com.gs.fw.common.mithra.notification.*;
import com.gs.fw.common.mithra.notification.listener.*;
import com.gs.fw.common.mithra.list.cursor.Cursor;
import com.gs.fw.common.mithra.bulkloader.*;
import com.gs.fw.common.mithra.finder.PrintablePreparedStatement;
import com.gs.fw.common.mithra.finder.RelatedFinder;
import com.gs.fw.common.mithra.cache.offheap.MithraOffHeapDataObject;
import com.gs.fw.common.mithra.cache.offheap.OffHeapDataStorage;
/**
* This file was automatically generated using Mithra 18.0.0. Please do not modify it.
* Add custom logic to its subclass instead.
*/
public class ServiceOrderByData
implements MithraDataObject
{
	private Object[] _relationships;
	private String orderByDirection;
	private int ordinal;
	private String serviceGroupName;
	private String serviceUrlString;
	private String serviceVerb;
	private long thisMemberReferencePathId;
	public boolean isOrderByDirectionNull()
	{
		return this.getOrderByDirection() == null;
	}

	public boolean isOrdinalNull()
	{
		return false;
	}

	public final boolean isServiceGroupNameNull()
	{
		return this.getServiceGroupName() == null;
	}

	public final boolean isServiceUrlStringNull()
	{
		return this.getServiceUrlString() == null;
	}

	public final boolean isServiceVerbNull()
	{
		return this.getServiceVerb() == null;
	}

	public final boolean isThisMemberReferencePathIdNull()
	{
		return false;
	}

	public void zSerializeFullData(ObjectOutput out) throws IOException
	{
		zWriteNullBits(out);
		out.writeObject(this.orderByDirection);
		out.writeInt(this.ordinal);
		out.writeObject(this.serviceGroupName);
		out.writeObject(this.serviceUrlString);
		out.writeObject(this.serviceVerb);
		out.writeLong(this.thisMemberReferencePathId);
	}

	private void zWriteNullBits(ObjectOutput out) throws IOException
	{
	}

	public String getOrderByDirection()
	{
		return this.orderByDirection;
	}

	public int zGetOrderByDirectionAsInt()
	{
		return StringPool.getInstance().getOffHeapAddressWithoutAdding(orderByDirection);
	}

	public void setOrderByDirection(String value)
	{
		this.orderByDirection = StringPool.getInstance().getOrAddToCache(value, ServiceOrderByFinder.isFullCache());
	}

	public void setOrderByDirectionNull()
	{
		this.setOrderByDirection(null);
	}

	public int getOrdinal()
	{
		return this.ordinal;
	}

	public void setOrdinal(int value)
	{
		this.ordinal = value;
	}

	public void setOrdinalNull()
	{
		throw new RuntimeException("should never be called");
	}

	public String getServiceGroupName()
	{
		return this.serviceGroupName;
	}

	public int zGetServiceGroupNameAsInt()
	{
		return StringPool.getInstance().getOffHeapAddressWithoutAdding(serviceGroupName);
	}

	public void setServiceGroupName(String value)
	{
		this.serviceGroupName = StringPool.getInstance().getOrAddToCache(value, ServiceOrderByFinder.isFullCache());
	}

	public void setServiceGroupNameNull()
	{
		this.setServiceGroupName(null);
	}

	public String getServiceUrlString()
	{
		return this.serviceUrlString;
	}

	public int zGetServiceUrlStringAsInt()
	{
		return StringPool.getInstance().getOffHeapAddressWithoutAdding(serviceUrlString);
	}

	public void setServiceUrlString(String value)
	{
		this.serviceUrlString = StringPool.getInstance().getOrAddToCache(value, ServiceOrderByFinder.isFullCache());
	}

	public void setServiceUrlStringNull()
	{
		this.setServiceUrlString(null);
	}

	public String getServiceVerb()
	{
		return this.serviceVerb;
	}

	public int zGetServiceVerbAsInt()
	{
		return StringPool.getInstance().getOffHeapAddressWithoutAdding(serviceVerb);
	}

	public void setServiceVerb(String value)
	{
		this.serviceVerb = StringPool.getInstance().getOrAddToCache(value, ServiceOrderByFinder.isFullCache());
	}

	public void setServiceVerbNull()
	{
		this.setServiceVerb(null);
	}

	public long getThisMemberReferencePathId()
	{
		return this.thisMemberReferencePathId;
	}

	public void setThisMemberReferencePathId(long value)
	{
		this.thisMemberReferencePathId = value;
	}

	public void setThisMemberReferencePathIdNull()
	{
		throw new RuntimeException("should never be called");
	}

	protected void copyInto(ServiceOrderByData copy, boolean withRelationships)
	{
		copy.orderByDirection = this.orderByDirection;
		copy.ordinal = this.ordinal;
		copy.serviceGroupName = this.serviceGroupName;
		copy.serviceUrlString = this.serviceUrlString;
		copy.serviceVerb = this.serviceVerb;
		copy.thisMemberReferencePathId = this.thisMemberReferencePathId;
		if (withRelationships)
		{
			if (_relationships != null)
			{
				copy._relationships = new Object[2];
				System.arraycopy(_relationships, 0, copy._relationships, 0, _relationships.length);
			}
		}
	}

	public void zDeserializeFullData(ObjectInput in) throws IOException, ClassNotFoundException
	{
		this.orderByDirection = StringPool.getInstance().getOrAddToCache((String)in.readObject(), ServiceOrderByFinder.isFullCache());
		this.ordinal = in.readInt();
		this.serviceGroupName = StringPool.getInstance().getOrAddToCache((String)in.readObject(), ServiceOrderByFinder.isFullCache());
		this.serviceUrlString = StringPool.getInstance().getOrAddToCache((String)in.readObject(), ServiceOrderByFinder.isFullCache());
		this.serviceVerb = StringPool.getInstance().getOrAddToCache((String)in.readObject(), ServiceOrderByFinder.isFullCache());
		this.thisMemberReferencePathId = in.readLong();
	}

	public boolean hasSamePrimaryKeyIgnoringAsOfAttributes(MithraDataObject other)
	{
		if (this == other) return true;
		final ServiceOrderByData otherData = (ServiceOrderByData) other;
		if (!isServiceGroupNameNull() ? !getServiceGroupName().equals(otherData.getServiceGroupName()) : !otherData.isServiceGroupNameNull())
		{
			return false;
		}

		if (!isServiceUrlStringNull() ? !getServiceUrlString().equals(otherData.getServiceUrlString()) : !otherData.isServiceUrlStringNull())
		{
			return false;
		}

		if (!isServiceVerbNull() ? !getServiceVerb().equals(otherData.getServiceVerb()) : !otherData.isServiceVerbNull())
		{
			return false;
		}

		if (getThisMemberReferencePathId() != otherData.getThisMemberReferencePathId())
		{
			return false;
		}

		return true;
	}

	public void zSerializePrimaryKey(ObjectOutput out) throws IOException
	{
		out.writeObject(this.serviceGroupName);
		out.writeObject(this.serviceUrlString);
		out.writeObject(this.serviceVerb);
		out.writeLong(this.thisMemberReferencePathId);
	}

	public void zDeserializePrimaryKey(ObjectInput in) throws IOException, ClassNotFoundException
	{
		this.serviceGroupName = StringPool.getInstance().getOrAddToCache((String)in.readObject(), ServiceOrderByFinder.isFullCache());
		this.serviceUrlString = StringPool.getInstance().getOrAddToCache((String)in.readObject(), ServiceOrderByFinder.isFullCache());
		this.serviceVerb = StringPool.getInstance().getOrAddToCache((String)in.readObject(), ServiceOrderByFinder.isFullCache());
		this.thisMemberReferencePathId = in.readLong();
	}

	public void clearRelationships()
	{
		_relationships = null;
		clearAllDirectRefs();
	}

	public void clearAllDirectRefs()
	{
	}

	public Object getThisMemberReferencePath()
	{
		if (_relationships != null)
		{
			return _relationships[1];
		}

		return null;
	}

	public void setThisMemberReferencePath(Object related)
	{
		if (_relationships == null)
		{
			_relationships = new Object[2];
		}

		_relationships[1] = related;
	}

	public Object getService()
	{
		if (_relationships != null)
		{
			return _relationships[0];
		}

		return null;
	}

	public void setService(Object related)
	{
		if (_relationships == null)
		{
			_relationships = new Object[2];
		}

		_relationships[0] = related;
	}

	public void zSerializeRelationships(ObjectOutputStream out) throws IOException
	{
		if (_relationships == null)
		{
			out.writeInt(0);
			return;
		}

		out.writeInt(_relationships.length);
		for(int i=0;i<_relationships.length;i++)
		{
			out.writeObject(_relationships[i]);
		}
	}

	public void zDeserializeRelationships(ObjectInputStream in) throws IOException, ClassNotFoundException
	{
		int total = in.readInt();
		if(total > 0)
		{
			_relationships = new Object[total];
			for(int i=0;i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy