com.irisel.oms.olapi
Class CLBrowserImpl
java.lang.Object
com.irisel.oms.olapi.CLBrowserBase
com.irisel.oms.olapi.CLBrowserImpl
- All Implemented Interfaces:
- CLBrowser
- Direct Known Subclasses:
- CLGuiomBrowser
public class CLBrowserImpl
- extends CLBrowserBase
- implements CLBrowser
Fields inherited from interface com.irisel.oms.olapi.CLBrowser |
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 |
Method Summary |
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()
|
java.lang.String |
getBytecode(java.lang.String classname)
|
static CLBrowserImpl |
getCLBrowser()
|
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)
|
Methods inherited from class com.irisel.oms.olapi.CLBrowserBase |
authenticate, changePassword, createDescriptionVO, createDescriptionVO, createDescriptionVO, createDescriptionVO, doRefresh, echo, executeQuery, flushPrivileges, getAppOld, getAuthType, getClass, getClass, getConfigItems, getConfigItemValue, getConfigItemValue, getDatabaseName, getDbType, getDBTypes, getDefaultRole, getDescriptionVO, getDescriptionVOFromDB, getIcon, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceCount, getInstances, getInstanceSet, getInstanceSet, getInstanceSet, getInstanceSetValidStatus, getInstanceSetValidStatus, 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, setDatabaseName, setDbType, setDescription, setDescription, setDescription, setEnableFilterInactiveStates, setMode, setPass, setPort, setSchema, setServer, setUser, toString, unlockAccount, updateDescriptionVO, updateModelVersion, validate, verifyMandatory |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.irisel.oms.olapi.CLBrowser |
authenticate, changePassword, createDescriptionVO, createDescriptionVO, createDescriptionVO, createDescriptionVO, doRefresh, echo, executeQuery, getAuthType, getClass, getClass, getConfigItems, getConfigItemValue, getConfigItemValue, getDatabaseName, getDbType, getDBTypes, getDefaultRole, getDescriptionVO, getDescriptionVOFromDB, getIcon, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceCount, getInstances, getInstanceSet, getInstanceSet, getInstanceSet, getInstanceSetValidStatus, getInstanceSetValidStatus, getListById, getListByName, getListByParent, getLists, getMode, getPerfStats, getPort, getProperty, getRelation, getRelation, getResourceBytes, getSelectedListVO, getServer, isEnableFilterInactiveStates, newInstance, resetUserPassword, saveAppVO, saveList, setAutomaticFields, setDatabaseName, setDbType, setDescription, setDescription, setDescription, setEnableFilterInactiveStates, setPort, setSchema, setServer, unlockAccount, updateDescriptionVO, updateModelVersion, validate, verifyMandatory |
getCLBrowser
public static CLBrowserImpl getCLBrowser()
throws java.lang.Exception
- Throws:
java.lang.Exception
create
public long create(Instance i)
throws java.sql.SQLException,
DataException
- Specified by:
create
in interface CLBrowser
- Specified by:
create
in class CLBrowserBase
- Throws:
java.sql.SQLException
DataException
create
public long create(DataInstance i)
throws java.sql.SQLException,
DataException
- Throws:
java.sql.SQLException
DataException
delete
public int delete(Instance i)
throws java.sql.SQLException,
DataException
- Specified by:
delete
in interface CLBrowser
- Throws:
java.sql.SQLException
DataException
delete
public int delete(DataInstance i)
throws java.sql.SQLException,
DataException
- Throws:
java.sql.SQLException
DataException
update
public int update(Instance i)
throws java.sql.SQLException,
DataException
- Specified by:
update
in interface CLBrowser
- Specified by:
update
in class CLBrowserBase
- Throws:
java.sql.SQLException
DataException
update
public int update(DataInstance i)
throws java.sql.SQLException,
DataException
- Throws:
java.sql.SQLException
DataException
executeQuery
public DataInstanceSet executeQuery(SelectQuery q,
boolean formattedValues)
throws java.sql.SQLException
- Specified by:
executeQuery
in interface CLBrowser
- Throws:
java.sql.SQLException
executeQuery
public DataInstanceSet executeQuery(java.lang.String classname,
SelectQuery q)
throws java.sql.SQLException
- Deprecated.
- Description copied from interface:
CLBrowser
- "@deprecated
- Specified by:
executeQuery
in interface CLBrowser
- Specified by:
executeQuery
in class CLBrowserBase
- Throws:
java.sql.SQLException
executeText
public InstanceSet executeText(java.lang.String sqlText)
throws java.sql.SQLException,
java.rmi.RemoteException
- Description copied from interface:
CLBrowser
- Executes any SQL command, use when data results are expected.
- Specified by:
executeText
in interface CLBrowser
- Parameters:
sqlText
- is the sql command
- Throws:
java.sql.SQLException
java.rmi.RemoteException
executeTextNoReturn
public void executeTextNoReturn(java.lang.String sqlText)
throws java.sql.SQLException,
java.rmi.RemoteException
- Description copied from interface:
CLBrowser
- Executes any SQL command, use when no results are expected.
- Specified by:
executeTextNoReturn
in interface CLBrowser
- Parameters:
sqlText
- is the sql command
- Throws:
java.sql.SQLException
java.rmi.RemoteException
saveAppVO
public void saveAppVO(AppVO newAppVO)
throws SchemaUpdateException,
DataModelException
- Specified by:
saveAppVO
in interface CLBrowser
- Specified by:
saveAppVO
in class CLBrowserBase
- Throws:
SchemaUpdateException
DataModelException
saveDescriptionVO
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)
- Description copied from class:
CLBrowserBase
- 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)
saveDescriptionVO
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)
saveDescriptionVO
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)
getVersion
public long getVersion()
throws java.sql.SQLException,
ConnectionException,
DataModelException
- Specified by:
getVersion
in interface CLBrowser
- Throws:
java.sql.SQLException
ConnectionException
DataModelException
getSchema
public java.lang.String getSchema()
- Specified by:
getSchema
in interface CLBrowser
doRefresh
public boolean doRefresh()
throws java.sql.SQLException,
ConnectionException,
DataModelException
- Specified by:
doRefresh
in interface CLBrowser
- Specified by:
doRefresh
in class CLBrowserBase
- Throws:
java.sql.SQLException
ConnectionException
DataModelException
doRefresh
public boolean doRefresh(boolean fullRefresh)
throws java.sql.SQLException,
ConnectionException,
DataModelException
- Specified by:
doRefresh
in interface CLBrowser
- Throws:
java.sql.SQLException
ConnectionException
DataModelException
getPrimaryKeys
public long getPrimaryKeys(java.lang.String type,
java.lang.String classname,
java.lang.Integer num)
throws java.sql.SQLException
- Specified by:
getPrimaryKeys
in interface CLBrowser
- Specified by:
getPrimaryKeys
in class CLBrowserBase
- Throws:
java.sql.SQLException
getSSBrowser
public SSBrowser getSSBrowser()
getApp
public AppVO getApp()
- Specified by:
getApp
in interface CLBrowser
- Specified by:
getApp
in class CLBrowserBase
setServerBrowser
public void setServerBrowser(SSBrowser serverBrowser)
getServerBrowser
public SSBrowser getServerBrowser()
finalize
public void finalize()
- Overrides:
finalize
in class java.lang.Object
impersonate
public void impersonate(java.lang.String user,
java.lang.String pass)
throws AuthenticationException,
ConnectionException,
DataModelException
- Specified by:
impersonate
in interface CLBrowser
- Specified by:
impersonate
in class CLBrowserBase
- Throws:
AuthenticationException
ConnectionException
DataModelException
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
saveFile
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
- Specified by:
saveFile
in interface CLBrowser
- Throws:
QuerySaveException
java.sql.SQLException
java.rmi.RemoteException
java.io.IOException
DataException
saveFile
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
- Throws:
QuerySaveException
java.sql.SQLException
java.rmi.RemoteException
java.io.IOException
DataException
getBytecode
public java.lang.String getBytecode(java.lang.String classname)
- Specified by:
getBytecode
in interface CLBrowser
findClass
public java.lang.Class findClass(java.lang.String classname)
- Specified by:
findClass
in interface CLBrowser
createDescriptionId
public java.lang.Long createDescriptionId()
throws java.sql.SQLException
- Specified by:
createDescriptionId
in interface CLBrowser
- Throws:
java.sql.SQLException
getDescriptionVO
public DescriptionVO getDescriptionVO(long id)
- Specified by:
getDescriptionVO
in interface CLBrowser
getDescriptionVO
public DescriptionVO getDescriptionVO(java.lang.String domain,
java.lang.String name)
- Specified by:
getDescriptionVO
in interface CLBrowser
getDescriptionVOFromDB
public DescriptionVO getDescriptionVOFromDB(long id,
java.lang.String lang)
throws java.sql.SQLException
- Specified by:
getDescriptionVOFromDB
in interface CLBrowser
- Throws:
java.sql.SQLException
getDescriptionVOFromDB
public DescriptionVO getDescriptionVOFromDB(java.lang.String domain,
java.lang.String name,
java.lang.String lang)
throws java.sql.SQLException
- Specified by:
getDescriptionVOFromDB
in interface CLBrowser
- Throws:
java.sql.SQLException
getSerial
public java.lang.String getSerial()
- Specified by:
getSerial
in interface CLBrowser