public Boolean getSerializedElement() { return getInternal().isSerializedElement(); }
/** * Accessor for whether the element is serialised into this table. * This can be a serialised persistable, or a serialised simple type * @return Whether the element is serialised. */ public boolean isSerialisedElement() { if (mmd.getCollection() != null && mmd.getCollection().isSerializedElement()) { return true; } return false; }
public String getXMLForMetaData(CollectionMetaData collmd, String prefix, String indent) { StringBuilder str = new StringBuilder(); str.append(prefix).append("<collection element-type=\"").append(collmd.getElementType()).append("\""); if (collmd.isEmbeddedElement()) { str.append(" embedded-element=\"").append(collmd.isEmbeddedElement()).append("\""); } if (collmd.isDependentElement()) { str.append(" dependent-element=\"").append(collmd.isDependentElement()).append("\""); } if (collmd.isSerializedElement()) { str.append(" serialized-element=\"").append(collmd.isSerializedElement()).append("\""); } str.append(">\n"); // Add extensions processExtensions(collmd.getExtensions(), str, prefix, indent); str.append(prefix).append("</collection>\n"); return str.toString(); }
/** * Accessor for whether the element is a persistable(serialised) * @return Whether the element is PC and is serialised */ public boolean isSerialisedElementPC() { if (mmd.getCollection() != null && mmd.getCollection().isSerializedElement() && mmd.getCollection().elementIsPersistent()) { return true; } return false; }
if (ownerMemberMetaData.getCollection().isSerializedElement() || ownerMemberMetaData.getCollection().isEmbeddedElement())
if (ownerMemberMetaData.getCollection().isSerializedElement() || ownerMemberMetaData.getCollection().isEmbeddedElement())
/** * Accessor for whether the element is embedded into this table. * This can be an embedded persistable, or an embedded simple type * @return Whether the element is embedded. */ public boolean isEmbeddedElement() { if (mmd.getCollection() != null && mmd.getCollection().isSerializedElement()) { // Serialised takes precedence return false; } else if (mmd.getCollection() != null && mmd.getCollection().isEmbeddedElement()) { return true; } return false; }
if (dependent && !collmd.isEmbeddedElement() && !collmd.isSerializedElement())
if (mmd.getCollection().isSerializedElement())
if (mmd.getCollection().isSerializedElement())
if (mmd.getCollection().isSerializedElement())
if (mmd.getCollection() != null && mmd.getCollection().isSerializedElement())
return (mmd.getCollection() != null ? mmd.getCollection().isSerializedElement() : false);
if (ammd.hasCollection() && ammd.getCollection().isSerializedElement()) { throw new InvalidMetaDataException(GAE_LOCALISER, "AppEngine.MetaData.CollectionWithSerializedElementInvalid", ammd.getFullFieldName());
if (mmd.getCollection().isSerializedElement())
boolean serialised = ((mmd.hasCollection() && mmd.getCollection().isSerializedElement()) || (mmd.hasArray() && mmd.getArray().isSerializedElement())); boolean embeddedPC = (mmd.hasCollection() && mmd.getCollection().elementIsPersistent() && mmd.getCollection().isEmbeddedElement()) ||
sqlType = colmds[index].getSqlType(); if (mmd.getCollection() != null && mmd.getCollection().isSerializedElement())