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 Summary
Modifier and TypeFieldDescriptionstatic final String
The connection profile name property (value "connectionProfileName").static final String
The Result property name used for UPDATE, DELETE, ...static final String
The Result Set property name.static final String
The SQL statement property (value "sqlStatement").static final String
The Statement Type property name.static final int
Query statement type: DELETE.static final int
Query statement type: a full select.static final int
Query statement type: INSERT.static final int
Query statement type: MERGE.static final int
Query statement type: SELECT.static final int
Query statement type: unknown.static final int
Query statement type: UPDATE.static final int
Query statement type: ..WITH...Fields inherited from class com.iizix.prop.PropCnr
EMPTY, EMPTY_CLASSES, EMPTY_CNRS, EXTENDS_FRAMEWORK_ERROR_ID, nameTable
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
ConstructorDescriptionCreates the property container without a name.DatabaseProps
(Atom propertyAtom) Creates the property container with the specified name.Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds the predefined properties for this container.clone()
Clones the property.protected InputProps
Creates 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 void
Gets potential references to predefined properties for this container.Gets the result properties.Gets the result set properties.Gets the SQL statement.int
Gets 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, isSibling, 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, 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, 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, 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, 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_UNKNOWN
public static final int STATEMENT_TYPE_UNKNOWNQuery statement type: unknown.- See Also:
STATEMENT_TYPE_SELECT
public static final int STATEMENT_TYPE_SELECTQuery statement type: SELECT.- See Also:
STATEMENT_TYPE_INSERT
public static final int STATEMENT_TYPE_INSERTQuery statement type: INSERT.- See Also:
STATEMENT_TYPE_UPDATE
public static final int STATEMENT_TYPE_UPDATEQuery statement type: UPDATE.- See Also:
STATEMENT_TYPE_DELETE
public static final int STATEMENT_TYPE_DELETEQuery statement type: DELETE.- See Also:
STATEMENT_TYPE_FULLSELECT
public static final int STATEMENT_TYPE_FULLSELECTQuery statement type: a full select.- See Also:
STATEMENT_TYPE_WITH
public static final int STATEMENT_TYPE_WITHQuery statement type: ..WITH...- See Also:
STATEMENT_TYPE_MERGE
public static final int STATEMENT_TYPE_MERGEQuery statement type: MERGE.- See Also:
CONNECTION_PROFILE_NAME
The connection profile name property (value "connectionProfileName").- See Also:
SQL_STATEMENT
The SQL statement property (value "sqlStatement").- See Also:
STATEMENT_TYPE
The Statement Type property name.- See Also:
RESULT_SET
The Result Set property name.- See Also:
RESULT
The Result property name used for UPDATE, DELETE, ...- See Also:
Constructor Details
DatabaseProps
public DatabaseProps()Creates the property container without a name. The name must be set in all cases using thesetPropertyAtom
call.DatabaseProps
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 Details
addPredefinedProps
Adds 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:
addPredefinedProps
in classPropCnr
- 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 duringaddPredefinedProps()
if stored in instance variables.- Overrides:
getPredefinedProps
in classPropCnr
clone
Clones the property.getDescription
Gets the database transaction description.- Returns:
- A description, or null for none.
createInputProps
Creates the input properties.- Returns:
- The InputProps instance named Atom.INPUT.
getConnectionProfileName
Gets the connection profile name.- Returns:
- the connectionProfileName
setConnectionProfileName
Sets the connection profile name to use.- Parameters:
connectionProfileName
- The connectionProfileName to set.
getSQLStatement
Gets the SQL statement.- Returns:
- The SQL statement, null for none.
setSQLStatement
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:
IllegalArgumentException
- If the type is invalid.
getInputProps
Gets the input properties containing VirtualSpace, parameter definitions, etc.- Returns:
- The input properties of the database transaction.
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
Gets the result set properties.The result set properties is only available for a SELECT query statement, and this method returns
null
otherwise.- Returns:
- The result set properties, null for none.
getConnectionProfileSetup
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.