Package com.iizix.db.prop
Class DatabaseProps
- All Implemented Interfaces:
- EventListener,- IGProp<GProp<?>[]>,- IPropCnr,- Cloneable
- Direct Known Subclasses:
- EditorDatabaseProps
This database property container holds database service definition.
- Field SummaryFieldsModifier and TypeFieldDescription- static final StringThe connection profile name property (value "connectionProfileName").- static final StringThe Result property name used for UPDATE, DELETE, ...- static final StringThe Result Set property name.- static final StringThe SQL statement property (value "sqlStatement").- static final StringThe Statement Type property name.- static final intQuery statement type: DELETE.- static final intQuery statement type: a full select.- static final intQuery statement type: INSERT.- static final intQuery statement type: MERGE.- static final intQuery statement type: SELECT.- static final intQuery statement type: unknown.- static final intQuery statement type: UPDATE.- static final intQuery statement type: ..WITH...- Fields inherited from class com.iizix.prop.PropCnr- EMPTY, EMPTY_CLASSES, EMPTY_CNRS, EXTENDS_FRAMEWORK_ERROR_ID- Fields inherited from class com.iizix.prop.GProp- GPDEBUG, PROP_ATTR_STRING_EDITOR_PROP, PROP_ATTR_STRING_ERRORED_NAME, PROP_ATTR_STRING_EXTENDS, PROP_ATTR_STRING_EXTENDS_FINAL, PROP_ATTR_STRING_EXTENDS_PRIVATE, PROP_ATTR_STRING_NULLABLE, PROP_ATTR_STRING_PRIVATE, PROP_ATTR_STRING_PRIVATE_CHANGE_EVENT, PROP_ATTR_STRING_READ_ONLY, PROP_USER_1, PROP_USER_2- Fields inherited from interface com.iizix.prop.IGProp- EQC_ERROR_IGNORE_ALL, EQC_ERROR_IGNORE_REFERENCES, EQC_IGNORE_ARRAY, EQC_IGNORE_VOLATILE_OR_EDITOR, EQC_INCLUDE_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATE
- Constructor SummaryConstructorsConstructorDescriptionCreates the property container without a name.- DatabaseProps- (Atom propertyAtom) Creates the property container with the specified name.
- Method SummaryModifier and TypeMethodDescription- protected voidAdds the predefined properties for this container.- clone()Clones the property.- protected InputPropsCreates the input properties.Gets the connection profile name.- getConnectionProfileSetup- (IAppSessionGyro appGyro) Gets the connection profile setup configured for this database transaction.Gets the database transaction description.Gets the input properties containing VirtualSpace, parameter definitions, etc.- protected voidGets potential references to predefined properties for this container.Gets the result properties.Gets the result set properties.Gets the SQL statement.- intGets the statement type.- void- setConnectionProfileName- (String connectionProfileName) Sets the connection profile name to use.- boolean- setSQLStatement- (String sql) Gets the SQL statement.- void- setStatementType- (int type) Sets the statement type.- Methods inherited from class com.iizix.prop.PropCnr- __transferChildProps, addProp, addProp, addProp2, addProp2, appendPropValue, canRequestFocus, completeVirtualize, containsProp, containsProp, convertLoadedProp, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, createUniqueAtom, createVSReference, doPropEqualsArrayValues, enablePropCommunication, enablePropHashMap, equalsTree, equalsTree, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getBool, getBool, getBool, getBool, getChildPropError, getChildPropError, getChildPropErrorSeverity, getChildPropErrorSeverity, getErrorsProp, getExtendsContainer, getExtendsError, getExtendsName, getExtendsOverride, getExtendsPossibleClasses, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, getPossibleChildren, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropBaseReference, getPropCnr, getPropCount, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue0, getRetargetedVerifyContainer, getString, getString, getString, getString, getValueClasses, getVSReference, hasFocus, hasSendData, initializeElement, initializeExtendsFramework, initializeProp, initializeValue, initPropCnr, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsPropertyValid, isExtendsRoot, isPropAddRemoveAllowed, isPropCommunicating, isPropExtended, list, list, logPropNotFound, maybeAddProp, onInsertProp, onPropDispose, onPropRemoved, onPropTreeInitialized, onReferenceEvent, onVirtualContainerCreated, onVirtualizationCompleted, paramString, prepare, removeAllProps, removeAllProps2, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, reorderProps, replaceProps, requestFocus, requestFocus, requestFocusEx, requestFocusEx, resolveReferences, resolveRuntimeReferences, setBool, setBool, setBool, setBool, setCreateRequiredProp, setExtendsName, setExtendsOverride, setInt, setInt, setInt, setLong, setLong, setLong, setLong, setNumber, setNumber, setNumber, setNumber, setProp, setProp, setProp, setProp2, setProp2, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setString, setString, setString, setString, shouldCreateProps, shouldSerializeToXML, toElementString, toNativeValue0, usePropHashMap, usesPropIndex, validateChildPropInValue, validateClassInstances, validatePropType, validatePropValue, verify, verifyInternalUseOnly, verifyTree, virtualize- Methods inherited from class com.iizix.prop.GProp- addPropError, addPropListener, appendProp, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalValues, finalize, fine, fine, finer, finer, finest, finest, fromElementString, getAliasName, getAppSessionGyro, getAppWorker, getAtomPath, getAttribute, getChildReferencePropName, getClientSessionGyro, getClientWorker, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropName, getFullPropNameDebug, getFullPropNameDebug, getListeners, getModuleFolder, getModuleFolder, getParent, getParent, getProjectName, getPropAtom, getPropError, getPropError, getPropErroredName, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromPath, getPropFromReference, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropReferenceTarget, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getPropValueObject, getReferencePropName, getReferencePropNameNoAssert, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParentNoAssert, getTreeLock, hasChanged, hasCircularReferencesError, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropForEditor, isPropNullable, isPropPrivate, isPropPrivateAtCreation, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropRootLoading, isPropRootTreeModificationsAllowed, isPropUSER, isPropValueTreeLockNeeded, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, isSibling, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onEventSelf, onPrepare, onPropInvalidateCache, onPropParentChanged, onPropValueSet, onRemoteEvent, paramString, paramValue, post, post, removePropError, removePropListener, removePropUSER, renameProp, renameProp2, resetChangedTree, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPrivateCreateRequiredProp, setPropError, setPropErroredName, setPropExtended, setPropExtendsFinal, setPropExtendsPrivate, setPropForEditor, setPropNullable, setPropPrivate, setPropReadOnly, setPropUSER, setPropValue, setPropValue, setPropValue, setPropValueIncognito, setPropVolatile, severe, severe, severe, shouldSerializeToXML, throwIfReadOnly, toNativeValue, toString, toString, triggerRemoteEvent, triggerRemoteEvent, validateProp, warning, warning, warning- Methods inherited from class java.lang.Object- getClass, hashCode, notify, notifyAll, wait, wait, wait- Methods inherited from interface com.iizix.prop.IGProp- addPropError, addPropListener, dispose, equals, fine, fine, finer, finer, finest, finest, fromElementString, getAppSessionGyro, getAtomPath, getClientSessionGyro, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropNameDebug, getModuleFolder, getModuleFolder, getParent, getParent, getPropAtom, getPropError, getPropError, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getReferencePropName, getRelativePropName, getRootParent, getTreeLock, hasChanged, hasCircularReferencesError, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropNullable, isPropPrivate, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropVirtualized, isSibling, list, list, list, mapAliasToReference, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onEventSelf, onRemoteEvent, removePropError, removePropListener, renameProp, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPropError, setPropExtendsFinal, setPropExtendsPrivate, setPropNullable, setPropPrivate, setPropReadOnly, setPropValue, setPropValue, severe, severe, severe, toNativeValue, triggerRemoteEvent, triggerRemoteEvent, validateProp, warning, warning, warning- Methods inherited from interface com.iizix.prop.IPropCnr- canRequestFocus, canRequestFocus, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized
- Field Details- STATEMENT_TYPE_UNKNOWNpublic static final int STATEMENT_TYPE_UNKNOWNQuery statement type: unknown.- See Also:
 
