|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wrq.apptrieve.appconn.AppConnRecord
public class AppConnRecord
This class holds a single row of table data.
AppConnRecordSet
,
AppConnTable.performTableProcedure(java.lang.String, java.lang.String, java.util.Map, java.util.Map, boolean, java.util.List, int)
,
AppConnTable.executeSQLStatement(java.lang.String)
,
Serialized FormField Summary | |
---|---|
protected java.util.ResourceBundle |
doEngBundle
Internal use only. |
protected java.util.ResourceBundle |
doLocBundle
Internal use only. |
protected Row |
elements
Internal use only. |
static int |
RECORD_TYPE_MODEL
Return value from getRecordType() when object is an AppConnModelRecord. |
static int |
RECORD_TYPE_TABLE
Return value from getRecordType() when object is an AppConnRecord. |
protected java.util.Locale |
recordLocale
Internal use only. |
protected int |
recordType
Internal use only. |
Constructor Summary | |
---|---|
AppConnRecord()
Constructor for internal use only. |
Method Summary | |
---|---|
protected void |
finalize()
|
void |
fromXMLString(java.lang.String xmlString)
Converts from an XML String to an AppConnRecord. |
java.lang.String |
get(java.lang.String elementName)
Returns the value to for the specified element in this AppConnRecord. |
java.lang.String |
getByIndex(int index)
Returns the value to for the specified element in this AppConnRecord. |
int |
getCount()
Returns the number of elements in the record. |
java.util.List |
getElementNames()
Returns a list of the element names in this record. |
java.util.Map |
getElements()
Gets the elements in this object as key-value pairs in an object that implements the Map interface. |
java.util.List |
getElementValues()
Returns a list of the values in this record. |
java.util.Locale |
getLocale()
Gets the locale for the AppConnRecord. |
int |
getRecordType()
Gets the type of record. |
void |
setLocale(java.util.Locale locale)
Sets the locale for this AppConnRecord. |
java.lang.String |
toString()
Converts AppConnRecord to a String. |
java.lang.String |
toXMLString()
Converts AppConnRecord to an XML String. |
java.lang.String |
toXMLString(java.net.URL urlDTD)
Converts AppConnRecord to an XML String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Locale recordLocale
protected Row elements
protected java.util.ResourceBundle doEngBundle
protected java.util.ResourceBundle doLocBundle
protected int recordType
public static final int RECORD_TYPE_MODEL
getRecordType()
when object is an AppConnModelRecord.
public static final int RECORD_TYPE_TABLE
getRecordType()
when object is an AppConnRecord.
Constructor Detail |
---|
public AppConnRecord()
Method Detail |
---|
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void fromXMLString(java.lang.String xmlString) throws ApptrieveException
Example XML string for an AppConnRecord: <appconn><record><column name="LastName">Smith</column> </record></appconn>
Example XML string for an AppConnModelRecord: <appconn><modelrecord><column name="LastName">Smith</column> </modelrecord></appconn>
xmlString
- The XML string to convert
ApptrieveException
- - if a conversion error occurstoXMLString()
public java.lang.String get(java.lang.String elementName) throws AppConnException
elementName
- java.lang.String - the name of an element in the AppConnRecord.
AppConnException
- - if the requested element does not existpublic java.lang.String getByIndex(int index)
index
- the index of an element in the AppConnRecord.
public int getCount()
public java.util.Map getElements()
public java.util.List getElementNames()
public java.util.List getElementValues()
public java.util.Locale getLocale()
setLocale(java.util.Locale)
public int getRecordType()
public void setLocale(java.util.Locale locale) throws AppConnException
locale
- Locale - the Locale to use in the AppConnRecord.
AppConnException
- - if a parameter error occursgetLocale()
public java.lang.String toString()
Note: This method requires that xercesImpl.jar and xmlParserAPIs.jar are present in the classpath. The JRE supplied with VHI supplies these added jars in the lib/endorsed directory, but they are not present by default.
toString
in class java.lang.Object
public java.lang.String toXMLString() throws ApptrieveException
Example XML output: <appconn><modelrecord><attribute name="LastName">Smith</attribute> </modelrecord></appconn>
Note: This method requires that xercesImpl.jar and xmlParserAPIs.jar are present in the classpath. The JRE supplied with VHI supplies these added jars in the lib/endorsed directory, but they are not present by default.
ApptrieveException
- - if a conversion error occursfromXMLString(java.lang.String)
public java.lang.String toXMLString(java.net.URL urlDTD) throws ApptrieveException
Note: This method requires that xercesImpl.jar and xmlParserAPIs.jar are present in the classpath. The JRE supplied with VHI supplies these added jars in the lib/endorsed directory, but they are not present by default.
urlDTD
- URL - the URL for the DTD to use during conversion
ApptrieveException
- - if a conversion error occursfromXMLString(java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |