|
ReportMill 12 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.reportmill.base.RMObject
com.reportmill.datasource.RMDataSource
com.reportmill.datasource.RMFileDataSource
public class RMFileDataSource
A datasource to read/write data and files to a file system.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.reportmill.datasource.RMDataSource |
|---|
RMDataSource.EntityResolver |
| Constructor Summary | |
|---|---|
RMFileDataSource()
Creates a new file data source. |
|
RMFileDataSource(java.lang.String aName,
java.lang.String aPath)
Creates a new file data source at given path. |
|
| Method Summary | |
|---|---|
RMEntity |
createEntityImpl(RMEntity anEntity)
Creates a new entity. |
void |
delete()
Deletes this data source, assuming it corresponds to something that can be deleted, like a database. |
void |
deleteFileImpl(RMFile aFile)
Deletes file. |
void |
deleteRowImpl(RMRow aRow)
Deletes a given row. |
RMFileDataSource |
fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival. |
java.util.Map |
getDataset()
Returns all data source data as a dataset. |
RMFile |
getEntityFile(java.lang.String aName,
boolean doCreate)
Returns the file for the given entity. |
java.util.List<RMRow> |
getEntityRows(RMEntity anEntity)
Returns the list of rows for a given entity. |
java.util.List<RMFile> |
getFilesImpl(java.lang.String aPath)
Returns files at path. |
java.lang.String |
getPath()
Returns the path. |
java.util.List<RMRow> |
getRowsImpl(java.util.List<? extends RMProperty> theProperties,
RMCondition aCondition,
java.lang.Class<? extends RMRow> aClass)
Returns a set of rows for the given properties and condition. |
RMSchema |
getSchema()
Returns schema (loaded froms RMSchema.xml file). |
java.lang.String |
getTypeString()
Returns the type string. |
void |
insertRowImpl(RMRow aRow)
Inserts a given row. |
void |
readFileImpl(RMFile aFile)
Gets file bytes. |
RMSchema |
readSchema()
Reads schema from file. |
void |
saveRowsImmediately()
Override to save CSV files. |
void |
saveSchema()
Saves schema to file. |
void |
setPath(java.lang.String aPath)
Sets the path. |
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival. |
void |
updateRowImpl(RMRow aRow)
Updates a given row. |
void |
writeFileImpl(RMFile aFile)
Writes file bytes. |
| Methods inherited from class com.reportmill.datasource.RMDataSource |
|---|
create, createEntity, createObject, deleteEntity, deleteFile, deleteRow, equals, getAllRows, getDataset, getEntity, getEntityClass, getEntityResolver, getFile, getFile, getFile, getName, getRootDirectory, getRow, getRow, getRows, getSchemaVisible, getUniqueRow, insertRow, propertyChange, readFile, refresh, saveRows, setEntityResolver, setName, toString, updateRow, writeFile |
| Methods inherited from class com.reportmill.base.RMObject |
|---|
addListener, addPropertyChangeListener, animUpdate, clone, firePropertyChange, firePropertyChange, getListener, getListenerCount, getListeners, isFirePropertyChangeEnabled, isUndoing, removeListener, removePropertyChangeListener, setFirePropertyChangeEnabled, setUndoing |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RMFileDataSource()
public RMFileDataSource(java.lang.String aName,
java.lang.String aPath)
| Method Detail |
|---|
public java.lang.String getTypeString()
getTypeString in class RMDataSourcepublic java.lang.String getPath()
public void setPath(java.lang.String aPath)
public RMSchema getSchema()
getSchema in class RMDataSourcepublic java.util.Map getDataset()
getDataset in class RMDataSource
public java.util.List<RMRow> getRowsImpl(java.util.List<? extends RMProperty> theProperties,
RMCondition aCondition,
java.lang.Class<? extends RMRow> aClass)
public void insertRowImpl(RMRow aRow)
public void updateRowImpl(RMRow aRow)
public void deleteRowImpl(RMRow aRow)
public void saveRowsImmediately()
saveRowsImmediately in class RMDataSource
public RMFile getEntityFile(java.lang.String aName,
boolean doCreate)
public java.util.List<RMRow> getEntityRows(RMEntity anEntity)
public java.util.List<RMFile> getFilesImpl(java.lang.String aPath)
getFilesImpl in class RMDataSourcepublic void readFileImpl(RMFile aFile)
public void writeFileImpl(RMFile aFile)
public void deleteFileImpl(RMFile aFile)
public RMEntity createEntityImpl(RMEntity anEntity)
public RMSchema readSchema()
public void saveSchema()
public void delete()
delete in class RMDataSource
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
toXML in class RMDataSource
public RMFileDataSource fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
fromXML in class RMDataSource
|
ReportMill 12 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||