public abstract class CLEnterpriseBrowser 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
Constructor and Description |
---|
CLEnterpriseBrowser() |
CLEnterpriseBrowser(Credentials creds,
java.lang.String lang,
java.lang.String country) |
Modifier and Type | Method and Description |
---|---|
long |
create(Instance i) |
java.lang.Long |
createDescriptionId() |
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 text)
Executes any SQL command, use when no results are expected.
|
void |
exit() |
java.lang.Class |
findClass(java.lang.String classname)
Returns the class from the classloader
If class not found, download from server and update classloader.
|
AppVO |
getApp() |
AppVO |
getApp(java.lang.String lang) |
java.lang.String |
getBytecode(java.lang.String classname) |
ClassVO |
getClass(java.lang.String classname) |
InstanceSet |
getDescriptionBlock(long descId) |
InstanceSet |
getDescriptionBlock(long descId,
java.lang.String lang) |
DescriptionVO |
getDescriptionVO(long descId) |
DescriptionVO |
getDescriptionVO(java.lang.String domain,
java.lang.String name) |
DescriptionVO |
getDescriptionVOFromDB(long descId,
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) |
PropertyVO |
getProperty(java.lang.String classname,
java.lang.String propertyname) |
java.lang.String |
getSchema() |
java.lang.String |
getSerial() |
long |
getVersion() |
void |
impersonate(java.lang.String user,
java.lang.String pass) |
void |
saveAppVO(AppVO newAppVO) |
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,
Instance instance) |
java.lang.String |
toString() |
int |
update(Instance i) |
authenticate, changePassword, createDescriptionVO, createDescriptionVO, createDescriptionVO, createDescriptionVO, doRefresh, echo, executeQuery, flushPrivileges, getAppOld, getAuthType, 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, 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, unlockAccount, updateDescriptionVO, updateModelVersion, validate, verifyMandatory
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
authenticate, changePassword, createDescriptionVO, createDescriptionVO, createDescriptionVO, createDescriptionVO, doRefresh, echo, executeQuery, getAuthType, 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, 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 CLEnterpriseBrowser() throws java.lang.Exception
java.lang.Exception
public CLEnterpriseBrowser(Credentials creds, java.lang.String lang, java.lang.String country) throws java.lang.Exception
java.lang.Exception
public long getVersion() throws java.rmi.RemoteException, java.sql.SQLException, QueryTreeException
getVersion
in interface CLBrowser
java.rmi.RemoteException
java.sql.SQLException
QueryTreeException
public boolean doRefresh() throws java.rmi.RemoteException, java.sql.SQLException, QueryTreeException
doRefresh
in interface CLBrowser
doRefresh
in class CLBrowserBase
java.rmi.RemoteException
java.sql.SQLException
QueryTreeException
public boolean doRefresh(boolean fullRefresh) throws java.rmi.RemoteException, java.sql.SQLException, QueryTreeException
doRefresh
in interface CLBrowser
java.rmi.RemoteException
java.sql.SQLException
QueryTreeException
public ClassVO getClass(java.lang.String classname)
getClass
in interface CLBrowser
getClass
in class CLBrowserBase
public java.lang.String getBytecode(java.lang.String classname) throws java.rmi.RemoteException
getBytecode
in interface CLBrowser
java.rmi.RemoteException
public PropertyVO getProperty(java.lang.String classname, java.lang.String propertyname)
getProperty
in interface CLBrowser
getProperty
in class CLBrowserBase
public java.lang.String toString()
toString
in class CLBrowserBase
public long create(Instance i) throws java.rmi.RemoteException
create
in interface CLBrowser
create
in class CLBrowserBase
java.rmi.RemoteException
public int delete(Instance i) throws java.rmi.RemoteException
public int update(Instance i) throws java.rmi.RemoteException
update
in interface CLBrowser
update
in class CLBrowserBase
java.rmi.RemoteException
public DataInstanceSet executeQuery(java.lang.String classname, SelectQuery q) throws java.rmi.RemoteException
CLBrowser
executeQuery
in interface CLBrowser
executeQuery
in class CLBrowserBase
java.rmi.RemoteException
public DataInstanceSet executeQuery(SelectQuery q, boolean formattedValues) throws java.sql.SQLException, java.rmi.RemoteException
executeQuery
in interface CLBrowser
java.sql.SQLException
java.rmi.RemoteException
public InstanceSet executeText(java.lang.String sqltext) throws java.rmi.RemoteException
CLBrowser
executeText
in interface CLBrowser
sqltext
- is the sql commandjava.rmi.RemoteException
public void saveAppVO(AppVO newAppVO) throws java.rmi.RemoteException
saveAppVO
in interface CLBrowser
saveAppVO
in class CLBrowserBase
java.rmi.RemoteException
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) throws java.rmi.RemoteException
java.rmi.RemoteException
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) throws java.rmi.RemoteException
CLBrowserBase
java.rmi.RemoteException
public long getPrimaryKeys(java.lang.String type, java.lang.String classname, java.lang.Integer num) throws java.sql.SQLException, java.rmi.RemoteException
getPrimaryKeys
in interface CLBrowser
getPrimaryKeys
in class CLBrowserBase
java.sql.SQLException
java.rmi.RemoteException
public void impersonate(java.lang.String user, java.lang.String pass) throws AuthenticationException, java.rmi.RemoteException, QueryTreeException, java.sql.SQLException
impersonate
in interface CLBrowser
impersonate
in class CLBrowserBase
AuthenticationException
java.rmi.RemoteException
QueryTreeException
java.sql.SQLException
public void exit()
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
saveFile
in interface CLBrowser
QuerySaveException
java.sql.SQLException
java.rmi.RemoteException
java.io.IOException
public java.lang.Class findClass(java.lang.String classname)
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 java.lang.Long createDescriptionId() throws java.sql.SQLException, java.rmi.RemoteException
createDescriptionId
in interface CLBrowser
java.sql.SQLException
java.rmi.RemoteException
public void executeTextNoReturn(java.lang.String text) throws java.sql.SQLException, java.rmi.RemoteException
CLBrowser
executeTextNoReturn
in interface CLBrowser
text
- is the sql commandjava.sql.SQLException
java.rmi.RemoteException
public DescriptionVO getDescriptionVO(long descId) throws java.rmi.RemoteException
getDescriptionVO
in interface CLBrowser
java.rmi.RemoteException
public DescriptionVO getDescriptionVOFromDB(long descId, java.lang.String lang) throws java.rmi.RemoteException
getDescriptionVOFromDB
in interface CLBrowser
java.rmi.RemoteException
public DescriptionVO getDescriptionVO(java.lang.String domain, java.lang.String name) throws java.rmi.RemoteException
getDescriptionVO
in interface CLBrowser
java.rmi.RemoteException
public DescriptionVO getDescriptionVOFromDB(java.lang.String domain, java.lang.String name, java.lang.String lang) throws java.rmi.RemoteException
getDescriptionVOFromDB
in interface CLBrowser
java.rmi.RemoteException
public InstanceSet getDescriptionBlock(long descId, java.lang.String lang) throws java.rmi.RemoteException
getDescriptionBlock
in interface CLBrowser
java.rmi.RemoteException
public InstanceSet getDescriptionBlock(long descId) throws java.rmi.RemoteException
getDescriptionBlock
in interface CLBrowser
java.rmi.RemoteException
public java.lang.String getSchema() throws java.rmi.RemoteException