- STATEMENT_TYPE_SELECTpublic static final int STATEMENT_TYPE_SELECTQuery statement type: SELECT.- See Also:
 
- STATEMENT_TYPE_INSERTpublic static final int STATEMENT_TYPE_INSERTQuery statement type: INSERT.- See Also:
 
- STATEMENT_TYPE_UPDATEpublic static final int STATEMENT_TYPE_UPDATEQuery statement type: UPDATE.- See Also:
 
- STATEMENT_TYPE_DELETEpublic static final int STATEMENT_TYPE_DELETEQuery statement type: DELETE.- See Also:
 
- STATEMENT_TYPE_FULLSELECTpublic static final int STATEMENT_TYPE_FULLSELECTQuery statement type: a full select.- See Also:
 
- STATEMENT_TYPE_WITHpublic static final int STATEMENT_TYPE_WITHQuery statement type: ..WITH...- See Also:
 
- STATEMENT_TYPE_MERGEpublic static final int STATEMENT_TYPE_MERGEQuery statement type: MERGE.- See Also:
 
- CONNECTION_PROFILE_NAMEThe connection profile name property (value "connectionProfileName").- See Also:
 
- SQL_STATEMENTThe SQL statement property (value "sqlStatement").- See Also:
 
- STATEMENT_TYPEThe Statement Type property name.- See Also:
 
