|
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.beans.SerializedProperties | +--com.klg.jclass.datasource.beans.NodeProperties
This class encapsulates information related to data source. For IDE data sources, variable name of the data source is stored.
Field Summary | |
static int |
ARRAY
Array data source type |
static int |
DELETE_ALLOWED_INDEX
index of DELETE_ALLOWED |
static int |
INSERT_ALLOWED_INDEX
index of INSERT_ALLOWED |
static int |
JBUILDER
JBuilder data source type |
static int |
JDBC
JDBC data source type |
static int |
POWERJ
PowerJ data source type |
protected String |
providerName
If delegation is used, this will be the name of the class providing data |
static int |
UNBOUND
Unbound data source type |
protected Vector |
unboundColumns
|
static int |
UNKNOWN
Unknown data source type |
static int |
UPDATE_ALLOWED_INDEX
index of UPDATE_ALLOWED |
static int |
VCAFE
VisualCafe data source type |
Fields inherited from class com.klg.jclass.datasource.beans.SerializedProperties |
defaultSerializationFileBase, resourceName, serializationFile |
Constructor Summary | |
NodeProperties()
Constructs a NodeProperties. |
|
NodeProperties(int type,
String data_source_name)
Constructs a NodeProperties. |
|
NodeProperties(int type,
String data_source_name,
String description,
String model_name)
Constructs a NodeProperties. |
|
NodeProperties(String resource_name,
Class caller_class)
Constructs a NodeProperties from a resource relative to a class loader of a caller class. |
|
NodeProperties(String resource_name,
ClassLoader cl)
Constructs a NodeProperties from a resource relative to a class loader. |
|
NodeProperties(String resource_name,
ClassLoader cl,
Object data_source)
Constructs a NodeProperties from a resource relative to a class loader. |
|
NodeProperties(String resource_name,
Class caller_class,
Object data_source)
Constructs a NodeProperties from a resource relative to a class loader of a caller class. |
|
NodeProperties(String resource_name,
Class caller_class,
String sfile)
Constructs a NodeProperties from a resource. |
|
NodeProperties(String resource_name,
Class caller_class,
String sfile,
Object data_source)
Constructs a NodeProperties from a resource. |
Method Summary | |
void |
addJoin(String parent_column,
String column)
Adds a join column pair. |
void |
addUnboundColumn(com.klg.jclass.datasource.ColumnModel c)
|
void |
addVirtualColumn(com.klg.jclass.datasource.BaseVirtualColumn vc)
Adds a virtual column. |
boolean |
equals(Object o)
Compares all properties of NodeProperties to check equality. |
boolean |
getAutoCommit()
Gets the autoCommit property. |
boolean |
getCacheChildren()
Gets the cacheChildren property. |
int |
getCommitPolicy()
Gets the commitPolicy property. |
com.klg.jclass.datasource.jdbc.DataTableConnection |
getConnection()
Gets DataTableConnection and establishs a JDBC connection. |
String |
getDatabase()
Gets the database. |
Object |
getDataSource()
Gets the data source. |
String |
getDataSourceName()
Gets the data source name. |
int |
getDataSourceType()
Gets the data source type. |
String |
getDescription()
Gets the description of data bean component. |
String |
getDriver()
Gets the driver. |
String |
getDriverTable()
Gets the driver table in a select statement. |
Vector |
getDriverTablePrimaryKeys()
Gets the primary key columns of the driver table. |
String[][] |
getJoins()
Gets all the join columns. |
int |
getMetaID()
Returns an int which uniquely identifies this instance of the MetaDataModel. |
String |
getModelName()
Sets the model name. |
com.klg.jclass.datasource.beans.NodeProperties |
getParentNodeProperties()
Gets the parent data bean component property. |
String |
getPassword()
Gets the password for the database. |
boolean |
getPromptUserForLogin()
Get boolean if user is prompted for login. |
String |
getProviderName()
|
static String |
getSerializedVersion()
Gets the serialized version of the bean component currently being de-serialized. |
boolean |
getShowDeletedRows()
Gets the showDeletedRows property. |
String |
getStatement()
Gets the SQL statement. |
Hashtable |
getTableAccess()
Gets the data access of all the tables in the data source. |
Vector |
getUnboundColumns()
|
String |
getURL()
Gets the connection url. |
boolean |
getUseParentConnection()
Gets the useParentConnection property. |
String |
getUser()
Gets the username parameter. |
String |
getVCClassName()
Gets the Visual Cafe QueryNavigator class name. |
String |
getVCFullName()
Gets the Visual Cafe data binding full name. |
static String |
getVersion()
Gets the current version. |
com.klg.jclass.datasource.BaseVirtualColumn |
getVirtualColumn(String column_name)
Gets a virtual column by column name. |
Vector |
getVirtualColumns()
Gets all virtual columns. |
boolean |
isExpertMode()
Indicates if expert mode is used. |
static boolean |
isIDEDataSourceType(int type)
The data source of the data component is JBuilder, Visual Cafe or PowerJ. |
void |
removeAllJoins()
Removes all the join columns. |
void |
removeAllVirtualColumns()
Removes all virtual columns. |
void |
removeJoin(String parent_column,
String column)
Removes a join column pair. |
void |
removeTableAccess(String alias)
Removes the data access of the table in the data source. |
void |
removeUnboundColumn(com.klg.jclass.datasource.ColumnModel c)
|
void |
removeVirtualColumn(com.klg.jclass.datasource.BaseVirtualColumn vc)
Removes a virtual column. |
void |
resetConnection()
Resets the connection to null. |
void |
setAutoCommit(boolean auto_commit)
Sets the autoCommit property. |
void |
setCacheChildren(boolean v)
Sets the cacheChildren property. |
void |
setChanged()
Override to set isSerializationRequired to true. |
void |
setCommitPolicy(int commit_policy)
Sets the commit policy for this level. |
void |
setDatabase(String s)
Sets the database. |
void |
setDataSource(Object o)
Sets the data source. |
void |
setDataSourceName(String s)
Sets the data source name. |
void |
setDataSourceType(int type)
Sets data source type. |
void |
setDescription(String description)
Sets the description of data bean component. |
void |
setDriver(String s)
Sets the driver. |
void |
setDriverTable(String s)
Sets the driver table in a select statement. |
void |
setDriverTablePrimaryKeys(Vector v)
Sets the primary key columns of the driver table. |
void |
setExpertMode(boolean v)
Sets to use expert mode or not. |
void |
setJDBCInfo(String driver,
String url,
String user,
String password,
String database)
Sets the JDBC information. |
void |
setMetaID(int id)
Assigns a unique id to a meta data instance. |
void |
setModelName(String s)
Sets the model name. |
void |
setParentNodeProperties(com.klg.jclass.datasource.beans.NodeProperties parent)
Sets the parent data bean component property. |
void |
setPassword(String s)
Sets the password for the database. |
void |
setPromptUserForLogin(boolean v)
Set if user is prompted for login. |
void |
setProviderName(String providerName)
|
void |
setShowDeletedRows(boolean v)
Sets the showDeletedRows property. |
void |
setStatement(String s)
Sets the SQL statement. |
void |
setTableAccess(String alias,
Boolean[] access)
Sets the data access type for all the tables in the data source. |
void |
setURL(String s)
Sets the connection url. |
void |
setUseParentConnection(boolean v)
Sets a boolean indicating if this data source uses the parent JDBC connection. |
void |
setUser(String s)
Sets the username parameter. |
void |
setVCClassName(String s)
Sets the Visual Cafe QueryNavigator class name. |
void |
setVCFullName(String s)
Sets the Visual Cafe data binding full name. |
String |
toString()
|
Methods inherited from class com.klg.jclass.datasource.beans.SerializedProperties |
addJCDataListener, fireJCDataEvent, fromFile, fromResource, fromResource, getDefaultSerializationFile, getDefaultSerializationFileToOpen, getResourceName, getSerializationFile, isResourceNameSpecified, isSameString, isSerializationRequired, removeJCDataListener, setDefaultSerializationFileBase, setResourceName, setSerializationFile, toFile |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int JBUILDER
public static final int JDBC
public static final int POWERJ
public static final int VCAFE
public static final int ARRAY
public static final int UNBOUND
public static final int UNKNOWN
public static final int INSERT_ALLOWED_INDEX
public static final int UPDATE_ALLOWED_INDEX
public static final int DELETE_ALLOWED_INDEX
protected String providerName
protected Vector unboundColumns
Constructor Detail |
public NodeProperties()
public NodeProperties(int type, String data_source_name)
type
- data source typedata_source_name
- variable name of data source for the typepublic NodeProperties(int type, String data_source_name, String description, String model_name)
type
- data source typedata_source_name
- variable name of data source for the typedescription
- description of the data bean component.public NodeProperties(String resource_name, ClassLoader cl) throws DataModelException
DataModelException
- If the component can't be instantiated.public NodeProperties(String resource_name, ClassLoader cl, Object data_source) throws DataModelException
DataModelException
- If the component can't be instantiated.public NodeProperties(String resource_name, Class caller_class, String sfile) throws DataModelException
resource_name
- resource name relative to a class loader
to the bean component. It must have the right extension.caller_class
- class that uses the serialized bean component.sfile
- serialization file that is used at design-time in JBuilder to
load a NodeProperties.
DataModelException
- If the class can't be loaded.ClassLoader
public NodeProperties(String resource_name, Class caller_class, String sfile, Object data_source) throws DataModelException
resource_name
- resource name relative to a class loader
to the bean component. It must have the right extension.caller_class
- class that uses the serialized bean component.sfile
- serialization file that is used at design-time in JBuilder to
load a NodeProperties.
DataModelException
- If the class can't be loaded.ClassLoader
public NodeProperties(String resource_name, Class caller_class) throws DataModelException
DataModelException
- If the component can't be instantiated.public NodeProperties(String resource_name, Class caller_class, Object data_source) throws DataModelException
DataModelException
- If the component can't be instantiated.Method Detail |
public void setModelName(String s)
public String getModelName()
public int getMetaID()
setMetaID(int)
public void setMetaID(int id)
id
- an int which is the unique id for this instancegetMetaID()
public String getDescription()
public void setDescription(String description)
public void setDataSourceType(int type)
public int getDataSourceType()
public void setVCClassName(String s)
public String getVCClassName()
public void setVCFullName(String s)
public String getVCFullName()
public void setDataSourceName(String s)
public String getDataSourceName()
public void setDataSource(Object o)
public Object getDataSource()
public int getCommitPolicy()
BaseMetaData.setCommitPolicy(int)
public void setCommitPolicy(int commit_policy)
commit_policy
- an int, one of MetaDataModel.COMMIT_LEAVING_RECORD,
MetaDataModel.COMMIT_LEAVING_PARENT, or MetaDataModel.COMMIT_MANUALLYpublic boolean getAutoCommit()
setAutoCommit(boolean)
public void setAutoCommit(boolean auto_commit)
MetaDataModel.setAutoCommit(boolean)
public boolean getShowDeletedRows()
setShowDeletedRows(boolean)
public void setShowDeletedRows(boolean v)
MetaDataModel.setShowDeletedRows(boolean)
public boolean getCacheChildren()
setCacheChildren(boolean)
public void setCacheChildren(boolean v)
MetaDataModel.setCacheChildren(boolean)
public static boolean isIDEDataSourceType(int type)
public void setTableAccess(String alias, Boolean[] access)
alias
- alias or qualified name of a tablepublic Hashtable getTableAccess()
public void removeTableAccess(String alias)
alias
- alias or qualified name of a tablepublic void addVirtualColumn(com.klg.jclass.datasource.BaseVirtualColumn vc)
vc
- virtual column to be added.BaseVirtualColumn
public void removeVirtualColumn(com.klg.jclass.datasource.BaseVirtualColumn vc)
vc
- virtual column to be removed.BaseVirtualColumn
public void removeAllVirtualColumns()
BaseVirtualColumn
public Vector getVirtualColumns()
public com.klg.jclass.datasource.BaseVirtualColumn getVirtualColumn(String column_name)
public void setProviderName(String providerName)
public String getProviderName()
public Vector getUnboundColumns()
public void addUnboundColumn(com.klg.jclass.datasource.ColumnModel c)
public void removeUnboundColumn(com.klg.jclass.datasource.ColumnModel c)
public void setPromptUserForLogin(boolean v)
public boolean getPromptUserForLogin()
public void setJDBCInfo(String driver, String url, String user, String password, String database) throws Exception
Exception
- If setJDBCInfo fails.public void setDriver(String s) throws Exception
Exception
- If setDriver fails.public String getDriver()
public void setURL(String s) throws Exception
Exception
- If setURL fails.public String getURL()
public void setUser(String s) throws Exception
Exception
- If setUser fails.public String getUser()
public void setPassword(String s) throws Exception
Exception
- If setPassword fails.public String getPassword()
public void setDatabase(String s) throws Exception
Exception
- If setDatabase fails.public String getDatabase()
public void setStatement(String s) throws Exception
Exception
- If setStatement fails.public String getStatement()
public boolean isExpertMode()
public void setExpertMode(boolean v)
public void setDriverTable(String s) throws Exception
Exception
- If setDriverTable fails.public String getDriverTable()
public void setDriverTablePrimaryKeys(Vector v) throws Exception
Exception
- If setDriverTablePrimaryKeys fails.public Vector getDriverTablePrimaryKeys()
public boolean getUseParentConnection()
setUseParentConnection(boolean)
public void setUseParentConnection(boolean v)
v
- a boolean indicating if parent connection is used.public com.klg.jclass.datasource.jdbc.DataTableConnection getConnection() throws DataModelException
DataModelException
- If the connection fails.public void resetConnection()
public com.klg.jclass.datasource.beans.NodeProperties getParentNodeProperties()
setParentNodeProperties(com.klg.jclass.datasource.beans.NodeProperties)
public void setParentNodeProperties(com.klg.jclass.datasource.beans.NodeProperties parent)
parent
- parent of this data bean component.public void addJoin(String parent_column, String column)
parent_column
- column name of parent data sourcecolumn
- column name of current data sourcepublic void removeJoin(String parent_column, String column)
parent_column
- column name of parent data sourcecolumn
- column name of current data sourcepublic void removeAllJoins()
public String[][] getJoins()
public static String getVersion()
public static String getSerializedVersion()
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
public void setChanged()
SerializedProperties
setChanged
in class SerializedProperties
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |