public class DatabaseRawLookup extends DatabaseConnection
SimpleDataSource.NameEditorData
DataSource.Writable
alwaysCloseConnection, debugLevel, HSQLDB, logDateFormat, MYSQL, ORACLE, OTHER, POSTGRES, SQLITE
cvsRev
UPDATE_DISPLAYED_VALUE, VALUE_INPUT
customTimer, EXPORT_READ_ONLY, EXPORT_READ_WRITE, NO_EXPORT, requiresSyncWrite, sharedTimer, syncWriteTimeout, timebase
autoSuspend, AUTOSUSPEND_DEFAULT, AUTOSUSPEND_NEVER, AUTOSUSPEND_NO_LISTENERS, AUTOSUSPEND_NO_LISTENERS_AND_NO_SOURCES, colorHi, colorHiHi, colorLo, colorLoLo, colorNormal, connectors, consoleLogger, currentColor, currentValue, DEFAULT_AUTOSUSPEND, dontConnect, gwtLog, hardSuspended, popupLogger, PRIMARYOUTPORTNAME, sendColors, stopped, suspended, timedPopupLogger, traceLogger, valueHi, valueHiHi, valueLo, valueLoLo
cvsRev
Constructor and Description |
---|
DatabaseRawLookup()
Create the component.
|
Modifier and Type | Method and Description |
---|---|
int |
getDefaultQualityForLocation(int location)
This is overridden to make the default quality for valueChanged be
QUALITY_GOOD.
|
java.lang.String |
getSQLStatement()
Sets the SQL Statement to use for the query.
|
int |
getStaticLocationFor(java.lang.String method)
This is the default getStaticLocationFor with a location used by the staticmethodevent
to find a specific entry value object.
|
boolean |
isThrowOnNullResponse()
True if the server will throw if no value is returned from the
query.
|
void |
prepareSQLStatement(java.lang.String sqlStatement)
Sets the SQL Statement to use for the query.
|
void |
refreshCurrentValue()
Update the value.
|
ValueObjectInterface |
retrieveValueObject()
Returns a value object that represents the result of the SELECT query.
|
void |
retrieveValues()
Update the value.
|
void |
setSQLStatement(java.lang.String sqlStatement)
Sets the SQL Statement to use for the query.
|
void |
setThrowOnNullResponse(boolean throwOnNullResponse)
True if the server will throw if no value is returned from the
query.
|
void |
setValueObject(ValueObjectInterface newValue)
Pass through to trigger(ValueChangedEvent) for compatibility in scripting.
|
void |
trigger(ValueChangedEvent newEvent)
This method will be called when a trigger is received.
|
void |
valueChanged(int loc,
ValueChangedEvent e)
This is the default valuechanged with a location used by the staticmethodevent
to find a specific entry value object.
|
connectionClosed, eventInfo, getConnectionName, getConsoleReport, getDataBaseType, getDateColumnName, getTableName, isCreateIndex, isCreateTable, isMillisPrecision, isSynchronizeConnection, logInfo, messageString, setConnectionName, setConsoleReport, setCreateIndex, setCreateTable, setDateColumnName, setMillisPrecision, setSimulationFlag, setSynchronizeConnection, setTableName, simulationStateChanged, start, stop, tableExists, toString
getInPortNames, setBooleanValue, setBoolValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, valueInput
addConnector, addConnector, addDataSource, addPropertyChangeListener, addValueChangedListener, addVetoableChangeListener, authenticatedClientRequest, clientRequest, clientResponse, destroy, determineSuspendedStatus, getClassLicenseManager, getContainer, getCustomTimer, getDataSource, getDataSources, getDisplayName, getExportCriteria, getExposeComponentConnections, getName, getOutPortNames, getPullFromServers, getPushData, getPushName, getPushToServers, getServerListData, getTimebase, getTrace, isActive, isScreenLocal, removeConnector, removeDataSource, removePropertyChangeListener, removeValueChangedListener, removeVetoableChangeListener, requestSyncWrite, setAutoSuspend, setClassLicenseManager, setContainer, setCustomTimer, setDataSourceName, setExportCriteria, setExposeComponentConnections, setName, setPullFromServers, setPushData, setPushName, setPushToServers, setScreenLocal, setServerListData, setTimebase, setTrace, tick, VIBEvent
addVIBEventListener, checkScript, executeInScriptInternal, executeScript, executeScriptInternal, executeScriptInternal, getAutoSuspend, getBooleanValue, getBoolValue, getColorHi, getColorHiHi, getColorLo, getColorLoLo, getColorNormal, getConnectors, getConsoleLogger, getCurrentColor, getDataSourceName, getDoubleValue, getFloatValue, getGWTLogger, getIncomingValueObject, getInScript, getIntValue, getLongValue, getParent, getPopupLogger, getScript, getScriptEngine, getSendColors, getSources, getStringValue, getSyncWriteTimeout, getTimedPopupLogger, getTraceLogger, getValueHi, getValueHiHi, getValueLo, getValueLoLo, getValueObject, init, isHardSuspended, isRunning, isSendOnlyChangedValuesDefault, isSuspended, logException, logGWT, logGWT, logMessage, logTrace, n2sortConnectors, performScriptSubstitutions, popupMessage, post, removeConnector, removeVIBEventListener, replaceConnectors, scriptExtensionSubstition, setColorHi, setColorHiHi, setColorLo, setColorLoLo, setColorNormal, setConsoleLogger, setGWTLogger, setHardSuspended, setInScript, setParent, setPopupLogger, setScript, setSendColors, setSendOnlyChangedValuesDefault, setSyncWriteTimeout, setTimedPopupLogger, setTraceLogger, setValueHi, setValueHiHi, setValueLo, setValueLoLo, updateColor, updateListeners, updateListeners, updateListeners, whoAmI
public int getDefaultQualityForLocation(int location) throws BadParameterException
getDefaultQualityForLocation
in class SimpleManipulator
loc
- the location of the method.BadParameterException
- never thrown.public java.lang.String getSQLStatement()
public int getStaticLocationFor(java.lang.String method) throws BadParameterException
getStaticLocationFor
in class Manipulator
BadParameterException
public boolean isThrowOnNullResponse()
public void prepareSQLStatement(java.lang.String sqlStatement) throws java.sql.SQLException
java.sql.SQLException
public void refreshCurrentValue()
refreshCurrentValue
in class SimpleDataSource
public ValueObjectInterface retrieveValueObject() throws java.sql.SQLException
java.sql.SQLException
- thrown if the database reports an errorpublic void retrieveValues() throws VIBUpdateFailedException
VIBUpdateFailedException
public void setSQLStatement(java.lang.String sqlStatement)
java.sql.SQLException
public void setThrowOnNullResponse(boolean throwOnNullResponse)
throwOnNullResponse
- The throwOnNullResponse to set.public void setValueObject(ValueObjectInterface newValue) throws VIBUpdateFailedException
setValueObject
in class SimpleDataSource
newValue
- the new ValueObject value for the serverVIBUpdateFailedException
ValueObject
public void trigger(ValueChangedEvent newEvent) throws VIBUpdateFailedException
VIBUpdateFailedException
public void valueChanged(int loc, ValueChangedEvent e) throws VIBUpdateFailedException, BadParameterException
valueChanged
in class Manipulator
BadParameterException
VIBUpdateFailedException
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.