public abstract class CLEnterpriseBrowser extends CLBrowserBase implements CLBrowser
CLBrowser.AuthStateCONFIG_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, verifyMandatoryequals, getClass, hashCode, notify, notifyAll, wait, wait, waitauthenticate, 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, verifyMandatorypublic CLEnterpriseBrowser()
throws java.lang.Exception
java.lang.Exceptionpublic CLEnterpriseBrowser(Credentials creds, java.lang.String lang, java.lang.String country) throws java.lang.Exception
java.lang.Exceptionpublic long getVersion()
throws java.rmi.RemoteException,
java.sql.SQLException,
QueryTreeException
getVersion in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionQueryTreeExceptionpublic boolean doRefresh()
throws java.rmi.RemoteException,
java.sql.SQLException,
QueryTreeException
doRefresh in interface CLBrowserdoRefresh in class CLBrowserBasejava.rmi.RemoteExceptionjava.sql.SQLExceptionQueryTreeExceptionpublic boolean doRefresh(boolean fullRefresh)
throws java.rmi.RemoteException,
java.sql.SQLException,
QueryTreeException
doRefresh in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionQueryTreeExceptionpublic ClassVO getClass(java.lang.String classname)
getClass in interface CLBrowsergetClass in class CLBrowserBasepublic java.lang.String getBytecode(java.lang.String classname)
throws java.rmi.RemoteException
getBytecode in interface CLBrowserjava.rmi.RemoteExceptionpublic PropertyVO getProperty(java.lang.String classname, java.lang.String propertyname)
getProperty in interface CLBrowsergetProperty in class CLBrowserBasepublic java.lang.String toString()
toString in class CLBrowserBasepublic long create(Instance i) throws java.rmi.RemoteException
create in interface CLBrowsercreate in class CLBrowserBasejava.rmi.RemoteExceptionpublic int delete(Instance i) throws java.rmi.RemoteException
public int update(Instance i) throws java.rmi.RemoteException
update in interface CLBrowserupdate in class CLBrowserBasejava.rmi.RemoteExceptionpublic DataInstanceSet executeQuery(java.lang.String classname, SelectQuery q) throws java.rmi.RemoteException
CLBrowserexecuteQuery in interface CLBrowserexecuteQuery in class CLBrowserBasejava.rmi.RemoteExceptionpublic DataInstanceSet executeQuery(SelectQuery q, boolean formattedValues) throws java.sql.SQLException, java.rmi.RemoteException
executeQuery in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic InstanceSet executeText(java.lang.String sqltext) throws java.rmi.RemoteException
CLBrowserexecuteText in interface CLBrowsersqltext - is the sql commandjava.rmi.RemoteExceptionpublic void saveAppVO(AppVO newAppVO) throws java.rmi.RemoteException
saveAppVO in interface CLBrowsersaveAppVO in class CLBrowserBasejava.rmi.RemoteExceptionpublic 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.RemoteExceptionpublic 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
CLBrowserBasejava.rmi.RemoteExceptionpublic long getPrimaryKeys(java.lang.String type,
java.lang.String classname,
java.lang.Integer num)
throws java.sql.SQLException,
java.rmi.RemoteException
getPrimaryKeys in interface CLBrowsergetPrimaryKeys in class CLBrowserBasejava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic void impersonate(java.lang.String user,
java.lang.String pass)
throws AuthenticationException,
java.rmi.RemoteException,
QueryTreeException,
java.sql.SQLException
impersonate in interface CLBrowserimpersonate in class CLBrowserBaseAuthenticationExceptionjava.rmi.RemoteExceptionQueryTreeExceptionjava.sql.SQLExceptionpublic 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 CLBrowserQuerySaveExceptionjava.sql.SQLExceptionjava.rmi.RemoteExceptionjava.io.IOExceptionpublic java.lang.Class findClass(java.lang.String classname)
public AppVO getApp()
getApp in interface CLBrowsergetApp in class CLBrowserBasepublic AppVO getApp(java.lang.String lang)
getApp in interface CLBrowsergetApp in class CLBrowserBasepublic java.lang.Long createDescriptionId()
throws java.sql.SQLException,
java.rmi.RemoteException
createDescriptionId in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic void executeTextNoReturn(java.lang.String text)
throws java.sql.SQLException,
java.rmi.RemoteException
CLBrowserexecuteTextNoReturn in interface CLBrowsertext - is the sql commandjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic DescriptionVO getDescriptionVO(long descId) throws java.rmi.RemoteException
getDescriptionVO in interface CLBrowserjava.rmi.RemoteExceptionpublic DescriptionVO getDescriptionVOFromDB(long descId, java.lang.String lang) throws java.rmi.RemoteException
getDescriptionVOFromDB in interface CLBrowserjava.rmi.RemoteExceptionpublic DescriptionVO getDescriptionVO(java.lang.String domain, java.lang.String name) throws java.rmi.RemoteException
getDescriptionVO in interface CLBrowserjava.rmi.RemoteExceptionpublic DescriptionVO getDescriptionVOFromDB(java.lang.String domain, java.lang.String name, java.lang.String lang) throws java.rmi.RemoteException
getDescriptionVOFromDB in interface CLBrowserjava.rmi.RemoteExceptionpublic InstanceSet getDescriptionBlock(long descId, java.lang.String lang) throws java.rmi.RemoteException
getDescriptionBlock in interface CLBrowserjava.rmi.RemoteExceptionpublic InstanceSet getDescriptionBlock(long descId) throws java.rmi.RemoteException
getDescriptionBlock in interface CLBrowserjava.rmi.RemoteExceptionpublic java.lang.String getSchema()
throws java.rmi.RemoteException