ReportMill 10 API

com.reportmill.datasource
Class RMResource

java.lang.Object
  extended by com.reportmill.datasource.RMResource
Direct Known Subclasses:
RMJDBCResource, RMXMLResource

public class RMResource
extends java.lang.Object

An inner class to represent a datasource resource.


Constructor Summary
RMResource(RMDataSource aDataSource, java.lang.String aName, java.lang.Object theBytes, java.lang.String aQueryName)
          Creates a new resource.
 
Method Summary
 byte[] getBytes()
          Returns the resource bytes.
 RMDataSource getDataSource()
          Returns the originating datasource.
 java.lang.String getName()
          Returns the resource name.
 java.lang.String getQueryName()
          Returns the query name associated with the resource.
 boolean isDirty()
          Returns whether this resource has changes that need saving.
 java.lang.String remove()
          Removes this resource from the datasource.
 java.lang.String save()
          Saves this resource to the datasource.
 void setBytes(byte[] bytes)
          Sets the resource bytes.
 void setDirty(boolean aValue)
          Sets wether thisr esource has changes that need saving.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMResource

public RMResource(RMDataSource aDataSource,
                  java.lang.String aName,
                  java.lang.Object theBytes,
                  java.lang.String aQueryName)
Creates a new resource.

Method Detail

getDataSource

public RMDataSource getDataSource()
Returns the originating datasource.


getName

public java.lang.String getName()
Returns the resource name.


getBytes

public byte[] getBytes()
Returns the resource bytes.


setBytes

public void setBytes(byte[] bytes)
Sets the resource bytes.


getQueryName

public java.lang.String getQueryName()
Returns the query name associated with the resource.


isDirty

public boolean isDirty()
Returns whether this resource has changes that need saving.


setDirty

public void setDirty(boolean aValue)
Sets wether thisr esource has changes that need saving.


save

public java.lang.String save()
Saves this resource to the datasource.


remove

public java.lang.String remove()
Removes this resource from the datasource.


ReportMill 10 API