- RESULT_SETThe Result Set property name.- See Also:
 
- RESULTThe Result property name used for UPDATE, DELETE, ...- See Also:
 
 
- Constructor Details- DatabasePropspublic DatabaseProps()Creates the property container without a name. The name must be set in all cases using the- setPropertyAtomcall.
- DatabasePropsCreates the property container with the specified name. All system-reserved names for components begins with "$".- Parameters:
- propertyAtom- the name of the component, unique within it's parent.
 
 
- Method Details- addPredefinedPropsAdds the predefined properties for this container. This method is called once just after construction of the property container.- Properties added: - - InputProps as Atom.INPUT - Overrides:
- addPredefinedPropsin class- PropCnr
- Throws:
- PropException- for property exceptions.
 
- getPredefinedPropsprotected void getPredefinedProps()Gets potential references to predefined properties for this container. This method is called once just after cloning of the property container.- The method should get reference to using the - getProp(...)methods. This allows the subclass to be able to retrieve the new instances to the properties created during- addPredefinedProps()if stored in instance variables.- Overrides:
- getPredefinedPropsin class- PropCnr
 
- cloneClones the property.
- getDescriptionGets the database transaction description.- Returns:
- A description, or null for none.
 
- createInputPropsCreates the input properties.- Returns:
- The InputProps instance named Atom.INPUT.
 
- getConnectionProfileNameGets the connection profile name.- Returns:
- the connectionProfileName
 
- setConnectionProfileNameSets the connection profile name to use.- Parameters:
- connectionProfileName- The connectionProfileName to set.
 
- getSQLStatementGets the SQL statement.- Returns:
- The SQL statement, null for none.
 
- setSQLStatementGets the SQL statement.- Parameters:
- sql- The SQL statement string.
- Returns:
- true for changed, false for no change.
 
- getStatementTypepublic int getStatementType()Gets the statement type.- Returns:
- One of the values:- STATEMENT_TYPE_SELECT,
- STATEMENT_TYPE_INSERT,
- STATEMENT_TYPE_UPDATE,
- STATEMENT_TYPE_DELETE,
- STATEMENT_TYPE_FULLSELECT,
- STATEMENT_TYPE_WITH,
- STATEMENT_TYPE_MERGE, or
- STATEMENT_TYPE_UNKNOWN.
 
 
- setStatementTypepublic void setStatementType- (int type) Sets the statement type. This method is used internally in the Designer and should not be called elsewhere.- Parameters:
- type- One of the values:- STATEMENT_TYPE_SELECT,
- STATEMENT_TYPE_INSERT,
- STATEMENT_TYPE_UPDATE,
- STATEMENT_TYPE_DELETE,
- STATEMENT_TYPE_FULLSELECT,
- STATEMENT_TYPE_WITH,
- STATEMENT_TYPE_MERGE, or
- STATEMENT_TYPE_UNKNOWN.
 
- Throws:
- IllegalArgumentException- If the type is invalid.
 
- getInputPropsGets the input properties containing VirtualSpace, parameter definitions, etc.- Returns:
- The input properties of the database transaction.
 
- getResultPropsGets the result properties.- The result properties is available when the statement is not a SELECT query statement, and the SQL statement has been parsed successfully. - Returns:
- The result properties, null for none.
 
- getResultSetPropsGets the result set properties.- The result set properties is only available for a SELECT query statement, and this method returns - nullotherwise.- Returns:
- The result set properties, null for none.
 
- getConnectionProfileSetupGets the connection profile setup configured for this database transaction. In case the setup is not found, an error is logged.- Parameters:
- appGyro- The application session gyro interface.
- Returns:
- The ConnectionProfileSetup, or null if not found.