com.lutris.appserver.server.sql.informix
Class InformixDBQuery
java.lang.Object
|
+--com.lutris.appserver.server.sql.standard.StandardDBQuery
|
+--com.lutris.appserver.server.sql.informix.InformixDBQuery
- public class InformixDBQuery
- extends StandardDBQuery
An Informix database query object.
- Since:
- LBS1.7
- Version:
- $Revision: 1.9.12.1 $
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
conn
protected InformixDBConnection conn
- The informix database connection.
InformixDBQuery
protected InformixDBQuery(InformixDBConnection dbConnection)
throws java.sql.SQLException
- Private constructor.
- Parameters:
dbConnection
- The database connection to use.- Throws:
- java.sql.SQLException - If a database access error occurs.
InformixDBQuery
public InformixDBQuery()
throws java.sql.SQLException,
DatabaseManagerException
- Public constructor. Establishes a connection with the default
logical database. The connection manager must have been
initialized with a default logical database name.
- Throws:
- java.sql.SQLException - If a database access error occurs.
- DatabaseManagerException - If the default logical database wasn't initialized in the
Database Manager.
- See Also:
DatabaseManager.setDefaultDatabase(java.lang.String)
InformixDBQuery
public InformixDBQuery(java.lang.String dbName)
throws java.sql.SQLException,
DatabaseManagerException
- Public constructor. Establishes a connection to the specified
logical database name.
- Parameters:
dbName
- Logical database name to access.- Throws:
- java.sql.SQLException - If a database access error occurs.
- DatabaseManagerException - If a nonexistant logical database name is supplied.
setQueryTimeout
public void setQueryTimeout(int seconds)
throws java.sql.SQLException
- Set query time out. If a query blocks, then it will only
block as long as specified here.
- Parameters:
seconds
- The amount of time to block.- Throws:
- java.sql.SQLException - if a database error occurs.