Package com.iizix.db.prop
Class DatabaseProps
- java.lang.Object
- com.iizix.prop.GProp<GProp<?>[]>
- com.iizix.prop.PropCnr
- com.iizix.db.prop.DatabaseProps
 
 
 
- All Implemented Interfaces:
- EventListener,- IGProp<GProp<?>[]>,- IPropCnr,- java.lang.Cloneable
 - Direct Known Subclasses:
- EditorDatabaseProps
 - public class DatabaseProps extends PropCnr This database property container holds database service definition.
- Field Summary- Fields - Modifier and Type - Field - Description - static java.lang.String- CONNECTION_PROFILE_NAMEThe connection profile name property (value "connectionProfileName").- static java.lang.String- RESULTThe Result property name used for UPDATE, DELETE, ...- static java.lang.String- RESULT_SETThe Result Set property name.- static java.lang.String- SQL_STATEMENTThe SQL statement property (value "sqlStatement").- static java.lang.String- STATEMENT_TYPEThe Statement Type property name.- static int- STATEMENT_TYPE_DELETEQuery statement type: DELETE.- static int- STATEMENT_TYPE_FULLSELECTQuery statement type: a full select.- static int- STATEMENT_TYPE_INSERTQuery statement type: INSERT.- static int- STATEMENT_TYPE_MERGEQuery statement type: MERGE.- static int- STATEMENT_TYPE_SELECTQuery statement type: SELECT.- static int- STATEMENT_TYPE_UNKNOWNQuery statement type: unknown.- static int- STATEMENT_TYPE_UPDATEQuery statement type: UPDATE.- static int- STATEMENT_TYPE_WITHQuery 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_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATE
 
 - Constructor Summary- Constructors - Constructor - Description - DatabaseProps()Creates the property container without a name.- DatabaseProps(Atom propertyAtom)Creates the property container with the specified name.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - protected void- addPredefinedProps()Adds the predefined properties for this container.- DatabaseProps- clone()Clones the property.- protected InputProps- createInputProps()Creates the input properties.- java.lang.String- getConnectionProfileName()Gets the connection profile name.- ConnectionProfileSetup- getConnectionProfileSetup(IAppSessionGyro appGyro)Gets the connection profile setup configured for this database transaction.- java.lang.String- getDescription()Gets the database transaction description.- InputProps- getInputProps()Gets the input properties containing VirtualSpace, parameter definitions, etc.- protected void- getPredefinedProps()Gets potential references to predefined properties for this container.- ResultProps- getResultProps()Gets the result properties.- ResultSetProps- getResultSetProps()Gets the result set properties.- java.lang.String- getSQLStatement()Gets the SQL statement.- int- getStatementType()Gets the statement type.- void- setConnectionProfileName(java.lang.String connectionProfileName)Sets the connection profile name to use.- boolean- setSQLStatement(java.lang.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, doVirtualizePropCnr, 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, getReferences, getRetargetedVerifyContainer, getString, getString, getString, getString, getValueClasses, getVSReference, hasFocus, hasSendData, initializeElement, initializeExtendsFramework, initializeProp, initializeValue, initPropCnr, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsPropertyValid, isExtendsRoot, isPropAddRemoveAllowed, isPropCommunicating, isPropExtended, isSibling, list, list, logPropNotFound, maybeAddProp, onInsertProp, onPropDispose, onPropRemoved, onPropTreeInitialized, onReferenceEvent, 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, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalValues, extendsClone, 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, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParent, getTreeLock, hasChanged, 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, isPropUSER, isPropValueTreeLockNeeded, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onEventSelf, onPrepare, onPropInvalidateCache, onPropParentChanged, onPropValueSet, onRemoteEvent, onVirtualizationCompleted, onVirtualized, 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, verifyHasPropertyItem, 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, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropNullable, isPropPrivate, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropVirtualized, 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, verifyHasPropertyItem, warning, warning, warning
 - Methods inherited from interface com.iizix.prop.IPropCnr- canRequestFocus, canRequestFocus, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized
 
 
- Field Detail- STATEMENT_TYPE_UNKNOWN- public static final int STATEMENT_TYPE_UNKNOWN Query statement type: unknown.- See Also:
- Constant Field Values
 
 - STATEMENT_TYPE_SELECT- public static final int STATEMENT_TYPE_SELECT Query statement type: SELECT.- See Also:
- Constant Field Values
 
 - STATEMENT_TYPE_INSERT- public static final int STATEMENT_TYPE_INSERT Query statement type: INSERT.- See Also:
- Constant Field Values
 
 - STATEMENT_TYPE_UPDATE- public static final int STATEMENT_TYPE_UPDATE Query statement type: UPDATE.- See Also:
- Constant Field Values
 
 - STATEMENT_TYPE_DELETE- public static final int STATEMENT_TYPE_DELETE Query statement type: DELETE.- See Also:
- Constant Field Values
 
 - STATEMENT_TYPE_FULLSELECT- public static final int STATEMENT_TYPE_FULLSELECT Query statement type: a full select.- See Also:
- Constant Field Values
 
 - STATEMENT_TYPE_WITH- public static final int STATEMENT_TYPE_WITH Query statement type: ..WITH...- See Also:
- Constant Field Values
 
 - STATEMENT_TYPE_MERGE- public static final int STATEMENT_TYPE_MERGE Query statement type: MERGE.- See Also:
- Constant Field Values
 
 - CONNECTION_PROFILE_NAME- public static final java.lang.String CONNECTION_PROFILE_NAME The connection profile name property (value "connectionProfileName").- See Also:
- Constant Field Values
 
 - SQL_STATEMENT- public static final java.lang.String SQL_STATEMENT The SQL statement property (value "sqlStatement").- See Also:
- Constant Field Values
 
 - STATEMENT_TYPE- public static final java.lang.String STATEMENT_TYPE The Statement Type property name.- See Also:
- Constant Field Values
 
 - RESULT_SET- public static final java.lang.String RESULT_SET The Result Set property name.- See Also:
- Constant Field Values
 
 - RESULT- public static final java.lang.String RESULT The Result property name used for UPDATE, DELETE, ...- See Also:
- Constant Field Values
 
 
 - Constructor Detail- DatabaseProps- public DatabaseProps() Creates the property container without a name. The name must be set in all cases using the- setPropertyAtomcall.
 - DatabaseProps- public DatabaseProps(Atom propertyAtom) Creates 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 Detail- addPredefinedProps- protected void addPredefinedProps() throws PropExceptionAdds 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.
 
 - getPredefinedProps- protected 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
 
 - clone- public DatabaseProps clone() Clones the property.
 - getDescription- public java.lang.String getDescription() Gets the database transaction description.- Returns:
- A description, or null for none.
 
 - createInputProps- protected InputProps createInputProps() Creates the input properties.- Returns:
- The InputProps instance named Atom.INPUT.
 
 - getConnectionProfileName- public java.lang.String getConnectionProfileName() Gets the connection profile name.- Returns:
- the connectionProfileName
 
 - setConnectionProfileName- public void setConnectionProfileName(java.lang.String connectionProfileName) Sets the connection profile name to use.- Parameters:
- connectionProfileName- The connectionProfileName to set.
 
 - getSQLStatement- public java.lang.String getSQLStatement() Gets the SQL statement.- Returns:
- The SQL statement, null for none.
 
 - setSQLStatement- public boolean setSQLStatement(java.lang.String sql) Gets the SQL statement.- Parameters:
- sql- The SQL statement string.
- Returns:
- true for changed, false for no change.
 
 - getStatementType- public 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.
 
 
 - setStatementType- public 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:
- java.lang.IllegalArgumentException- If the type is invalid.
 
 - getInputProps- public InputProps getInputProps() Gets the input properties containing VirtualSpace, parameter definitions, etc.- Returns:
- The input properties of the database transaction.
 
 - getResultProps- public ResultProps getResultProps() Gets 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.
 
 - getResultSetProps- public ResultSetProps getResultSetProps() Gets 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.
 
 - getConnectionProfileSetup- public ConnectionProfileSetup getConnectionProfileSetup(IAppSessionGyro appGyro) Gets 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.