klass.model.meta.domain.MinPropertyValidationData 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 MinPropertyValidationData
implements MithraDataObject
{
private Object[] _relationships;
private String classifierName;
private int number;
private String propertyName;
public final boolean isClassifierNameNull()
{
return this.getClassifierName() == null;
}
public boolean isNumberNull()
{
return false;
}
public final boolean isPropertyNameNull()
{
return this.getPropertyName() == null;
}
public void zSerializeFullData(ObjectOutput out) throws IOException
{
zWriteNullBits(out);
out.writeObject(this.classifierName);
out.writeInt(this.number);
out.writeObject(this.propertyName);
}
private void zWriteNullBits(ObjectOutput out) throws IOException
{
}
public String getClassifierName()
{
return this.classifierName;
}
public int zGetClassifierNameAsInt()
{
return StringPool.getInstance().getOffHeapAddressWithoutAdding(classifierName);
}
public void setClassifierName(String value)
{
this.classifierName = StringPool.getInstance().getOrAddToCache(value, MinPropertyValidationFinder.isFullCache());
}
public void setClassifierNameNull()
{
this.setClassifierName(null);
}
public int getNumber()
{
return this.number;
}
public void setNumber(int value)
{
this.number = value;
}
public void setNumberNull()
{
throw new RuntimeException("should never be called");
}
public String getPropertyName()
{
return this.propertyName;
}
public int zGetPropertyNameAsInt()
{
return StringPool.getInstance().getOffHeapAddressWithoutAdding(propertyName);
}
public void setPropertyName(String value)
{
this.propertyName = StringPool.getInstance().getOrAddToCache(value, MinPropertyValidationFinder.isFullCache());
}
public void setPropertyNameNull()
{
this.setPropertyName(null);
}
protected void copyInto(MinPropertyValidationData copy, boolean withRelationships)
{
copy.classifierName = this.classifierName;
copy.number = this.number;
copy.propertyName = this.propertyName;
if (withRelationships)
{
if (_relationships != null)
{
copy._relationships = new Object[1];
System.arraycopy(_relationships, 0, copy._relationships, 0, _relationships.length);
}
}
}
public void zDeserializeFullData(ObjectInput in) throws IOException, ClassNotFoundException
{
this.classifierName = StringPool.getInstance().getOrAddToCache((String)in.readObject(), MinPropertyValidationFinder.isFullCache());
this.number = in.readInt();
this.propertyName = StringPool.getInstance().getOrAddToCache((String)in.readObject(), MinPropertyValidationFinder.isFullCache());
}
public boolean hasSamePrimaryKeyIgnoringAsOfAttributes(MithraDataObject other)
{
if (this == other) return true;
final MinPropertyValidationData otherData = (MinPropertyValidationData) other;
if (!isClassifierNameNull() ? !getClassifierName().equals(otherData.getClassifierName()) : !otherData.isClassifierNameNull())
{
return false;
}
if (!isPropertyNameNull() ? !getPropertyName().equals(otherData.getPropertyName()) : !otherData.isPropertyNameNull())
{
return false;
}
return true;
}
public void zSerializePrimaryKey(ObjectOutput out) throws IOException
{
out.writeObject(this.classifierName);
out.writeObject(this.propertyName);
}
public void zDeserializePrimaryKey(ObjectInput in) throws IOException, ClassNotFoundException
{
this.classifierName = StringPool.getInstance().getOrAddToCache((String)in.readObject(), MinPropertyValidationFinder.isFullCache());
this.propertyName = StringPool.getInstance().getOrAddToCache((String)in.readObject(), MinPropertyValidationFinder.isFullCache());
}
public void clearRelationships()
{
_relationships = null;
clearAllDirectRefs();
}
public void clearAllDirectRefs()
{
}
public Object getPrimitiveProperty()
{
if (_relationships != null)
{
return _relationships[0];
}
return null;
}
public void setPrimitiveProperty(Object related)
{
if (_relationships == null)
{
_relationships = new Object[1];
}
_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