public class DataSourceColumn 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 |
---|---|
|
DataSourceColumn(Block parent,
int dataSourceType)
Constructor used to create DataSourceColumn objects in the context of
a Block parent object.
|
|
DataSourceColumn(Block parent,
java.lang.String name)
Constructor used to create DataSourceColumn objects in the context of
a Block parent object.
|
protected |
DataSourceColumn(long pd2fdsc)
Protected constructor, used internally to create DataSourceColumn
objects.
|
Modifier and Type | Method and Description |
---|---|
DataSourceColumn |
clone(Block parent,
java.lang.String newName)
Creates a copy of the object as a child of 'parent'
|
static DataSourceColumn |
find(Block parent,
java.lang.String name)
Find an instance of DataSourceColumn that is a child of a Block.
|
int |
getDSCLength()
Get number property DSCLength (DSC_LENGTH_PTID).
|
java.lang.String |
getDSCName()
Get text property DSCName (DSC_NAME_PTID).
|
java.lang.String |
getDSCParentName()
Get text property DSCParentName (DSC_PARENT_NAME_PTID).
|
int |
getDSCPrecision()
Get number property DSCPrecision (DSC_PRECISION_PTID).
|
int |
getDSCScale()
Get number property DSCScale (DSC_SCALE_PTID).
|
int |
getDSCType()
Get number property DSCType (DSC_TYPE_PTID).
|
java.lang.String |
getDSCTypeName()
Get text property DSCTypeName (DSC_TYPE_NAME_PTID).
|
int |
getPersistentClientInfoLength()
Get number property PersistentClientInfoLength (PERSISTENT_CLIENT_INFO_LENGTH_PTID).
|
int |
getTypeId()
Gets the HtmlForms object type ID.
|
boolean |
isDSCMandatory()
Get boolean property DSCMandatory (DSC_MANDATORY_PTID).
|
boolean |
isDSCNochildren()
Get boolean property DSCNochildren (DSC_NOCHILDREN_PTID).
|
boolean |
isSubclassSubObject()
Get boolean property SubclassSubObject (SUBCLASS_SUBOBJECT_PTID).
|
void |
setDSCLength(int value)
Sets number property DSCLength (DSC_LENGTH_PTID).
|
void |
setDSCMandatory(boolean value)
Sets boolean property DSCMandatory (DSC_MANDATORY_PTID).
|
void |
setDSCName(java.lang.String value)
Sets text property DSCName (DSC_NAME_PTID).
|
void |
setDSCNochildren(boolean value)
Sets boolean property DSCNochildren (DSC_NOCHILDREN_PTID).
|
void |
setDSCParentName(java.lang.String value)
Sets text property DSCParentName (DSC_PARENT_NAME_PTID).
|
void |
setDSCPrecision(int value)
Sets number property DSCPrecision (DSC_PRECISION_PTID).
|
void |
setDSCScale(int value)
Sets number property DSCScale (DSC_SCALE_PTID).
|
void |
setDSCType(int value)
Sets number property DSCType (DSC_TYPE_PTID).
|
void |
setDSCTypeName(java.lang.String value)
Sets text property DSCTypeName (DSC_TYPE_NAME_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 DataSourceColumn(Block parent, int dataSourceType)
parent
- Parent objectdataSourceType
- Type of the new objectpublic DataSourceColumn(Block parent, java.lang.String name)
parent
- Parent objectname
- Name of the new objectprotected DataSourceColumn(long pd2fdsc)
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);
pd2fdsc
- C pointer to Forms objectpublic int getTypeId()
getTypeId
in interface JdapiObject
getTypeId
in class BaseFormsObject
queryType
public DataSourceColumn clone(Block parent, java.lang.String newName)
parent
- Parent objectnewName
- Name of object that's being createdpublic static DataSourceColumn 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 getDSCName()
public void setDSCName(java.lang.String value)
value
- Value to set property topublic java.lang.String getDSCParentName()
public void setDSCParentName(java.lang.String value)
value
- Value to set property topublic java.lang.String getDSCTypeName()
public void setDSCTypeName(java.lang.String value)
value
- Value to set property topublic int getDSCLength()
public void setDSCLength(int value)
value
- Value to set property topublic int getDSCPrecision()
public void setDSCPrecision(int value)
value
- Value to set property topublic int getDSCScale()
public void setDSCScale(int value)
value
- Value to set property topublic int getDSCType()
public void setDSCType(int value)
value
- Value to set property topublic int getPersistentClientInfoLength()
public void setPersistentClientInfoLength(int value)
value
- Value to set property topublic boolean isDSCMandatory()
public void setDSCMandatory(boolean value)
value
- Value to set property topublic boolean isDSCNochildren()
public void setDSCNochildren(boolean value)
value
- Value to set property topublic boolean isSubclassSubObject()
public void setSubclassSubObject(boolean value)
value
- Value to set property to