public class CLBrowserImpl extends CLBrowserBase implements CLBrowser
CLBrowser.AuthState
CONFIG_FILE, KEY_APP_PASS, KEY_APP_USER, KEY_DB_DATABASE, KEY_DB_PASS, KEY_DB_PORT, KEY_DB_SCHEMA, KEY_DB_SERV, KEY_DB_TYPE, KEY_DB_USER, KEY_OL_SCH_FILE
Modifier and Type | Method and Description |
---|---|
long |
create(DataInstance i) |
long |
create(Instance i) |
java.lang.Long |
createDescriptionId() |
int |
delete(DataInstance i) |
int |
delete(Instance i) |
boolean |
doRefresh() |
boolean |
doRefresh(boolean fullRefresh) |
DataInstanceSet |
executeQuery(SelectQuery q,
boolean formattedValues) |
DataInstanceSet |
executeQuery(java.lang.String classname,
SelectQuery q)
Deprecated.
|
InstanceSet |
executeText(java.lang.String sqlText)
Executes any SQL command, use when data results are expected.
|
void |
executeTextNoReturn(java.lang.String sqlText)
Executes any SQL command, use when no results are expected.
|
void |
finalize() |
java.lang.Class |
findClass(java.lang.String classname) |
AppVO |
getApp() |
AppVO |
getApp(java.lang.String lang) |
java.lang.String |
getBytecode(java.lang.String classname) |
static CLBrowserImpl |
getCLBrowser() |
InstanceSet |
getDescriptionBlock(long id) |
InstanceSet |
getDescriptionBlock(long id,
java.lang.String lang) |
DescriptionVO |
getDescriptionVO(long id) |
DescriptionVO |
getDescriptionVO(java.lang.String domain,
java.lang.String name) |
DescriptionVO |
getDescriptionVOFromDB(long id,
java.lang.String lang) |
DescriptionVO |
getDescriptionVOFromDB(java.lang.String domain,
java.lang.String name,
java.lang.String lang) |
long |
getPrimaryKeys(java.lang.String type,
java.lang.String classname,
java.lang.Integer num) |
java.lang.String |
getSchema() |
java.lang.String |
getSerial() |
SSBrowser |
getServerBrowser() |
SSBrowser |
getSSBrowser() |
long |
getVersion() |
void |
impersonate(java.lang.String user,
java.lang.String pass) |
static void |
main(java.lang.String[] args) |
void |
saveAppVO(AppVO newAppVO) |
DescriptionVO |
saveDescriptionVO(DescriptionVO descvo,
long descId,
java.lang.String domain,
java.lang.String name,
java.lang.String description,
java.lang.String shortDescription,
java.lang.String comments) |
DescriptionVO |
saveDescriptionVO(DescriptionVO descvo,
java.lang.Long descId,
java.lang.String domain,
java.lang.String name,
java.lang.String description,
java.lang.String shortDescription,
java.lang.String comments)
Sends the DescriptionVO to the server, which updates its AppVO accordingly
and returns the DescriptionVO so that 'this' browser can also refresh the DescVO[]
This method must be implemented differently in 2-tier / 3-tier so it is declared abstract
This method is used by createDescriptionVO, which updates the local model (AppVO)
|
DescriptionVO |
saveDescriptionVO(DescriptionVO descvo,
java.lang.String lang,
java.lang.Long descId,
java.lang.String domain,
java.lang.String name,
java.lang.String description,
java.lang.String shortDescription,
java.lang.String comments) |
int |
saveFile(java.lang.String filename,
java.lang.String scontent,
ClassVO classvo,
DataInstance instance) |
int |
saveFile(java.lang.String filename,
java.lang.String scontent,
ClassVO classvo,
Instance instance) |
void |
setServerBrowser(SSBrowser serverBrowser) |
int |
update(DataInstance i) |
int |
update(Instance i) |
authenticate, changePassword, createDescriptionVO, createDescriptionVO, createDescriptionVO, createDescriptionVO, doRefresh, echo, executeQuery, flushPrivileges, getAppOld, getAuthType, getClass, getClass, getConfigItems, getConfigItemValue, getConfigItemValue, getCountry, getDatabaseName, getDbType, getDBTypes, getDefaultRole, getDescriptionBlock, getDescriptionBlock, getDescriptionVO, getDescriptionVOFromDB, getIcon, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceCount, getInstances, getInstanceSet, getInstanceSet, getInstanceSet, getInstanceSet, getInstanceSetValidStatus, getInstanceSetValidStatus, getInstanceSetValidStatus, getLang, getListById, getListByName, getListByParent, getLists, getMode, getPass, getPerfStats, getPort, getProperty, getRelation, getRelation, getResourceBytes, getSelectedListVO, getServer, getUser, getUserRecord, grantExecOnFunction, initApp, isEnableFilterInactiveStates, logPerformance, newInstance, resetUserPassword, saveAppVO, saveList, setAutomaticFields, setConfigItemValue, setCountry, setDatabaseName, setDbType, setDescription, setDescription, setDescription, setEnableFilterInactiveStates, setLang, setMode, setPass, setPort, setSchema, setServer, setUser, toString, unlockAccount, updateDescriptionVO, updateModelVersion, validate, verifyMandatory
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
authenticate, changePassword, createDescriptionVO, createDescriptionVO, createDescriptionVO, createDescriptionVO, doRefresh, echo, executeQuery, getAuthType, getClass, getClass, getConfigItems, getConfigItemValue, getConfigItemValue, getCountry, getDatabaseName, getDbType, getDBTypes, getDefaultRole, getDescriptionBlock, getDescriptionBlock, getDescriptionVO, getDescriptionVOFromDB, getIcon, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceCount, getInstances, getInstanceSet, getInstanceSet, getInstanceSet, getInstanceSet, getInstanceSetValidStatus, getInstanceSetValidStatus, getInstanceSetValidStatus, getLang, getListById, getListByName, getListByParent, getLists, getMode, getPerfStats, getPort, getProperty, getRelation, getRelation, getResourceBytes, getSelectedListVO, getServer, isEnableFilterInactiveStates, newInstance, resetUserPassword, saveAppVO, saveList, setAutomaticFields, setCountry, setDatabaseName, setDbType, setDescription, setDescription, setDescription, setEnableFilterInactiveStates, setLang, setPort, setSchema, setServer, unlockAccount, updateDescriptionVO, updateModelVersion, validate, verifyMandatory
public static CLBrowserImpl getCLBrowser() throws java.lang.Exception
java.lang.Exception
public long create(Instance i) throws java.sql.SQLException, DataException
create
in interface CLBrowser
create
in class CLBrowserBase
java.sql.SQLException
DataException
public long create(DataInstance i) throws java.sql.SQLException, DataException
java.sql.SQLException
DataException
public int delete(Instance i) throws java.sql.SQLException, DataException
delete
in interface CLBrowser
java.sql.SQLException
DataException
public int delete(DataInstance i) throws java.sql.SQLException, DataException
java.sql.SQLException
DataException
public int update(Instance i) throws java.sql.SQLException, DataException
update
in interface CLBrowser
update
in class CLBrowserBase
java.sql.SQLException
DataException
public int update(DataInstance i) throws java.sql.SQLException, DataException
java.sql.SQLException
DataException
public DataInstanceSet executeQuery(SelectQuery q, boolean formattedValues) throws java.sql.SQLException
executeQuery
in interface CLBrowser
java.sql.SQLException
@Deprecated public DataInstanceSet executeQuery(java.lang.String classname, SelectQuery q) throws java.sql.SQLException
CLBrowser
executeQuery
in interface CLBrowser
executeQuery
in class CLBrowserBase
java.sql.SQLException
public InstanceSet executeText(java.lang.String sqlText) throws java.sql.SQLException, java.rmi.RemoteException
CLBrowser
executeText
in interface CLBrowser
sqlText
- is the sql commandjava.sql.SQLException
java.rmi.RemoteException
public void executeTextNoReturn(java.lang.String sqlText) throws java.sql.SQLException, java.rmi.RemoteException
CLBrowser
executeTextNoReturn
in interface CLBrowser
sqlText
- is the sql commandjava.sql.SQLException
java.rmi.RemoteException
public void saveAppVO(AppVO newAppVO) throws SchemaUpdateException, DataModelException
saveAppVO
in interface CLBrowser
saveAppVO
in class CLBrowserBase
SchemaUpdateException
DataModelException
public DescriptionVO saveDescriptionVO(DescriptionVO descvo, java.lang.Long descId, java.lang.String domain, java.lang.String name, java.lang.String description, java.lang.String shortDescription, java.lang.String comments)
CLBrowserBase
public DescriptionVO saveDescriptionVO(DescriptionVO descvo, long descId, java.lang.String domain, java.lang.String name, java.lang.String description, java.lang.String shortDescription, java.lang.String comments)
public DescriptionVO saveDescriptionVO(DescriptionVO descvo, java.lang.String lang, java.lang.Long descId, java.lang.String domain, java.lang.String name, java.lang.String description, java.lang.String shortDescription, java.lang.String comments)
public long getVersion() throws java.sql.SQLException, ConnectionException, DataModelException
getVersion
in interface CLBrowser
java.sql.SQLException
ConnectionException
DataModelException
public boolean doRefresh() throws java.sql.SQLException, ConnectionException, DataModelException
doRefresh
in interface CLBrowser
doRefresh
in class CLBrowserBase
java.sql.SQLException
ConnectionException
DataModelException
public boolean doRefresh(boolean fullRefresh) throws java.sql.SQLException, ConnectionException, DataModelException
doRefresh
in interface CLBrowser
java.sql.SQLException
ConnectionException
DataModelException
public long getPrimaryKeys(java.lang.String type, java.lang.String classname, java.lang.Integer num) throws java.sql.SQLException
getPrimaryKeys
in interface CLBrowser
getPrimaryKeys
in class CLBrowserBase
java.sql.SQLException
public SSBrowser getSSBrowser()
public AppVO getApp()
getApp
in interface CLBrowser
getApp
in class CLBrowserBase
public AppVO getApp(java.lang.String lang)
getApp
in interface CLBrowser
getApp
in class CLBrowserBase
public void setServerBrowser(SSBrowser serverBrowser)
public SSBrowser getServerBrowser()
public void finalize()
finalize
in class java.lang.Object
public void impersonate(java.lang.String user, java.lang.String pass) throws AuthenticationException, ConnectionException, DataModelException
impersonate
in interface CLBrowser
impersonate
in class CLBrowserBase
AuthenticationException
ConnectionException
DataModelException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public int saveFile(java.lang.String filename, java.lang.String scontent, ClassVO classvo, Instance instance) throws QuerySaveException, java.sql.SQLException, java.rmi.RemoteException, java.io.IOException, DataException
saveFile
in interface CLBrowser
QuerySaveException
java.sql.SQLException
java.rmi.RemoteException
java.io.IOException
DataException
public int saveFile(java.lang.String filename, java.lang.String scontent, ClassVO classvo, DataInstance instance) throws QuerySaveException, java.sql.SQLException, java.rmi.RemoteException, java.io.IOException, DataException
QuerySaveException
java.sql.SQLException
java.rmi.RemoteException
java.io.IOException
DataException
public java.lang.String getBytecode(java.lang.String classname)
getBytecode
in interface CLBrowser
public java.lang.Class findClass(java.lang.String classname)
public java.lang.Long createDescriptionId() throws java.sql.SQLException
createDescriptionId
in interface CLBrowser
java.sql.SQLException
public InstanceSet getDescriptionBlock(long id, java.lang.String lang) throws java.sql.SQLException
getDescriptionBlock
in interface CLBrowser
java.sql.SQLException
public InstanceSet getDescriptionBlock(long id) throws java.sql.SQLException
getDescriptionBlock
in interface CLBrowser
java.sql.SQLException
public DescriptionVO getDescriptionVO(long id)
getDescriptionVO
in interface CLBrowser
public DescriptionVO getDescriptionVO(java.lang.String domain, java.lang.String name)
getDescriptionVO
in interface CLBrowser
public DescriptionVO getDescriptionVOFromDB(long id, java.lang.String lang) throws java.sql.SQLException
getDescriptionVOFromDB
in interface CLBrowser
java.sql.SQLException
public DescriptionVO getDescriptionVOFromDB(java.lang.String domain, java.lang.String name, java.lang.String lang) throws java.sql.SQLException
getDescriptionVOFromDB
in interface CLBrowser
java.sql.SQLException