org.rhq.core.domain.drift
Class JPADriftFileBits

java.lang.Object
  extended by org.rhq.core.domain.drift.AbstractJPADriftFile
      extended by org.rhq.core.domain.drift.JPADriftFileBits
All Implemented Interfaces:
Serializable

public class JPADriftFileBits
extends AbstractJPADriftFile
implements Serializable

A JPADriftFile represents one unique piece of content used for drift tracking. Note that JPADriftFileBits provides access to the bits through java.sql.Blob. This entity can not be used client-side (gwt) whereas its sister class, JPADriftFile, can. Both entities share the same table and abstract superclass. See RHQDomain.gwt.xml for how to exclude unwanted domain classes from the gwt compile.

See Also:
Serialized Form

Field Summary
static String QUERY_FIND_BY_ID
           
 
Fields inherited from class org.rhq.core.domain.drift.AbstractJPADriftFile
ctime, dataSize, status
 
Constructor Summary
protected JPADriftFileBits()
           
  JPADriftFileBits(String hashId)
           
 
Method Summary
 Blob getBlob()
           
 InputStream getData()
           
 String getHashId()
           
 void setData(Blob blob)
           
 void setHashId(String hashId)
           
 String toString()
           
 
Methods inherited from class org.rhq.core.domain.drift.AbstractJPADriftFile
getCtime, getDataSize, getStatus, setDataSize, setStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_FIND_BY_ID

public static final String QUERY_FIND_BY_ID
See Also:
Constant Field Values
Constructor Detail

JPADriftFileBits

protected JPADriftFileBits()

JPADriftFileBits

public JPADriftFileBits(String hashId)
Method Detail

getHashId

public String getHashId()

setHashId

public void setHashId(String hashId)

getBlob

public Blob getBlob()

getData

public InputStream getData()
                    throws SQLException
Throws:
SQLException

setData

public void setData(Blob blob)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.