|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.datasource.TreeData | +--com.klg.jclass.datasource.beans.JCData
A component that creates data connectivity with different data source objects.
NodeProperties
,
Serialized FormField Summary | |
protected Applet |
applet
The parent applet. |
protected String |
label
Label for bean |
protected com.klg.jclass.datasource.beans.MetaDataCreator |
metaDataCreator
|
protected String |
name
Name of the Bean. |
Fields inherited from class com.klg.jclass.datasource.TreeData |
currentBookmark, currentDataTable, data_tree, eventsEnabled, listeners, meta_tree, modelName, nameCounter |
Fields inherited from interface com.klg.jclass.datasource.DataTableModel |
COMMITTED, CURSOR_BEFORE_FIRST, DELETED, INSERTED, NONEXISTENT, ROOT_BOOKMARK, ROW_NOT_FOUND, UPDATED |
Constructor Summary | |
JCData()
Creates an empty data Bean of JDBC type. |
|
JCData(Applet applet,
String name)
Creates a JCData which reads parameters from the applet's HTML file. |
|
JCData(int type)
Creates a JCData using a data source type. |
Method Summary | |
void |
absolute(int ordinal_position)
Moves the cursor to this ordinal position. |
void |
addDataModelListener(com.klg.jclass.datasource.DataModelListener listener)
Adds a data model listener. |
long |
addRow(com.klg.jclass.datasource.DataModelListener originator)
Adds a row whose status will be INSERTED . |
long |
addRow(com.klg.jclass.datasource.DataModelListener originator,
Object row)
Adds a populated row whose status will be INSERTED . |
long |
addRow(com.klg.jclass.datasource.DataModelListener originator,
Object row,
int status)
Adds a populated row whose status will be status . |
long |
addRow(com.klg.jclass.datasource.DataModelListener originator,
Object row,
int status,
int ordinal)
Adds a populated row whose status will be status . |
void |
afterLast()
Positions the cursor after the last row. |
void |
beforeFirst()
Positions the cursor before the first row. |
void |
cancelAllRowChanges(com.klg.jclass.datasource.DataModelListener originator)
Cancels uncommited row changes. |
void |
cancelRowChanges(com.klg.jclass.datasource.DataModelListener originator,
long bookmark)
Cancels uncommited row changes. |
void |
clearEventQueue()
Recursively clears pending events from a transaction. |
void |
commitAll(com.klg.jclass.datasource.DataModelListener originator)
Commits all uncommited rows. |
boolean |
commitRow(com.klg.jclass.datasource.DataModelListener originator,
long bookmark)
Commits a row. |
void |
commitSubTree(com.klg.jclass.datasource.DataModelListener originator,
long subTreeRootBookmark)
Commits all pending changes in this subtree. |
void |
conditionallyCommitYourselfAndChildren(com.klg.jclass.datasource.DataModelListener originator)
Since JCData has no child,
it commits all of its changes if commitPolicy does not equal COMMIT_MANUALLY . |
protected void |
createMetaData()
|
Object |
createNewRow()
Creates a new (blank) row that can be used as an argument to one of the addRow() methods. |
com.klg.jclass.datasource.DataTableModel |
createTable(com.klg.jclass.datasource.DataModelListener originator,
long bookmark,
TreeNode node)
Creates and returns the DataTable which corresponds to the specifed row of this parent for the indicated child MetaData object. |
void |
deleteCacheChildren(com.klg.jclass.datasource.DataModelListener originator)
Deletes the subtree of DataTables rooted with this DataTable
as its root. |
void |
deleteRow(com.klg.jclass.datasource.DataModelListener originator,
long bookmark)
Deletes a row. |
boolean |
first()
Moves to the first row. |
String |
getAbout()
Gets the about property. |
void |
getAncestors(Vector ancestors)
Returns a list of this DataTable's ancestor bookmarks. |
AppletContext |
getAppletContext()
Gets the Bean's applet's context. |
static AppletContext |
getAppletContext(Applet applet)
Gets the bean's applet's context. |
int |
getCommitPolicy()
Gets commitPolicy property. |
long |
getCurrentBookmark()
Returns the bookmark of the current row. |
int |
getCurrentRowStatus()
Returns the status of the current row, will be one of |
int |
getCursor()
Gets the cursor of the data table. |
long[] |
getDeletedRowBookmarks()
Returns a long array of logically deleted row bookmarks. |
String |
getDescription()
Returns the user-assigned description of this instance, or "" if the description has not been set. |
long[] |
getInsertedRowBookmarks()
Returns a long array of inserted row bookmarks. |
Object |
getInternalData(Object user)
For internal use only. |
String |
getLabel()
Returns the value of the label property |
com.klg.jclass.datasource.MetaDataModel |
getMetaData()
Returns the meta-data of this data Bean. |
String |
getName()
Gets the name of the Bean, as set in the constructor or by setName . |
com.klg.jclass.datasource.beans.NodeProperties |
getNodeProperties()
Gets the data bean component. |
protected void |
getParameters()
Reads the parameter values from the HTML page using the data Bean's applet. |
void |
getParameters(Applet applet)
Reads the parameter values from the HTML page using the specified applet. |
void |
getParameters(Applet applet,
String file)
Reads the parameter values from the file. |
long |
getParentBookmark()
Since JCData has no parent, it always
returns -1. |
Object |
getResultData(long bookmark,
String column_identifier)
Returns the object specified by the given bookmark and column identifier name. |
long |
getRootAncestorBookmark(long i)
Since JCData
|
int |
getRowCount()
Returns the number of rows in this DataTable. |
long |
getRowIdentifier(int row)
Returns a long which will uniquely identify this row. |
int |
getRowIndex(long bookmark)
Given a bookmark, returns the zero-relative row index in this table. |
int |
getRowStatus(long bookmark)
Returns the status of a row, will be one of: |
com.klg.jclass.datasource.DataTableModel |
getTable(long bookmark,
TreeNode node)
Since JCData has no child, it always returns null. |
long[] |
getUpdatedRowBookmarks()
Returns a long array of updated row bookmarks. |
Object |
getUserData(Object user)
Gets user data. |
String |
getVersion()
Gets the value of the Version property. |
boolean |
isAfterLast()
Returns true if the cursor is positioned after the last row. |
boolean |
isBeforeFirst()
Returns true if the cursor is positioned before first row. |
boolean |
isModified()
Asks if this DataTableModel contains any pending inserts, updates or
deletes. |
boolean |
isSubTreeModified(long subTreeRootBookmark)
Does the subtree rooted at subTreeRootBookmark contain
modified nodes? Modified means the row at subTreeRootBookmark or
any of its child nodes has pending insert, update or delete changes. |
boolean |
isTableOrChildrenModified()
Asks if there are any modifications to this table or any of its child nodes. |
boolean |
last()
Moves to the last row. |
void |
moveCursorToRow(long bookmark)
Moves the cursor to the row indicated by the bookmark. |
void |
moveToRow(long bookmark)
Moves the ide cursor to this row. |
boolean |
next()
Moves to the next row. |
boolean |
previous()
Moves to the previous row. |
void |
processEventQueue(com.klg.jclass.datasource.DataModelListener originator)
Recursively processes pending events from a transaction. |
void |
relative(int rows)
Moves the cursor forward or backward by "n" rows from the current position. |
com.klg.jclass.datasource.DataTableModel |
requeryLevel()
Requery the data for the root level DataTable . |
void |
requeryRow(com.klg.jclass.datasource.DataModelListener originator,
long bookmark)
Re-reads a row from the originating data source. |
void |
requeryRowAndDetails(com.klg.jclass.datasource.DataModelListener originator,
long bookmark)
Re-reads a row from the originating data source. |
void |
requeryTable(com.klg.jclass.datasource.DataModelListener originator)
Requery all rows in this table and collapse its child nodes. |
void |
setAbout(String s)
about property is read-only. |
void |
setCommitPolicy(int commit_policy)
Sets the commit policy for this level. |
void |
setDescription(String description)
Sets the user-assigned description of this instance. |
void |
setInternalData(Object user,
Object data)
For internal use only Sets internal data. |
void |
setLabel(String label)
Sets the value of the label property. |
void |
setModelName(String s)
Sets the model name of the data Bean. |
void |
setName(String name)
Sets the name of the Bean. |
void |
setNodeProperties(com.klg.jclass.datasource.beans.NodeProperties comp)
Sets data bean component information from an existing data bean component. |
void |
setNodeProperties(String resource_name,
ClassLoader cl)
Sets the data bean component using a serialized file. |
void |
setUserData(Object user,
Object data)
Sets user data. |
void |
setVersion(String s)
Version property is read-only. |
boolean |
tableIsAncestor(com.klg.jclass.datasource.DataTableModel table2)
Given a DataTable , returns whether it is an ancestor of
(or equal to) itself. |
void |
updateCell(com.klg.jclass.datasource.DataModelListener originator,
long bookmark,
String column_identifier,
Object value)
Updates a cell. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient Applet applet
protected String name
protected String label
protected com.klg.jclass.datasource.beans.MetaDataCreator metaDataCreator
Constructor Detail |
public JCData()
public JCData(int type)
JCData
using a data source type.
type
- data source typepublic JCData(Applet applet, String name)
JCData
which reads parameters from the applet's HTML file.
applet
- the applet whose PARAM
tags are to be readname
- if this is not null, only parameters preceded by this name are readApplet.getParameter(java.lang.String)
Method Detail |
public String getName()
setName
.
.
setName(java.lang.String)
public void setName(String name)
name
- public void getParameters(Applet applet)
applet
- Applet.getParameter(java.lang.String)
public void getParameters(Applet applet, String file)
applet
- if not null and in a browser, its documentBase()
is used to construct a
complete filename, if necessaryfile
- if an http protocol is not specified (if a ":" is not present), the current working directory is usedpublic AppletContext getAppletContext()
Applet.getAppletContext()
public static AppletContext getAppletContext(Applet applet)
applet
-
Applet.getAppletContext()
protected void createMetaData() throws DataModelException
DataModelException
public void setNodeProperties(com.klg.jclass.datasource.beans.NodeProperties comp) throws DataModelException
comp
-
DataModelException
- If meta data cannot be created.public com.klg.jclass.datasource.beans.NodeProperties getNodeProperties()
setNodeProperties(com.klg.jclass.datasource.beans.NodeProperties)
public void setNodeProperties(String resource_name, ClassLoader cl) throws DataModelException
resource_name
- resource name relative to a class loader
to the data bean componentcl
- class loader used to get the resource
DataModelException
- If meta data cannot be created.public int getCommitPolicy()
commitPolicy
property.
setCommitPolicy(int)
public void setCommitPolicy(int commit_policy) throws DataModelException
MetaDataModel.COMMIT_LEAVING_RECORD
MetaDataModel.COMMIT_LEAVING_ANCESTOR
MetaDataModel.COMMIT_MANUALLY
commit_policy
- an int, one of
MetaDataModel.COMMIT_LEAVING_RECORD
MetaDataModel.COMMIT_LEAVING_ANCESTOR
MetaDataModel.COMMIT_MANUALLY
DataModelException
- If commit policy cannot be set.public String getDescription()
public void setDescription(String description)
description
- a String which describles this instancepublic void setModelName(String s)
setModelName
in interface DataModel
setModelName
in class TreeData
s
- public String getAbout()
about
property.
The about
property displays contact information for
Quest Software.
public void setAbout(String s)
about
property is read-only.
s
- public String getVersion()
Version
property.
The Version
property specifies the JClass datasource version number.
public void setVersion(String s)
Version
property is read-only.
s
- public void addDataModelListener(com.klg.jclass.datasource.DataModelListener listener)
addDataModelListener
in interface DataModel
addDataModelListener
in class TreeData
listener
- DataModelListener
public int getCurrentRowStatus() throws DataModelException
DataTableModel.INSERTED
DataTableModel.UPDATED
DataTableModel.DELETED
DataTableModel.COMMITTED
DataTableModel.INSERTED
DataTableModel.UPDATED
DataTableModel.DELETED
DataTableModel.COMMITTED
DataModelException
- If getCurrentRowStatus()
fails.DataTableModel.getRowStatus(long)
,
DataTableModel
public int getRowCount()
DataTableModel
getRowCount
in interface DataTableModel
DataTableModel.getRowStatus(long)
public int getRowStatus(long bookmark)
DataTableModel.INSERTED
DataTableModel.UPDATED
DataTableModel.DELETED
DataTableModel.COMMITTED
getRowStatus
in interface DataTableModel
bookmark
- a long which uniquely identifies this row
DataTableModel.INSERTED
DataTableModel.UPDATED
DataTableModel.DELETED
DataTableModel.COMMITTED
DataTableModel.getRowStatus(long)
public long getRowIdentifier(int row)
getRowIdentifier
in interface DataTableModel
row
- an int for the original index of this row
DataTableModel.getRowIdentifier(int)
public Object getResultData(long bookmark, String column_identifier) throws DataModelException
DataTableModel
getResultData
in interface DataTableModel
bookmark
- column_identifier
-
DataModelException
- If getResultData()
fails.DataTableModel.getResultData(long, java.lang.String)
public com.klg.jclass.datasource.DataTableModel createTable(com.klg.jclass.datasource.DataModelListener originator, long bookmark, TreeNode node) throws DataModelException
DataTableModel
createTable
in interface DataTableModel
originator
- the DataModelListener
which initiated this actionbookmark
- node
-
DataTableModel
of results
DataModelException
- If createTable()
fails.DataTableModel.createTable(com.klg.jclass.datasource.DataModelListener, long, javax.swing.tree.TreeNode)
public com.klg.jclass.datasource.DataTableModel getTable(long bookmark, TreeNode node)
JCData
has no child, it always returns null.
getTable
in interface DataTableModel
bookmark
- a long which uniquely identifies a rownode
- the MetaDataModel
object
DataTableModel.getTable(long, javax.swing.tree.TreeNode)
public com.klg.jclass.datasource.MetaDataModel getMetaData()
getMetaData
in interface DataTableModel
MetaDataModel
Object for this tableDataTableModel.getMetaData()
public long getParentBookmark()
JCData
has no parent, it always
returns -1.
getParentBookmark
in interface DataTableModel
DataTableModel.getParentBookmark()
public void deleteRow(com.klg.jclass.datasource.DataModelListener originator, long bookmark) throws DataModelException
deleteRow
in interface DataTableModel
originator
- the DataModelListener
which initiated this actionbookmark
- a unique long indicating the row to be deleted
DataModelException
- If logical delete fails.DataTableModel.deleteRow(com.klg.jclass.datasource.DataModelListener, long)
public void updateCell(com.klg.jclass.datasource.DataModelListener originator, long bookmark, String column_identifier, Object value) throws DataModelException
updateCell
in interface DataTableModel
originator
- the DataModelListener
which initiated this actionbookmark
- a unique long indicating in which row
the change was madecolumn_identifier
- a unique String indicating in which
column the change occurredvalue
- the Object
to be placed in the cell
DataModelException
- If error occurs updating a cell.DataTableModel.updateCell(com.klg.jclass.datasource.DataModelListener, long, java.lang.String, java.lang.Object)
public boolean commitRow(com.klg.jclass.datasource.DataModelListener originator, long bookmark) throws DataModelException
commitRow
in interface DataTableModel
originator
- the DataModelListener
which initiated this actionbookmark
- a unique long indicating which row
to commit to the datasource
true
if commit succeeds, false
if it fails or was cancelled
DataModelException
- If commit fails.DataTableModel.commitRow(com.klg.jclass.datasource.DataModelListener, long)
public void commitAll(com.klg.jclass.datasource.DataModelListener originator) throws DataModelException
commitAll
in interface DataTableModel
originator
- the DataModelListener
which initiated this action
DataModelException
- If any row fails to commit.DataTableModel.commitAll(com.klg.jclass.datasource.DataModelListener)
public void cancelRowChanges(com.klg.jclass.datasource.DataModelListener originator, long bookmark) throws DataModelException
cancelRowChanges
in interface DataTableModel
originator
- the DataModelListener
which initiated this actionbookmark
- a unique long indicating which row to uncommit
DataModelException
- If changes can't be canceled.DataTableModel.cancelRowChanges(com.klg.jclass.datasource.DataModelListener, long)
public void cancelAllRowChanges(com.klg.jclass.datasource.DataModelListener originator) throws DataModelException
cancelAllRowChanges
in interface DataTableModel
originator
- the DataModelListener
which initiated this action
DataModelException
- If changes can't be canceled.DataTableModel.cancelRowChanges(com.klg.jclass.datasource.DataModelListener, long)
public void getAncestors(Vector ancestors)
getAncestors
in interface DataTableModel
ancestors
-
DataTableModel.getAncestors(java.util.Vector)
public long getRootAncestorBookmark(long i)
JCData
getRootAncestorBookmark
in interface DataTableModel
i
-
DataTableModel.getRootAncestorBookmark(long)
public void requeryRowAndDetails(com.klg.jclass.datasource.DataModelListener originator, long bookmark) throws DataModelException
requeryRowAndDetails
in interface DataTableModel
originator
- the DataModelListener
which initiated this actionbookmark
-
DataModelException
- If requery from server fails.DataTableModel.requeryRowAndDetails(com.klg.jclass.datasource.DataModelListener, long)
public void requeryRow(com.klg.jclass.datasource.DataModelListener originator, long bookmark) throws DataModelException
requeryRow
in interface DataTableModel
originator
- the DataModelListener
which initiated this actionbookmark
- a long which uniquely identifies a row
DataModelException
- If requery from server fails.DataTableModel.requeryRow(com.klg.jclass.datasource.DataModelListener, long)
public com.klg.jclass.datasource.DataTableModel requeryLevel() throws DataModelException
DataTable
.
requeryLevel
in interface DataTableModel
DataModelException
- If requery from server fails.DataTableModel.requeryLevel()
public int getCursor()
getCursor
in interface DataTableModel
public void moveCursorToRow(long bookmark) throws DataModelException
moveCursorToRow
in interface DataTableModel
bookmark
-
DataModelException
- If move fails.public void relative(int rows) throws DataModelException
relative
in interface DataTableModel
rows
- an int indicating the number of rows to move
DataModelException
- If move fails.DataTableModel.getCurrentBookmark()
public void absolute(int ordinal_position) throws DataModelException
absolute
in interface DataTableModel
ordinal_position
- an int indicating to which row to move
DataModelException
- If move fails.DataTableModel.getCurrentBookmark()
public boolean first()
first
in interface DataTableModel
public boolean previous()
previous
in interface DataTableModel
public boolean next()
next
in interface DataTableModel
public boolean last()
last
in interface DataTableModel
public void beforeFirst()
beforeFirst
in interface DataTableModel
public void afterLast()
afterLast
in interface DataTableModel
public boolean isBeforeFirst()
true
if the cursor is positioned before first row.
isBeforeFirst
in interface DataTableModel
true
if cursor is positioned before first row, false
otherwisepublic boolean isAfterLast()
true
if the cursor is positioned after the last row.
isAfterLast
in interface DataTableModel
true
if the cursor is positioned after the last row, false
otherwiseDataTableModel.getCurrentBookmark()
public long getCurrentBookmark() throws DataModelException
getCurrentBookmark
in interface DataTableModel
DataModelException
- If there are no rows or
or an error occurs.DataTableModel.getCurrentBookmark()
public Object getUserData(Object user)
getUserData
in interface DataTableModel
user
- an Object, a reference to the user
DataTableModel.getUserData(java.lang.Object)
public void setUserData(Object user, Object data)
setUserData
in interface DataTableModel
user
- an Object, a reference to the userdata
- an Object, an arbitrary reference to an ObjectDataTableModel.setUserData(java.lang.Object, java.lang.Object)
public void conditionallyCommitYourselfAndChildren(com.klg.jclass.datasource.DataModelListener originator) throws DataModelException
JCData
has no child,
it commits all of its changes if commitPolicy
does not equal COMMIT_MANUALLY
.
conditionallyCommitYourselfAndChildren
in interface DataTableModel
originator
-
DataModelException
- If write to data source fails.DataTableModel.conditionallyCommitYourselfAndChildren(com.klg.jclass.datasource.DataModelListener)
public void processEventQueue(com.klg.jclass.datasource.DataModelListener originator) throws DataModelException
processEventQueue
in interface DataTableModel
originator
- the DataModelListener
which initiated this action
DataModelException
- If changes can't be processed.DataTableModel.processEventQueue(com.klg.jclass.datasource.DataModelListener)
public void clearEventQueue()
clearEventQueue
in interface DataTableModel
DataTableModel.clearEventQueue()
public int getRowIndex(long bookmark)
getRowIndex
in interface DataTableModel
bookmark
- a long which uniquely identifies a row
DataTableModel.getRowIndex(long)
public void deleteCacheChildren(com.klg.jclass.datasource.DataModelListener originator) throws DataModelException
DataTables
rooted with this DataTable
as its root.
deleteCacheChildren
in interface DataTableModel
originator
- the DataModelListener
which initiated this action
DataModelException
- If tables can't be deleted.DataTableModel.deleteCacheChildren(com.klg.jclass.datasource.DataModelListener)
public Object getInternalData(Object user)
getInternalData
in interface DataTableModel
user
- an Object, a reference to the user.
DataTableModel.getInternalData(java.lang.Object)
public void setInternalData(Object user, Object data)
setInternalData
in interface DataTableModel
user
- an Object, a reference to the userdata
- an Object, an arbitrary reference to an ObjectDataTableModel.setInternalData(java.lang.Object, java.lang.Object)
public void moveToRow(long bookmark) throws DataModelException
moveToRow
in interface DataTableModel
bookmark
- a long which uniquely identifies a row
DataModelException
- If move fails.DataTableModel.moveToRow(long)
public boolean isSubTreeModified(long subTreeRootBookmark)
subTreeRootBookmark
contain
modified nodes? Modified means the row at subTreeRootBookmark
or
any of its child nodes has pending insert, update or delete changes.
isSubTreeModified
in interface DataTableModel
subTreeRootBookmark
- a long, the bookmark of the row which is
the root of the subtree to be checked
true
if this subtree contains at least one modified
node, false
otherwisepublic boolean isTableOrChildrenModified()
isTableOrChildrenModified
in interface DataTableModel
true
if there are modifications to this table or any of its
child nodespublic void commitSubTree(com.klg.jclass.datasource.DataModelListener originator, long subTreeRootBookmark) throws DataModelException
commitSubTree
in interface DataTableModel
originator
- the DataModelListener
which initiated this actionsubTreeRootBookmark
- a long, the bookmark of the row which is
the root of the subtree to be checked
DataModelException
- If commit fails.public boolean isModified()
DataTableModel
contains any pending inserts, updates or
deletes.
isModified
in interface DataTableModel
isModified
in class TreeData
true
if there are pending modifications, false
otherwisepublic long[] getUpdatedRowBookmarks()
getUpdatedRowBookmarks
in interface DataTableModel
public long[] getInsertedRowBookmarks()
getInsertedRowBookmarks
in interface DataTableModel
public long[] getDeletedRowBookmarks()
getDeletedRowBookmarks
in interface DataTableModel
public boolean tableIsAncestor(com.klg.jclass.datasource.DataTableModel table2)
DataTable
, returns whether it is an ancestor of
(or equal to) itself.
tableIsAncestor
in interface DataTableModel
table2
- a DataTable
which may be an ancestor
true
if the table is an ancestorprotected void getParameters()
super.getParameters()
.
public long addRow(com.klg.jclass.datasource.DataModelListener originator) throws DataModelException
INSERTED
.
Adds a blank row into which the user can input column data.
The record is appended to this ResultSet
. The record is saved to datasource
when the user commits the surrounding transaction.
Fires BEFORE_INSERT_ROW
and upon a successful row adds AFTER_INSERT_ROW
.
addRow
in interface DataTableModel
originator
- the DataModelListener
which initiated this action
DataModelException
- If row fails to be added.public long addRow(com.klg.jclass.datasource.DataModelListener originator, Object row, int status) throws DataModelException
status
.
Adds a pre-populated row whose status is dictated by the
status
parameter.
Fires BEFORE_INSERT_ROW
and upon a successful row adds AFTER_INSERT_ROW
.
addRow
in interface DataTableModel
row
- an Object as defined by the interface, but used as an array
by this implementationstatus
- an int, one of:
DataTableModel.COMMITTED
DataTableModel.DELETED
DataTableModel.INSERTED
originator
-
DataModelException
- If row fails to be added.public long addRow(com.klg.jclass.datasource.DataModelListener originator, Object row, int status, int ordinal) throws DataModelException
status
.
Adds a pre-populated row whose status is dictated by the
status
parameter.
Fires BEFORE_INSERT_ROW
and upon a successful row adds AFTER_INSERT_ROW
.
addRow
in interface DataTableModel
row
- an Object as defined by the interface, but used as an array
by this implementationstatus
- an int, one of:
DataTableModel.COMMITTED
DataTableModel.DELETED
DataTableModel.INSERTED
ordinal
- the index position into which the row should be insertedoriginator
-
DataModelException
- If row fails to be added.public long addRow(com.klg.jclass.datasource.DataModelListener originator, Object row) throws DataModelException
INSERTED
.
Adds a pre-populated row.
The record is appended to this ResultSet
. The record is saved to datasource
when the user commits the surrounding transaction.
Fires BEFORE_INSERT_ROW
and upon a successful row adds AFTER_INSERT_ROW
.
addRow
in interface DataTableModel
originator
- the DataModelListener
which initiated this actionrow
- an Object as defined by the interface, but used as an array
by this implementation
DataModelException
- If row fails to be added.public Object createNewRow() throws DataModelException
addRow()
methods.
createNewRow
in interface DataTableModel
DataModelException
- If create fails.public void requeryTable(com.klg.jclass.datasource.DataModelListener originator) throws DataModelException
requeryTable
in interface DataTableModel
originator
- the DataModelListener
which initiated this action
DataModelException
- If requery fails.public String getLabel()
public void setLabel(String label)
label
-
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |