public class DataSourceArgument extends BaseFormsObject
In some cases, using methods on this class may result in a
JdapiIllegalStateException being thrown. When this happens, you are using
an object that refers to a Forms object that has been deleted - your
reference is no longer valid. You can check if an instance of this
class is valid by using the isValidFormsObject()
method.
If you code correctly, this should not happen. It will tend to happen
if you keep references (for extended periods) to Forms objects rather
than look them up dynamically. Of course you will only have this
problem if you destroy Forms objects.
BaseAPI
m_clientInfo, m_pd2fob
PROPERTY_DEFAULT_VALUE, PROPERTY_INHERITED_VALUE, PROPERTY_OVERRIDDEN_DEFAULT_VALUE, PROPERTY_OVERRIDDEN_INHERITED_VALUE, PROPERTY_STATE_UNKNOWN
Modifier | Constructor and Description |
---|---|
|
DataSourceArgument(Block parent,
int dataSourceType)
Constructor used to create DataSourceArgument objects in the context of
a Block parent object.
|
|
DataSourceArgument(Block parent,
java.lang.String name)
Constructor used to create DataSourceArgument objects in the context of
a Block parent object.
|
protected |
DataSourceArgument(long pd2fdsa)
Protected constructor, used internally to create DataSourceArgument
objects.
|
Modifier and Type | Method and Description |
---|---|
DataSourceArgument |
clone(Block parent,
java.lang.String newName)
Creates a copy of the object as a child of 'parent'
|
static DataSourceArgument |
find(Block parent,
java.lang.String name)
Find an instance of DataSourceArgument that is a child of a Block.
|
int |
getDSAMode()
Get number property DSAMode (DSA_MODE_PTID).
|
java.lang.String |
getDSAName()
Get text property DSAName (DSA_NAME_PTID).
|
int |
getDSAType()
Get number property DSAType (DSA_TYPE_PTID).
|
java.lang.String |
getDSATypeName()
Get text property DSATypeName (DSA_TYPE_NAME_PTID).
|
java.lang.String |
getDSAValue()
Get text property DSAValue (DSA_VALUE_PTID).
|
int |
getPersistentClientInfoLength()
Get number property PersistentClientInfoLength (PERSISTENT_CLIENT_INFO_LENGTH_PTID).
|
int |
getTypeId()
Gets the HtmlForms object type ID.
|
boolean |
isSubclassSubObject()
Get boolean property SubclassSubObject (SUBCLASS_SUBOBJECT_PTID).
|
void |
setDSAMode(int value)
Sets number property DSAMode (DSA_MODE_PTID).
|
void |
setDSAName(java.lang.String value)
Sets text property DSAName (DSA_NAME_PTID).
|
void |
setDSAType(int value)
Sets number property DSAType (DSA_TYPE_PTID).
|
void |
setDSATypeName(java.lang.String value)
Sets text property DSATypeName (DSA_TYPE_NAME_PTID).
|
void |
setDSAValue(java.lang.String value)
Sets text property DSAValue (DSA_VALUE_PTID).
|
void |
setPersistentClientInfoLength(int value)
Sets number property PersistentClientInfoLength (PERSISTENT_CLIENT_INFO_LENGTH_PTID).
|
void |
setSubclassSubObject(boolean value)
Sets boolean property SubclassSubObject (SUBCLASS_SUBOBJECT_PTID).
|
changeOwner, clearObjectPointer, clone, createSubclassedChild, destroy, equals, getBooleanProperty, getChildObjectProperty, getClassName, getClientInfo, getIntegerProperty, getIntegerPropertyString, getJdapiMetaObject, getMetaProperties, getModule, getName, getObjectPointer, getObjectProperty, getObjProp, getOwnedObjects, getOwner, getPersistentClientInfoBlob, getPersistentClientInfoObject, getPropertyState, getPropertyValueName, getQualifiedName, getStringIDProperty, getStringProperty, getSubclassParent, hasDefaultedProperty, hasInheritedProperty, hasOverriddenProperty, hasProperty, inheritProperty, isSubclassed, isValidFormsObject, move, queryType, reattach, setBooleanProperty, setClientInfo, setIntegerProperty, setObjectProperty, setObjProp, setPersistentClientInfo, setPersistentClientInfo, setStringProperty, setSubclassParent, toString, unsetSubclassParent
public DataSourceArgument(Block parent, int dataSourceType)
parent
- Parent objectdataSourceType
- Type of the new objectpublic DataSourceArgument(Block parent, java.lang.String name)
parent
- Parent objectname
- Name of the new objectprotected DataSourceArgument(long pd2fdsa)
Do NOT use this constructor, even within the Jdapi package. If you have a pointer and need to instantiate it's Java representation, get the object via the context cache, e.g.
myBaseObject = Jdapi.getObject(myPointer);
pd2fdsa
- C pointer to Forms objectpublic int getTypeId()
getTypeId
in interface JdapiObject
getTypeId
in class BaseFormsObject
queryType
public DataSourceArgument clone(Block parent, java.lang.String newName)
parent
- Parent objectnewName
- Name of object that's being createdpublic static DataSourceArgument find(Block parent, java.lang.String name)
parent
- Parent object of object you wish to findname
- Name of object you wish to findpublic java.lang.String getDSAName()
public void setDSAName(java.lang.String value)
value
- Value to set property topublic java.lang.String getDSATypeName()
public void setDSATypeName(java.lang.String value)
value
- Value to set property topublic java.lang.String getDSAValue()
public void setDSAValue(java.lang.String value)
value
- Value to set property topublic int getDSAMode()
public void setDSAMode(int value)
value
- Value to set property topublic int getDSAType()
public void setDSAType(int value)
value
- Value to set property topublic int getPersistentClientInfoLength()
public void setPersistentClientInfoLength(int value)
value
- Value to set property topublic boolean isSubclassSubObject()
public void setSubclassSubObject(boolean value)
value
- Value to set property to