klass.model.meta.domain.AssociationEndData 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 AssociationEndData
implements MithraDataObject
{
private Object[] _relationships;
private String associationName;
private String direction;
private String multiplicity;
private String name;
private int ordinal;
private String owningClassName;
private String resultTypeName;
public boolean isAssociationNameNull()
{
return this.getAssociationName() == null;
}
public boolean isDirectionNull()
{
return this.getDirection() == null;
}
public boolean isMultiplicityNull()
{
return this.getMultiplicity() == null;
}
public final boolean isNameNull()
{
return this.getName() == null;
}
public boolean isOrdinalNull()
{
return false;
}
public final boolean isOwningClassNameNull()
{
return this.getOwningClassName() == null;
}
public boolean isResultTypeNameNull()
{
return this.getResultTypeName() == null;
}
public void zSerializeFullData(ObjectOutput out) throws IOException
{
zWriteNullBits(out);
out.writeObject(this.associationName);
out.writeObject(this.direction);
out.writeObject(this.multiplicity);
out.writeObject(this.name);
out.writeInt(this.ordinal);
out.writeObject(this.owningClassName);
out.writeObject(this.resultTypeName);
}
private void zWriteNullBits(ObjectOutput out) throws IOException
{
}
public String getAssociationName()
{
return this.associationName;
}
public int zGetAssociationNameAsInt()
{
return StringPool.getInstance().getOffHeapAddressWithoutAdding(associationName);
}
public void setAssociationName(String value)
{
this.associationName = StringPool.getInstance().getOrAddToCache(value, AssociationEndFinder.isFullCache());
}
public void setAssociationNameNull()
{
this.setAssociationName(null);
}
public String getDirection()
{
return this.direction;
}
public int zGetDirectionAsInt()
{
return StringPool.getInstance().getOffHeapAddressWithoutAdding(direction);
}
public void setDirection(String value)
{
this.direction = StringPool.getInstance().getOrAddToCache(value, AssociationEndFinder.isFullCache());
}
public void setDirectionNull()
{
this.setDirection(null);
}
public String getMultiplicity()
{
return this.multiplicity;
}
public int zGetMultiplicityAsInt()
{
return StringPool.getInstance().getOffHeapAddressWithoutAdding(multiplicity);
}
public void setMultiplicity(String value)
{
this.multiplicity = StringPool.getInstance().getOrAddToCache(value, AssociationEndFinder.isFullCache());
}
public void setMultiplicityNull()
{
this.setMultiplicity(null);
}
public String getName()
{
return this.name;
}
public int zGetNameAsInt()
{
return StringPool.getInstance().getOffHeapAddressWithoutAdding(name);
}
public void setName(String value)
{
this.name = StringPool.getInstance().getOrAddToCache(value, AssociationEndFinder.isFullCache());
}
public void setNameNull()
{
this.setName(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 getOwningClassName()
{
return this.owningClassName;
}
public int zGetOwningClassNameAsInt()
{
return StringPool.getInstance().getOffHeapAddressWithoutAdding(owningClassName);
}
public void setOwningClassName(String value)
{
this.owningClassName = StringPool.getInstance().getOrAddToCache(value, AssociationEndFinder.isFullCache());
}
public void setOwningClassNameNull()
{
this.setOwningClassName(null);
}
public String getResultTypeName()
{
return this.resultTypeName;
}
public int zGetResultTypeNameAsInt()
{
return StringPool.getInstance().getOffHeapAddressWithoutAdding(resultTypeName);
}
public void setResultTypeName(String value)
{
this.resultTypeName = StringPool.getInstance().getOrAddToCache(value, AssociationEndFinder.isFullCache());
}
public void setResultTypeNameNull()
{
this.setResultTypeName(null);
}
protected void copyInto(AssociationEndData copy, boolean withRelationships)
{
copy.associationName = this.associationName;
copy.direction = this.direction;
copy.multiplicity = this.multiplicity;
copy.name = this.name;
copy.ordinal = this.ordinal;
copy.owningClassName = this.owningClassName;
copy.resultTypeName = this.resultTypeName;
if (withRelationships)
{
if (_relationships != null)
{
copy._relationships = new Object[7];
System.arraycopy(_relationships, 0, copy._relationships, 0, _relationships.length);
}
}
}
public void zDeserializeFullData(ObjectInput in) throws IOException, ClassNotFoundException
{
this.associationName = StringPool.getInstance().getOrAddToCache((String)in.readObject(), AssociationEndFinder.isFullCache());
this.direction = StringPool.getInstance().getOrAddToCache((String)in.readObject(), AssociationEndFinder.isFullCache());
this.multiplicity = StringPool.getInstance().getOrAddToCache((String)in.readObject(), AssociationEndFinder.isFullCache());
this.name = StringPool.getInstance().getOrAddToCache((String)in.readObject(), AssociationEndFinder.isFullCache());
this.ordinal = in.readInt();
this.owningClassName = StringPool.getInstance().getOrAddToCache((String)in.readObject(), AssociationEndFinder.isFullCache());
this.resultTypeName = StringPool.getInstance().getOrAddToCache((String)in.readObject(), AssociationEndFinder.isFullCache());
}
public boolean hasSamePrimaryKeyIgnoringAsOfAttributes(MithraDataObject other)
{
if (this == other) return true;
final AssociationEndData otherData = (AssociationEndData) other;
if (!isNameNull() ? !getName().equals(otherData.getName()) : !otherData.isNameNull())
{
return false;
}
if (!isOwningClassNameNull() ? !getOwningClassName().equals(otherData.getOwningClassName()) : !otherData.isOwningClassNameNull())
{
return false;
}
return true;
}
public void zSerializePrimaryKey(ObjectOutput out) throws IOException
{
out.writeObject(this.name);
out.writeObject(this.owningClassName);
}
public void zDeserializePrimaryKey(ObjectInput in) throws IOException, ClassNotFoundException
{
this.name = StringPool.getInstance().getOrAddToCache((String)in.readObject(), AssociationEndFinder.isFullCache());
this.owningClassName = StringPool.getInstance().getOrAddToCache((String)in.readObject(), AssociationEndFinder.isFullCache());
}
public void clearRelationships()
{
_relationships = null;
clearAllDirectRefs();
}
public void clearAllDirectRefs()
{
}
public Object getResultType()
{
if (_relationships != null)
{
return _relationships[6];
}
return null;
}
public void setResultType(Object related)
{
if (_relationships == null)
{
_relationships = new Object[7];
}
_relationships[6] = related;
}
public Object getAssociationEndModifiers()
{
if (_relationships != null)
{
return _relationships[0];
}
return null;
}
public void setAssociationEndModifiers(Object related)
{
if (_relationships == null)
{
_relationships = new Object[7];
}
_relationships[0] = related;
}
public Object getOrderBys()
{
if (_relationships != null)
{
return _relationships[2];
}
return null;
}
public void setOrderBys(Object related)
{
if (_relationships == null)
{
_relationships = new Object[7];
}
_relationships[2] = related;
}
public Object getOwningAssociation()
{
if (_relationships != null)
{
return _relationships[3];
}
return null;
}
public void setOwningAssociation(Object related)
{
if (_relationships == null)
{
_relationships = new Object[7];
}
_relationships[3] = related;
}
public Object getOwningClass()
{
if (_relationships != null)
{
return _relationships[4];
}
return null;
}
public void setOwningClass(Object related)
{
if (_relationships == null)
{
_relationships = new Object[7];
}
_relationships[4] = related;
}
public Object getMemberReferencePaths()
{
if (_relationships != null)
{
return _relationships[1];
}
return null;
}
public void setMemberReferencePaths(Object related)
{
if (_relationships == null)
{
_relationships = new Object[7];
}
_relationships[1] = related;
}
public Object getProjectionsWithAssociationEnd()
{
if (_relationships != null)
{
return _relationships[5];
}
return null;
}
public void setProjectionsWithAssociationEnd(Object related)
{
if (_relationships == null)
{
_relationships = new Object[7];
}
_relationships[5] = 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