Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
private int __id = -1;
public int __getId() {
    return __id;
}
public void __setId(int id) {
    this.__id= id;
}
public String getRecordStoreName() {
    return "FR3080657";
}
public void __deserialize(byte[] buffer, boolean lazy) throws java.lang.Exception {
    java.io.DataInputStream dis = new java.io.DataInputStream(new java.io.ByteArrayInputStream(buffer));
    net.sourceforge.floggy.persistence.impl.PersistableMetadata metadata = net.sourceforge.floggy.persistence.impl.PersistableMetadataManager.getRMSBasedMetadata("net.sourceforge.floggy.persistence.fr3080657.FR3080657");
    java.lang.String recordStoreVersion = metadata.getRecordStoreVersion();
    if (recordStoreVersion == null) {
        recordStoreVersion = net.sourceforge.floggy.persistence.impl.PersistableMetadataManager.getRMSVersion();
    }
    if (recordStoreVersion.equals(net.sourceforge.floggy.persistence.impl.PersistableMetadataManager.VERSION_1_4_0)) {
        dis.skipBytes(4);
    }
    this.name= net.sourceforge.floggy.persistence.impl.SerializationManager.readString(dis);
    dis.close();
}
public byte[] __serialize(boolean isRealObject) throws java.lang.Exception {
    net.sourceforge.floggy.persistence.impl.FloggyOutputStream fos= new net.sourceforge.floggy.persistence.impl.FloggyOutputStream();
    if (isRealObject) {
        fos.writeInt(1);
        isRealObject = false;
        } else {
        fos.writeInt(0);
    }
    net.sourceforge.floggy.persistence.impl.SerializationManager.writeString(fos, name);
    fos.flush();
    return fos.toByteArray();
}
public void __delete() throws java.lang.Exception {
}
public Object __getIndexValue(String indexName) {
    if ("byName".equals(indexName)) {
        return this.name;
    }
    return null;
}
New to GrepCode? Check out our FAQ X