public class SnapSite extends WebSite
WebSite.Servlet
Refresh_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, toString
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
addListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
public WebSite getSite()
protected void setSite(WebSite aSite)
protected WebFile createFileImpl(java.lang.String aPath, boolean isDirectory)
createFileImpl
in class WebSite
protected WebFile getFileImpl(java.lang.String aPath)
WebSite
getFileImpl
in class WebSite
protected java.util.List<WebFile> getFilesImpl(WebFile aFile)
WebSite
getFilesImpl
in class WebSite
protected byte[] getFileBytesImpl(WebFile aFile)
WebSite
getFileBytesImpl
in class WebSite
protected void saveFileImpl(WebFile aFile) throws java.lang.Exception
WebSite
saveFileImpl
in class WebSite
java.lang.Exception
protected void deleteFileImpl(WebFile aFile) throws java.lang.Exception
WebSite
deleteFileImpl
in class WebSite
java.lang.Exception
protected void refreshFileImpl(WebFile aFile) throws java.lang.Exception
WebSite
refreshFileImpl
in class WebSite
java.lang.Exception
public SnapTable getDataTable(java.lang.String aName)
getDataTable
in class WebSite
protected SnapTable createDataTableImpl()
createDataTableImpl
in class WebSite
public SnapTableView getTableView(java.lang.String aName)
protected Entity getEntityImpl(java.lang.String aName) throws java.lang.Exception
getEntityImpl
in class WebSite
java.lang.Exception
protected void saveEntityImpl(Entity anEntity) throws java.lang.Exception
saveEntityImpl
in class WebSite
java.lang.Exception
protected void deleteEntityImpl(Entity anEntity) throws java.lang.Exception
deleteEntityImpl
in class WebSite
java.lang.Exception
protected Row createRowImpl(Entity anEntity, java.lang.Object aPrimaryValue)
createRowImpl
in class WebSite
protected Row getRowImpl(Entity anEntity, java.lang.Object aPrimaryValue)
getRowImpl
in class WebSite
protected java.util.List<Row> getRowsImpl(Entity anEntity, Query aQuery)
getRowsImpl
in class WebSite
protected void saveRowImpl(Row aRow) throws java.lang.Exception
saveRowImpl
in class WebSite
java.lang.Exception
protected void deleteRowImpl(Row aRow) throws java.lang.Exception
deleteRowImpl
in class WebSite
java.lang.Exception
public void propertyChange(java.beans.PropertyChangeEvent anEvent)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class WebSite
protected void addAutosaveRow(Row aRow)
public void refresh()
protected void flushImpl() throws java.lang.Exception