org.rhq.core.domain.content
Class PackageBits
java.lang.Object
org.rhq.core.domain.content.PackageBits
- All Implemented Interfaces:
- Serializable
public class PackageBits
- extends Object
- implements Serializable
Contains the actual package contents ("the bits") for a particular PackageVersion
.
- See Also:
- Serialized Form
Method Summary |
PackageBitsBlob |
getBlob()
|
int |
getId()
|
void |
setBlob(PackageBitsBlob blob)
For large file contents, you should use ContentManager.updateBlobStream() to write and
ContentManager.writeBlobOutToStream() to stream the binary bits and avoid a byte[]. |
void |
setId(int id)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TABLE_NAME
public static final String TABLE_NAME
- See Also:
- Constant Field Values
QUERY_PACKAGE_BITS_LOADED_STATUS_PACKAGE_VERSION_ID
public static final String QUERY_PACKAGE_BITS_LOADED_STATUS_PACKAGE_VERSION_ID
- See Also:
- Constant Field Values
DELETE_IF_NO_PACKAGE_VERSION
public static final String DELETE_IF_NO_PACKAGE_VERSION
- See Also:
- Constant Field Values
EMPTY_BLOB
public static final String EMPTY_BLOB
- Can be used as initial contents for a PackageVersion's PackageBits whenever a predictable non-null
value is required. Use as an initial value for the PackageBits.blob.bits. The value will
typically be replaced with the actual streamed content bits...
Note: This is a String and not a byte[] because gwt can't handle String.getBytes().
- See Also:
- Constant Field Values
PackageBits
public PackageBits()
getId
public int getId()
setId
public void setId(int id)
getBlob
public PackageBitsBlob getBlob()
- Returns:
- the blob wrapper. This is never null although the actual bits (PackageBitsBlob.getBits()) can be null.
For large file contents, you should use ContentManager.updateBlobStream() to write and
ContentManager.writeBlobOutToStream() to read/direct file contents into as no byte[] is used.
setBlob
public void setBlob(PackageBitsBlob blob)
- For large file contents, you should use ContentManager.updateBlobStream() to write and
ContentManager.writeBlobOutToStream() to stream the binary bits and avoid a byte[].
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.