Example usage for org.hibernate.cache.spi.entry CacheEntry getSubclass

List of usage examples for org.hibernate.cache.spi.entry CacheEntry getSubclass

Introduction

In this page you can find the example usage for org.hibernate.cache.spi.entry CacheEntry getSubclass.

Prototype

String getSubclass();

Source Link

Document

Hibernate stores all entries pertaining to a given entity hierarchy in a single region.

Usage

From source file:com.hazelcast.hibernate.serialization.Hibernate42CacheEntrySerializer.java

License:Open Source License

private static void writeDisassembled(ObjectDataOutput out, CacheEntry object) throws IOException {

    Serializable[] disassembledState = object.getDisassembledState();
    out.writeInt(disassembledState.length);
    for (Serializable state : disassembledState) {
        out.writeObject(state);//from  www. j  a v a2s.  com
    }

    out.writeUTF(object.getSubclass());
    out.writeBoolean(object.areLazyPropertiesUnfetched());
    out.writeObject(object.getVersion());

}

From source file:com.hazelcast.hibernate.serialization.Hibernate51CacheEntrySerializer.java

License:Open Source License

private static void writeDisassembled(final ObjectDataOutput out, final CacheEntry object) throws IOException {

    Serializable[] disassembledState = object.getDisassembledState();
    out.writeInt(disassembledState.length);
    for (Serializable state : disassembledState) {
        out.writeObject(state);/*from  w w w .  jav a2 s  .  c  om*/
    }

    out.writeUTF(object.getSubclass());
    out.writeObject(object.getVersion());
}

From source file:com.hazelcast.hibernate.serialization.Hibernate5CacheEntrySerializer.java

License:Open Source License

private static void writeDisassembled(final ObjectDataOutput out, final CacheEntry object) throws IOException {

    Serializable[] disassembledState = object.getDisassembledState();
    out.writeInt(disassembledState.length);
    for (Serializable state : disassembledState) {
        out.writeObject(state);/*from w w w.j a va  2s. c  o m*/
    }

    out.writeUTF(object.getSubclass());
    out.writeBoolean(object.areLazyPropertiesUnfetched());
    out.writeObject(object.getVersion());
}