Class MetadataEntity
- java.lang.Object
-
- org.infinispan.persistence.jpa.impl.MetadataEntity
-
@Entity public class MetadataEntity extends Object
Entity which should hold serialized metadata- Author:
- Radim Vansa <rvansa@redhat.com>
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXPIRATION
-
Constructor Summary
Constructors Constructor Description MetadataEntity()MetadataEntity(org.infinispan.persistence.spi.MarshallableEntry me)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCreated()longgetExpiration()byte[]getInternalMetadata()MetadataEntityKeygetKey()byte[]getKeyBytes()longgetLastUsed()byte[]getMetadata()intgetVersion()booleanhasBytes()voidsetCreated(long created)voidsetExpiration(long expiration)voidsetKey(MetadataEntityKey key)voidsetKeyBytes(byte[] keyBytes)voidsetLastUsed(long lastUsed)voidsetMetadata(byte[] metadata)voidsetVersion(int version)
-
-
-
Field Detail
-
EXPIRATION
public static final String EXPIRATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getKey
public MetadataEntityKey getKey()
-
setKey
public void setKey(MetadataEntityKey key)
-
getKeyBytes
public byte[] getKeyBytes()
-
setKeyBytes
public void setKeyBytes(byte[] keyBytes)
-
getMetadata
public byte[] getMetadata()
-
setMetadata
public void setMetadata(byte[] metadata)
-
getExpiration
public long getExpiration()
-
setExpiration
public void setExpiration(long expiration)
-
getCreated
public long getCreated()
-
setCreated
public void setCreated(long created)
-
getLastUsed
public long getLastUsed()
-
setLastUsed
public void setLastUsed(long lastUsed)
-
getVersion
public int getVersion()
-
setVersion
public void setVersion(int version)
-
getInternalMetadata
public byte[] getInternalMetadata()
-
hasBytes
public boolean hasBytes()
-
-