org.jboss.dna.connector.store.jpa.model.basic
Class LargeValueEntity
java.lang.Object
org.jboss.dna.connector.store.jpa.model.basic.LargeValueEntity
public class LargeValueEntity
- extends Object
A single property value that is too large to be stored on the individual node, and which will be shared among all properties
that have the same value. Note that the large values are stored independently of workspace, so one large value may be shared by
properties of nodes in different workspaces.
LargeValueEntity
public LargeValueEntity()
getId
public LargeValueId getId()
- Returns:
- id
setId
public void setId(LargeValueId id)
- Parameters:
id
- Sets id to the specified value.
getLength
public long getLength()
- Returns:
- length
setLength
public void setLength(long length)
- Parameters:
length
- Sets length to the specified value.
getType
public PropertyType getType()
- Returns:
- type
setType
public void setType(PropertyType type)
- Parameters:
type
- Sets type to the specified value.
getData
public byte[] getData()
- Returns:
- data
setData
public void setData(byte[] data)
- Parameters:
data
- Sets data to the specified value.
isCompressed
public boolean isCompressed()
- Returns:
- compressed
setCompressed
public void setCompressed(boolean compressed)
- Parameters:
compressed
- Sets compressed to the specified value.
hashCode
public int hashCode()
-
- Overrides:
hashCode
in class Object
- See Also:
Object.hashCode()
equals
public boolean equals(Object obj)
-
- Overrides:
equals
in class Object
- See Also:
Object.equals(java.lang.Object)
toString
public String toString()
-
- Overrides:
toString
in class Object
- See Also:
Object.toString()
deleteUnused
public static int deleteUnused(javax.persistence.EntityManager manager)
- Delete all unused large value entities.
- Parameters:
manager
- the manager; never null
- Returns:
- the number of deleted large values
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.