|
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 | +--javax.swing.tree.DefaultMutableTreeNode | +--com.klg.jclass.datasource.DataSourceTreeNode | +--com.klg.jclass.higrid.SummaryMetaData
SummaryMetaData
is the base class for the
meta data for a summary record type.
Field Summary |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Fields inherited from interface com.klg.jclass.datasource.MetaDataModel |
COMMIT_LEAVING_ANCESTOR, COMMIT_LEAVING_RECORD, COMMIT_MANUALLY, TYPE_BIG_DECIMAL, TYPE_BOOLEAN, TYPE_BYTE, TYPE_BYTE_ARRAY, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INTEGER, TYPE_LONG, TYPE_OBJECT, TYPE_SHORT, TYPE_SQL_DATE, TYPE_SQL_TIME, TYPE_SQL_TIMESTAMP, TYPE_STRING, TYPE_UTIL_DATE |
Constructor Summary | |
SummaryMetaData()
SummaryMetaData Constructor. |
Method Summary | |
void |
addColumn(com.klg.jclass.datasource.ColumnModel column)
Add a column to the list of column objects. |
void |
appendColumn(com.klg.jclass.higrid.SummaryColumn column)
Append a column to the end of this table. |
void |
clear()
Change the query for this data control. |
void |
commitTransaction()
Commits the transaction. |
boolean |
getAutoCommit()
Returns true if the transaction capabilities of the underlying data source should be used when saving modifications (transactions are supported and enabled). |
com.klg.jclass.datasource.BindingModel |
getBinding()
Return the Binding object associated with this MetaData level. |
boolean |
getCacheChildren()
Return a boolean flag indicating whether subtrees of DataTables rooted at this level are eligable for deletion. |
com.klg.jclass.higrid.SummaryColumn |
getColumn(String name)
Return the summary column given the column identifier. |
int |
getColumnCount()
Return number of columns in this result set |
String |
getColumnIdentifier(int column_index)
Return a string which identifies this column. |
int |
getColumnIndex(String name)
Given a column identifier get its index. |
com.klg.jclass.datasource.ColumnModel |
getColumnObject(String column_identifier)
Return the ColumnModel for the given column. |
Vector |
getColumnObjects()
Return the list of ColumnModel objects. |
int |
getCommitPolicy()
Return the commit policy for this level. |
long |
getCurrentBookmark()
Return the bookmark of the row currently in focus. |
com.klg.jclass.datasource.DataTableModel |
getCurrentDataTable()
Return the data table which currently has focus. |
com.klg.jclass.datasource.DataModel |
getDataModel()
Return the DataModel which encapsulates this MetaDataModel. |
boolean |
getDeleteAllowed(String table)
Return true if this table can be deleted, false otherwise. |
String |
getDescription()
Return the user-assigned description of this instance, or "" if the description has not been set. |
boolean |
getInsertAllowed(String table)
Return true if this table can be inserted into, false otherwise. |
int |
getJavaColumnType(String column_identifier)
Return the Java type for a column. |
int |
getMaxRows()
Return the maximum number of rows which can be returned by a query. |
int |
getMetaID()
Return an int which uniquely identifies this instance of the MetaDataModel. |
Object |
getNativeMetaData()
Return the native meta data object. |
com.klg.jclass.datasource.ProviderModel |
getProvider()
Get the provider (if any) for this level. |
boolean |
getShowDeletedRows()
Show logically deleted rows? |
Class |
getStoreClass()
Return the class responsible for data storage and retrieval (implements StoreModel). |
boolean |
getUpdateAllowed(String table)
Return true if this table can be updated, false otherwise. |
void |
insertColumn(com.klg.jclass.higrid.SummaryColumn column,
int index)
Insert a column to this table. |
boolean |
isUpdateAllowedOnColumn(String column)
Do permissions on the model allow this column to be editied? |
void |
removeColumn(int index)
Remove a column from this table. |
void |
removeColumn(com.klg.jclass.higrid.SummaryColumn column)
Remove a column from this table. |
void |
rollbackTransaction()
Rolls back the transaction. |
void |
setAutoCommit(boolean value)
Sets the auto commit flag. |
void |
setBinding(com.klg.jclass.datasource.BindingModel binding)
Set the Binding object associated with this MetaData level. |
void |
setCacheChildren(boolean cacheChildren)
Sets a boolean indicating whether subtrees of DataTables rooted at this level are eligable for deletion. |
void |
setCommitPolicy(int commit_policy)
Set the commit policy for this level. |
void |
setCurrentBookmark(long currentBookmark)
|
void |
setCurrentDataTable(com.klg.jclass.datasource.DataTableModel currentDataTable)
|
void |
setDeleteAllowed(String table,
boolean v)
Set a boolean indicating if rows in this table is allowed to be deleted. |
void |
setDescription(String description)
Set the user-assigned description of this instance. |
void |
setInsertAllowed(String table,
boolean v)
Set a boolean indicating if this table is allowed to be inserted into. |
void |
setMaxRows(int maxRows)
Set the maximum number of rows a query at this level can return. |
void |
setMetaID(int metaID)
Set an int which uniquely identifies this instance of the MetaDataModel. |
void |
setProviderClassName(String providerModelClassName)
Set the ProviderModel class name which will provide data for this level. |
void |
setShowDeletedRows(boolean value)
Indicate if logically deleted rows showld be shown |
void |
setStoreClass(String storeClassName)
Set an alternate class to handle data storage and retrieval responsibilities. |
void |
setUpdateAllowed(String table,
boolean v)
Set a boolean indicating if this table is allowed to be updated. |
protected void |
setupIdentifiers()
Setup the identifiers hashtable. |
void |
setupSumaryColumns(Vector columns)
Setup the summary columns. |
Methods inherited from class com.klg.jclass.datasource.DataSourceTreeNode |
getChildren, getFirstChild, getIterator, getIterator, getIterator, getIterator, getLastChild, getNextChild, getPreviousChild, hasChildren, insert, isChildOf, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.swing.tree.TreeNode |
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf |
Constructor Detail |
public SummaryMetaData()
Method Detail |
public void setMetaID(int metaID)
setMetaID
in interface MetaDataModel
metaID
- An int which uniquely identifies this object.MetaDataModel.getMetaID()
public void appendColumn(com.klg.jclass.higrid.SummaryColumn column)
column
- The summary column object.public void insertColumn(com.klg.jclass.higrid.SummaryColumn column, int index)
column
- The summary column object.index
- The index position to insert the object.public void removeColumn(com.klg.jclass.higrid.SummaryColumn column)
column
- The summary column object.public void removeColumn(int index)
index
- The index position to insert the object.public com.klg.jclass.higrid.SummaryColumn getColumn(String name)
name
- A String indicating the column's identifier
public void setupSumaryColumns(Vector columns)
columns
- The summary column vectors.protected void setupIdentifiers()
public int getColumnIndex(String name)
getColumnIndex
in interface MetaDataModel
name
- A String indicating the column's identifier
public void clear()
clear
in interface MetaDataModel
public String getColumnIdentifier(int column_index) throws DataModelException
getColumnIdentifier
in interface MetaDataModel
column_index
- An int indicating the column for which
an identifier should be returned.
DataModelException
- If the operation fails.public int getColumnCount()
getColumnCount
in interface MetaDataModel
public int getJavaColumnType(String column_identifier) throws DataModelException
getJavaColumnType
in interface MetaDataModel
column_identifier
- An String uniquely identifying a column
DataModelException
- If the operation fails.MetaDataModel
public void setCommitPolicy(int commit_policy)
setCommitPolicy
in interface MetaDataModel
commit_policy
- An int, one of COMMIT_LEAVING_RECORD,
COMMIT_LEAVING_PARENT, or COMMIT_MANUALLYpublic int getCommitPolicy()
getCommitPolicy
in interface MetaDataModel
public com.klg.jclass.datasource.DataModel getDataModel()
getDataModel
in interface MetaDataModel
public void setInsertAllowed(String table, boolean v)
setInsertAllowed
in interface MetaDataModel
table
- a String name of the tablepublic void setUpdateAllowed(String table, boolean v)
setUpdateAllowed
in interface MetaDataModel
table
- a String name of the tablepublic void setDeleteAllowed(String table, boolean v)
setDeleteAllowed
in interface MetaDataModel
table
- a String name of the tablepublic boolean getInsertAllowed(String table)
getInsertAllowed
in interface MetaDataModel
table
- a String name of the table
public boolean getUpdateAllowed(String table)
getUpdateAllowed
in interface MetaDataModel
table
- a String name of the table
public boolean getDeleteAllowed(String table)
getDeleteAllowed
in interface MetaDataModel
table
- a String name of the table
public int getMetaID()
getMetaID
in interface MetaDataModel
MetaDataModel.setMetaID(int)
public String getDescription()
getDescription
in interface MetaDataModel
public void setDescription(String description)
setDescription
in interface MetaDataModel
description
- a String which describles this instance.public boolean getAutoCommit() throws DataModelException
getAutoCommit
in interface MetaDataModel
DataModelException
- If the operation fails.commitTransaction()
,
BaseMetaData.rollbackTransaction()
public void setAutoCommit(boolean value) throws DataModelException
setAutoCommit
in interface MetaDataModel
value
- a boolean, true if transactions are to be used,
false otherwise.
DataModelException
- If the operation fails.public void rollbackTransaction() throws DataModelException
rollbackTransaction
in interface MetaDataModel
DataModelException
- If the operation fails.getAutoCommit()
public void commitTransaction() throws DataModelException
commitTransaction
in interface MetaDataModel
DataModelException
- If the operation fails.public Vector getColumnObjects()
getColumnObjects
in interface MetaDataModel
ColumnModel
public boolean isUpdateAllowedOnColumn(String column)
isUpdateAllowedOnColumn
in interface MetaDataModel
setUpdateAllowed(java.lang.String, boolean)
,
getUpdateAllowed(java.lang.String)
public void addColumn(com.klg.jclass.datasource.ColumnModel column)
addColumn
in interface MetaDataModel
ColumnModel
public com.klg.jclass.datasource.ColumnModel getColumnObject(String column_identifier) throws DataModelException
getColumnObject
in interface MetaDataModel
column_identifier
- a String which uniquely identifies a column
DataModelException
- If get fails.public Object getNativeMetaData()
getNativeMetaData
in interface MetaDataModel
public void setShowDeletedRows(boolean value)
setShowDeletedRows
in interface MetaDataModel
value
- a boolean: true to show rows, false otherwisepublic boolean getShowDeletedRows()
getShowDeletedRows
in interface MetaDataModel
public void setMaxRows(int maxRows)
Does not apply to ide-specific implmentations. Set the max rows directly on the ide data object instead.
setMaxRows
in interface MetaDataModel
maxRows
- an int indicating the max rows to be returnedgetMaxRows()
public int getMaxRows()
Does not apply to ide-specific implmentations. Set the max rows directly on the ide data object instead.
getMaxRows
in interface MetaDataModel
setMaxRows(int)
public void setCacheChildren(boolean cacheChildren)
setCacheChildren
in interface MetaDataModel
cacheChildren
- a boolean: true if deleteCacheChildren
should be called on this level when it is collapsed, false otherwise.getCacheChildren()
,
DataTableModel.deleteCacheChildren(com.klg.jclass.datasource.DataModelListener)
public boolean getCacheChildren()
getCacheChildren
in interface MetaDataModel
setCacheChildren(boolean)
,
DataTableModel.deleteCacheChildren(com.klg.jclass.datasource.DataModelListener)
public com.klg.jclass.datasource.DataTableModel getCurrentDataTable()
getCurrentDataTable
in interface MetaDataModel
public long getCurrentBookmark()
getCurrentBookmark
in interface MetaDataModel
public void setCurrentDataTable(com.klg.jclass.datasource.DataTableModel currentDataTable)
setCurrentDataTable
in interface MetaDataModel
public void setCurrentBookmark(long currentBookmark)
setCurrentBookmark
in interface MetaDataModel
public void setStoreClass(String storeClassName) throws DataModelException
If set, BaseDataTable instances will use this instances of this class rather than the default class ("Store") to store and retrieve data.
setStoreClass
in interface MetaDataModel
DataModelException
- If an error occurs loading the class.StoreModel
,
getStoreClass()
public Class getStoreClass() throws DataModelException
getStoreClass
in interface MetaDataModel
DataModelException
- If get fails.public com.klg.jclass.datasource.BindingModel getBinding()
getBinding
in interface MetaDataModel
public void setBinding(com.klg.jclass.datasource.BindingModel binding)
setBinding
in interface MetaDataModel
public com.klg.jclass.datasource.ProviderModel getProvider()
getProvider
in interface MetaDataModel
ProviderModel.getData(com.klg.jclass.datasource.DataModelListener, long, com.klg.jclass.datasource.MetaDataModel)
,
DataTableModel.createTable(com.klg.jclass.datasource.DataModelListener, long, javax.swing.tree.TreeNode)
,
DataTableModel.getTable(long, javax.swing.tree.TreeNode)
public void setProviderClassName(String providerModelClassName) throws DataModelException
setProviderClassName
in interface MetaDataModel
DataModelException
- if the provider fails
to be instantiated.
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |