klass.model.meta.domain.OperatorCriteriaData 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 OperatorCriteriaData
implements MithraDataObject
{
private Object[] _relationships;
private long id;
private String operator;
private long sourceExpressionId;
private long targetExpressionId;
public final boolean isIdNull()
{
return false;
}
public boolean isOperatorNull()
{
return this.getOperator() == null;
}
public boolean isSourceExpressionIdNull()
{
return false;
}
public boolean isTargetExpressionIdNull()
{
return false;
}
public void zSerializeFullData(ObjectOutput out) throws IOException
{
zWriteNullBits(out);
out.writeLong(this.id);
out.writeObject(this.operator);
out.writeLong(this.sourceExpressionId);
out.writeLong(this.targetExpressionId);
}
private void zWriteNullBits(ObjectOutput out) throws IOException
{
}
public long getId()
{
return this.id;
}
public void setId(long value)
{
this.id = value;
}
public void setIdNull()
{
throw new RuntimeException("should never be called");
}
public String getOperator()
{
return this.operator;
}
public int zGetOperatorAsInt()
{
return StringPool.getInstance().getOffHeapAddressWithoutAdding(operator);
}
public void setOperator(String value)
{
this.operator = StringPool.getInstance().getOrAddToCache(value, OperatorCriteriaFinder.isFullCache());
}
public void setOperatorNull()
{
this.setOperator(null);
}
public long getSourceExpressionId()
{
return this.sourceExpressionId;
}
public void setSourceExpressionId(long value)
{
this.sourceExpressionId = value;
}
public void setSourceExpressionIdNull()
{
throw new RuntimeException("should never be called");
}
public long getTargetExpressionId()
{
return this.targetExpressionId;
}
public void setTargetExpressionId(long value)
{
this.targetExpressionId = value;
}
public void setTargetExpressionIdNull()
{
throw new RuntimeException("should never be called");
}
protected void copyInto(OperatorCriteriaData copy, boolean withRelationships)
{
copy.id = this.id;
copy.operator = this.operator;
copy.sourceExpressionId = this.sourceExpressionId;
copy.targetExpressionId = this.targetExpressionId;
if (withRelationships)
{
if (_relationships != null)
{
copy._relationships = new Object[3];
System.arraycopy(_relationships, 0, copy._relationships, 0, _relationships.length);
}
}
}
public void zDeserializeFullData(ObjectInput in) throws IOException, ClassNotFoundException
{
this.id = in.readLong();
this.operator = StringPool.getInstance().getOrAddToCache((String)in.readObject(), OperatorCriteriaFinder.isFullCache());
this.sourceExpressionId = in.readLong();
this.targetExpressionId = in.readLong();
}
public boolean hasSamePrimaryKeyIgnoringAsOfAttributes(MithraDataObject other)
{
if (this == other) return true;
final OperatorCriteriaData otherData = (OperatorCriteriaData) other;
if (getId() != otherData.getId())
{
return false;
}
return true;
}
public void zSerializePrimaryKey(ObjectOutput out) throws IOException
{
out.writeLong(this.id);
}
public void zDeserializePrimaryKey(ObjectInput in) throws IOException, ClassNotFoundException
{
this.id = in.readLong();
}
public void clearRelationships()
{
_relationships = null;
clearAllDirectRefs();
}
public void clearAllDirectRefs()
{
}
public Object getSourceExpressionValue()
{
if (_relationships != null)
{
return _relationships[1];
}
return null;
}
public void setSourceExpressionValue(Object related)
{
if (_relationships == null)
{
_relationships = new Object[3];
}
_relationships[1] = related;
}
public Object getTargetExpressionValue()
{
if (_relationships != null)
{
return _relationships[2];
}
return null;
}
public void setTargetExpressionValue(Object related)
{
if (_relationships == null)
{
_relationships = new Object[3];
}
_relationships[2] = related;
}
public Object getCriteriaSuperClass()
{
if (_relationships != null)
{
return _relationships[0];
}
return null;
}
public void setCriteriaSuperClass(Object related)
{
if (_relationships == null)
{
_relationships = new Object[3];
}
_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