|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.actuate.util.Debug
|
+--com.f1j.util.Debug
|
+--com.f1j.util.ObjConst
|
+--com.f1j.util.Obj
|
+--com.f1j.util.AbstractIndexObj
|
+--com.f1j.util.SharedIndexObj
|
+--com.f1j.data.source.SourceImpl
|
+--com.f1j.data.source.JDBC
This class processes JDBC data sources.
DatabaseQuery| Field Summary | |
static int |
CF_OPTIMIZE_FOR_CONNECTION_POOL_USE
Flag indicating to only hold open a database connection long enough to process a single query. |
static int |
CF_USE_SINGLE_CONNECTION_FOR_ALL_QUERIES
Flag indicating to use a single database connection for all queries associated with this source. |
static int |
kConnectionIsOracle
Indicates that this connection is to an Oracle database. |
| Method Summary | |
java.util.Properties |
getAdvancedConnectionProperties()
Returns a copy of the Java java.util.Properties object. |
int |
getConnectionUseOptimizationFlag()
Returns value indicating how database connections are managed. |
java.lang.String |
getDatabase()
Returns the URL of the database for this connection. |
java.lang.String |
getDriverName()
Returns the JDBC driver associated with this JDBC data source. |
java.lang.String |
getJndiName()
Returns the JNDI name for the data source. |
java.lang.String |
getPassword()
Returns the password needed to access this data source. |
java.lang.String |
getUserName()
Returns the user name needed to access this data source. |
boolean |
isContainsParameters()
Deprecated. As of 9.0, use DatabaseQueryParamCollection.isContainsInputParameters instead. |
void |
set(java.lang.String strDriver,
java.lang.String strURL,
java.lang.String strUser,
java.lang.String strPassword,
boolean bUpdateMetaData)
Sets driver name, database URL, user name, password for a data source. |
void |
setAdvancedConnectionProperties(java.util.Properties props)
Sets or clears the advanced connection properties for the current database URL. |
void |
setConnection(java.sql.Connection userSuppliedConnection)
Sets user-created JDBC connection. |
void |
setConnection(java.sql.Connection userSuppliedConnection,
int flags)
Sets user-created JDBC connection. |
void |
setConnectionUseOptimizationFlag(int flag)
Sets flag affecting how database connections are managed. |
void |
setDatabase(java.lang.String database)
Sets the URL of the database for this data source connection. |
void |
setDriverName(java.lang.String driverName)
Sets the driver for this data source connection. |
void |
setJndiName(java.lang.String name)
Sets the JNDI name for the data source. |
void |
setPassword(java.lang.String password)
Sets the password used to access this data source. |
void |
setUserName(java.lang.String userName)
Sets the user name used to access this data source. |
| Field Detail |
public static final int kConnectionIsOracle
setConnection(java.sql.Connection, int)public static final int CF_USE_SINGLE_CONNECTION_FOR_ALL_QUERIES
CF_OPTIMIZE_FOR_CONNECTION_POOL_USE,
setConnectionUseOptimizationFlag(int),
getConnectionUseOptimizationFlag()public static final int CF_OPTIMIZE_FOR_CONNECTION_POOL_USE
CF_USE_SINGLE_CONNECTION_FOR_ALL_QUERIES,
setConnectionUseOptimizationFlag(int),
getConnectionUseOptimizationFlag()| Method Detail |
public int getConnectionUseOptimizationFlag()
setConnectionUseOptimizationFlag(int),
CF_USE_SINGLE_CONNECTION_FOR_ALL_QUERIES,
CF_OPTIMIZE_FOR_CONNECTION_POOL_USEpublic void setConnectionUseOptimizationFlag(int flag)
flag - either CF_USE_SINGLE_CONNECTION_FOR_ALL_QUERIES or
CF_OPTIMIZE_FOR_CONNECTION_POOL_USE.getConnectionUseOptimizationFlag(),
CF_USE_SINGLE_CONNECTION_FOR_ALL_QUERIES,
CF_OPTIMIZE_FOR_CONNECTION_POOL_USEpublic java.util.Properties getAdvancedConnectionProperties()
null if no advanced properties have been set.null if no advanced properties are set.setAdvancedConnectionProperties(java.util.Properties),
getDatabase(),
setDatabase(java.lang.String),
java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties)public void setAdvancedConnectionProperties(java.util.Properties props)
To clear the advanced properties, call this method with null.
props - a list of string pairs in the form tag:value or
tag=value as used in
java.util.Properties for connection arguments. "Normally at least
a 'user' and 'password' property should be included."getAdvancedConnectionProperties(),
getDatabase(),
setDatabase(java.lang.String),
java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties)public java.lang.String getJndiName()
setJndiName(java.lang.String)public void setJndiName(java.lang.String name)
"java:comp/env/jdbc/jndiNameOfDataSource").name - a string indicating the JNDI name.getJndiName()public java.lang.String getDatabase()
setDatabase(java.lang.String),
setAdvancedConnectionProperties(java.util.Properties)public java.lang.String getDriverName()
setDriverName(java.lang.String)public java.lang.String getUserName()
setUserName(java.lang.String)public java.lang.String getPassword()
setPassword(java.lang.String)public boolean isContainsParameters()
true/falsepublic void setDatabase(java.lang.String database)
DriverTemplateInfo object, then this will
be wiped out when an URL is explicitly designed. This means that the
next time the source is edited then the UI will use the generic JDBC
UI.database - text string of the URL.getDatabase()public void setDriverName(java.lang.String driverName)
driverName - the name of the driver for this connection.getDriverName()public void setUserName(java.lang.String userName)
userName - text string of the user name.getUserName()public void setPassword(java.lang.String password)
password - text string of the password.getPassword()
public void set(java.lang.String strDriver,
java.lang.String strURL,
java.lang.String strUser,
java.lang.String strPassword,
boolean bUpdateMetaData)
strDriver - If null then driver is not set otherwise it is only set when it does not
match the current driver.strURL - If null then database URL is not set otherwise it is only set when it
does not match the current URL.strUser - If null then user is not set otherwise it is only set when it does not
match the current user.strPassword - If null then password is not set otherwise it is only set when it does not
match the current password.bUpdateMetaData - If true then all attached queries will be ran to update metadata(table
names, column names, etc.). If you know metadata is NOT changed pass falsepublic void setConnection(java.sql.Connection userSuppliedConnection)
userSuppliedConnection - a previously created
java.sql.Connection
to use instead of the e.Spreadsheet database, driver, username and password
properties.setDatabase(java.lang.String),
setDriverName(java.lang.String),
setUserName(java.lang.String),
setPassword(java.lang.String)
public void setConnection(java.sql.Connection userSuppliedConnection,
int flags)
userSuppliedConnection - a previously created
java.sql.Connection
to use instead of the e.Spreadsheet database, driver, username and password
properties.flags - Connection attributes.
kConnectionIsOracle 0x0001 Set to force the connection to be treated as a connection to an Oracle database.kConnectionIsOracle,
setDatabase(java.lang.String),
setDriverName(java.lang.String),
setUserName(java.lang.String),
setPassword(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||