public class SnapSite extends WebSite
WebSite.ServletRefresh_Prop| Constructor and Description |
|---|
SnapSite() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAutosaveRow(Row aRow)
Adds a Row to AutosaveRows set.
|
protected SnapTable |
createDataTableImpl()
Override to return SnapTable.
|
protected WebFile |
createFileImpl(java.lang.String aPath,
boolean isDirectory)
Nobody should be asking for files from this site.
|
protected Row |
createRowImpl(Entity anEntity,
java.lang.Object aPrimaryValue)
Creates a new row for source.
|
protected void |
deleteEntityImpl(Entity anEntity)
Override to delete entity from encapsulated source.
|
protected void |
deleteFileImpl(WebFile aFile)
Deletes a file.
|
protected void |
deleteRowImpl(Row aRow)
Deletes a given row.
|
protected void |
flushImpl()
Override to save SettingsFile and AutosaveRows.
|
static SnapSite |
get(WebSite aSite)
Returns the SnapSite for a given site.
|
SnapTable |
getDataTable(java.lang.String aName)
Override to return as SnapTable.
|
protected Entity |
getEntityImpl(java.lang.String aName)
Returns the entity for given name.
|
protected byte[] |
getFileBytesImpl(WebFile aFile)
Returns file bytes.
|
protected WebFile |
getFileImpl(java.lang.String aPath)
Returns a data source file for given path (if file exists).
|
protected java.util.List<WebFile> |
getFilesImpl(WebFile aFile)
Returns a list of files at path.
|
protected Row |
getRowImpl(Entity anEntity,
java.lang.Object aPrimaryValue)
Returns a row for a given entity and primary value.
|
protected java.util.List<Row> |
getRowsImpl(Entity anEntity,
Query aQuery)
Returns a set of rows for the given properties and condition.
|
WebSite |
getSite()
Returns the encapsulated WebSite.
|
SnapTableView |
getTableView(java.lang.String aName)
Returns a table view for given name.
|
WebURL |
getURL()
Returns the URL.
|
void |
propertyChange(java.beans.PropertyChangeEvent anEvent)
Override to track changed rows.
|
void |
refresh()
Override to forward to real data source.
|
protected void |
refreshFileImpl(WebFile aFile)
Reverts a file.
|
protected void |
saveEntityImpl(Entity anEntity)
Override to save entity to encapsulated source.
|
protected void |
saveFileImpl(WebFile aFile)
Saves a file.
|
protected void |
saveRowImpl(Row aRow)
Inserts or updates a given row.
|
protected void |
setSite(WebSite aSite)
Sets the encapsulated WebSite.
|
addDeepChangeListener, bulkImport, createClassLoader, createDataTable, createEntity, createEntityImpl, createFile, createRow, createRow, createSandbox, createSandboxURL, createSandboxURLS, createSchema, createSite, createURL, deleteEntity, deleteFile, deleteRow, deleteSite, flush, getClassLoader, getDataTables, getEntity, getExists, getFile, getHostName, getJSONKeys, getModifiedTime, getName, getPassword, getPath, getProp, getRequest, getResponse, getRootDirectory, getRow, getRow, getRows, getSandbox, getSchema, getServlet, getStandardFile, getURL, getURLString, getUserName, handleDelete, handleGet, handleHead, handlePut, isRunning, refreshFile, removeDeepChangeListener, saveEntity, saveFile, saveRow, setClassLoader, setExists, setModifiedTime, setModifiedTimeImpl, setPassword, setProp, setSandbox, setServlet, setURL, setUserName, toStringaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeaddListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListenerpublic WebSite getSite()
protected void setSite(WebSite aSite)
protected WebFile createFileImpl(java.lang.String aPath, boolean isDirectory)
createFileImpl in class WebSiteprotected WebFile getFileImpl(java.lang.String aPath)
WebSitegetFileImpl in class WebSiteprotected java.util.List<WebFile> getFilesImpl(WebFile aFile)
WebSitegetFilesImpl in class WebSiteprotected byte[] getFileBytesImpl(WebFile aFile)
WebSitegetFileBytesImpl in class WebSiteprotected void saveFileImpl(WebFile aFile) throws java.lang.Exception
WebSitesaveFileImpl in class WebSitejava.lang.Exceptionprotected void deleteFileImpl(WebFile aFile) throws java.lang.Exception
WebSitedeleteFileImpl in class WebSitejava.lang.Exceptionprotected void refreshFileImpl(WebFile aFile) throws java.lang.Exception
WebSiterefreshFileImpl in class WebSitejava.lang.Exceptionpublic SnapTable getDataTable(java.lang.String aName)
getDataTable in class WebSiteprotected SnapTable createDataTableImpl()
createDataTableImpl in class WebSitepublic SnapTableView getTableView(java.lang.String aName)
protected Entity getEntityImpl(java.lang.String aName) throws java.lang.Exception
getEntityImpl in class WebSitejava.lang.Exceptionprotected void saveEntityImpl(Entity anEntity) throws java.lang.Exception
saveEntityImpl in class WebSitejava.lang.Exceptionprotected void deleteEntityImpl(Entity anEntity) throws java.lang.Exception
deleteEntityImpl in class WebSitejava.lang.Exceptionprotected Row createRowImpl(Entity anEntity, java.lang.Object aPrimaryValue)
createRowImpl in class WebSiteprotected Row getRowImpl(Entity anEntity, java.lang.Object aPrimaryValue)
getRowImpl in class WebSiteprotected java.util.List<Row> getRowsImpl(Entity anEntity, Query aQuery)
getRowsImpl in class WebSiteprotected void saveRowImpl(Row aRow) throws java.lang.Exception
saveRowImpl in class WebSitejava.lang.Exceptionprotected void deleteRowImpl(Row aRow) throws java.lang.Exception
deleteRowImpl in class WebSitejava.lang.Exceptionpublic void propertyChange(java.beans.PropertyChangeEvent anEvent)
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class WebSiteprotected void addAutosaveRow(Row aRow)
public void refresh()
protected void flushImpl()
throws java.lang.Exception