Java Doc for DatabaseManager.java in  » Web-Framework » jWebApp » jpersist » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » jWebApp » jpersist 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   jpersist.DatabaseManager

DatabaseManager
public class DatabaseManager (Code)
The DatabaseManager provides pooling and management for database handlers and connection instances. It also provides access to XML defined databases, logging, sql statements, and object-oriented database access. An application can have any number of DatabaseManagers, but only one is typically needed.

Inner Class :static class LoadXMLDefinition extends XMLParser
Inner Class :static class DefinedDatabase



Method Summary
public  voidclose()
     Closes all resources associated with the DatabaseManager.
public  intdeleteObject(Object object)
     Builds a delete statement from the object.
public  intdeleteObject(Object object, Set<String> nullValuesToInclude)
     Builds a delete statement from the object.

This method should not be used within a transaction manager.

public  intdeleteObject(Object object, String externalClauses, Object... externalClausesParameters)
     Builds a delete statement from the object.
public  intdeleteObject(Object object, Set<String> nullValuesToInclude, String externalClauses, Object... externalClausesParameters)
     Builds a delete statement from the object.
public  ResultexecuteQuery(String sql)
     Executes a simple query.
public  intexecuteUpdate(String sql)
     Executes a simple update.
public  intexecuteUpdate(String sql, Vector keys)
     Executes a simple update.
Parameters:
  sql - the SQL statement
Parameters:
  keys - is a Vector.
public  StringgetClose()
     Closes the database manager (simply calls close()), can be used in EL.
public static  DatabaseManagergetDataSourceDatabaseManager(String databaseName, int poolSize, DataSource dataSource, String catalogPattern, String schemaPattern)
     Create a DatabaseManager instance using a supplied DataSource.
public synchronized  DatabasegetDatabase()
     Returns an instance of the defined database.
public  StringgetDatabaseName()
     Returns the database name.
 VectorgetFreePool()
    
public static  DatabaseManagergetJndiDefinedDatabaseManager(String databaseName, int poolSize, String jndiUri, String catalogPattern, String schemaPattern)
     Create a DatabaseManager instance using JNDI.
public static  DatabaseManagergetJndiDefinedDatabaseManager(String databaseName, int poolSize, String jndiUri, String catalogPattern, String schemaPattern, String username, String password)
     Create a DatabaseManager instance using JNDI.
public  MetaDatagetMetaData()
     Returns the database meta data associated with the current database.
public  StringgetSQLStatement(String key)
     Returns the SQL statement associated with the SQL Id (key column from loadSQLStatements()).
public static  DatabaseManagergetUrlDefinedDatabaseManager(String databaseName, int poolSize, String driver, String url, String catalogPattern, String schemaPattern)
     Create a DatabaseManager instance using a supplied database driver.
public static  DatabaseManagergetUrlDefinedDatabaseManager(String databaseName, int poolSize, String driver, String url, String catalogPattern, String schemaPattern, String username, String password)
     Create a DatabaseManager instance using a supplied database driver.
public static  DatabaseManagergetXmlDefinedDatabaseManager(String dbName)
     Returns a DatabaseManager instance as defined in the databases.xml file.
public  booleanisClosed()
     Returns true if the database manager is closed, false otherwise.
public  voidloadAssociations(Object object)
     Loads an objects associations.
public  TloadObject(T object)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.
public  TloadObject(T object, boolean loadAssociations)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.
public  TloadObject(T object, Set<String> nullValuesToInclude)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.
public  TloadObject(T object, boolean loadAssociations, Set<String> nullValuesToInclude)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.
public  TloadObject(T object, String externalClauses, Object... externalClausesParameters)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.
public  TloadObject(T object, boolean loadAssociations, String externalClauses, Object... externalClausesParameters)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.
public  TloadObject(T object, Set<String> nullValuesToInclude, String externalClauses, Object... externalClausesParameters)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.
public  TloadObject(T object, boolean loadAssociations, Set<String> nullValuesToInclude, String externalClauses, Object... externalClausesParameters)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.
public  TloadObject(Class<T> cs)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.
public  TloadObject(Class<T> cs, boolean loadAssociations)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.
public  TloadObject(Class<T> cs, String externalClauses, Object... externalClausesParameters)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.
public  TloadObject(Class<T> cs, boolean loadAssociations, String externalClauses, Object... externalClausesParameters)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.
public  Collection<T>loadObjects(Collection<T> collection, T object)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(object).loadObjects(collection, object.getClass());
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e.
public  Collection<T>loadObjects(Collection<T> collection, T object, boolean loadAssociations)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(object).loadObjects(collection, object.getClass(), loadAssociations);
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e.
public  Collection<T>loadObjects(Collection<T> collection, T object, Set<String> nullValuesToInclude)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(object, nullValuesToInclude).loadObjects(collection, object.getClass());
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e.
public  Collection<T>loadObjects(Collection<T> collection, T object, boolean loadAssociations, Set<String> nullValuesToInclude)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(object, nullValuesToInclude).loadObjects(collection, object.getClass(), loadAssociations);
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e.
public  Collection<T>loadObjects(Collection<T> collection, T object, String externalClauses, Object... externalClausesParameters)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(object, externalClauses, externalClausesParameters).loadObjects(collection, object.getClass());
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e.
public  Collection<T>loadObjects(Collection<T> collection, T object, boolean loadAssociations, String externalClauses, Object... externalClausesParameters)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(object, externalClauses, externalClausesParameters).loadObjects(collection, object.getClass(), loadAssociations);
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e.
public  Collection<T>loadObjects(Collection<T> collection, T object, Set<String> nullValuesToInclude, String externalClauses, Object... externalClausesParameters)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(object, nullValuesToInclude, externalClauses, externalClausesParameters).loadObjects(collection, object.getClass());
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e.
public  Collection<T>loadObjects(Collection<T> collection, T object, boolean loadAssociations, Set<String> nullValuesToInclude, String externalClauses, Object... externalClausesParameters)
     Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(object, nullValuesToInclude, externalClauses, externalClausesParameters).loadObjects(collection, object.getClass(), loadAssociations);
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e.
public  Collection<T>loadObjects(Collection<T> collection, Class<T> cs)
     Builds a select query from a class that matches up to a table, and then loads an instance (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(cs).loadObjects(cs, collection);
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e.
public  Collection<T>loadObjects(Collection<T> collection, Class<T> cs, boolean loadAssociations)
     Builds a select query from a class that matches up to a table, and then loads an instance (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(cs).loadObjects(cs, collection, loadAssociations);
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e.
public  Collection<T>loadObjects(Collection<T> collection, Class<T> cs, String externalClauses, Object... externalClausesParameters)
     Builds a select query from a class that matches up to a table, and then loads an instance (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(cs, externalClauses, externalClausesParameters).loadObjects(cs, collection);
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e.
public  Collection<T>loadObjects(Collection<T> collection, Class<T> cs, boolean loadAssociations, String externalClauses, Object... externalClausesParameters)
     Builds a select query from a class that matches up to a table, and then loads an instance (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(cs, externalClauses, externalClausesParameters).loadObjects(cs, collection, loadAssociations);
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e.
public  voidloadSQLStatements(String sql)
     Loads SQL statements based on a supplied query.
public  ResultparameterizedQuery(String sql, Object... parameters)
     Executes a parameterized query.
public  intparameterizedUpdate(String sql, Object... parameters)
     Executes a parameterized update.
public  intparameterizedUpdate(String sql, Vector keys, Object... parameters)
     Executes a parameterized update.
synchronized  voidreleaseDatabase(Database db)
    
public  intsaveObject(Object object)
     Builds either an update or an insert depending on whether the object is persistent and was previously loaded, or not, respectively.

This method should not be used within a transaction manager.

public  intsaveObject(Object object, Set<String> nullValuesToInclude)
     Builds either an update or an insert depending on whether the object is persistent and was previously loaded, or not, respectively.

This method should not be used within a transaction manager.

public  intsaveObject(Object object, String externalClauses, Object... externalClausesParameters)
     Builds either an update or an insert depending on whether the object is persistent and was previously loaded, or not, respectively. externalClauses can begin with a where clause or anything after the where clause.

This method should not be used within a transaction manager.

public  intsaveObject(Object object, Set<String> nullValuesToInclude, String externalClauses, Object... externalClausesParameters)
     Builds either an update or an insert depending on whether the object is persistent and was previously loaded, or not, respectively. externalClauses can begin with a where clause or anything after the where clause.

This method should not be used within a transaction manager.

public  voidsetClosed(boolean true_only)
     Closes the database manager (simply calls close()), via a JavaBeans setter.
public  voidsetGlobalMappers(TableMapping tableMapper, ColumnMapping columnMapper)
     This method can be used to add global table and column mappers.
public static  voidsetLogLevel(Level level)
     Sets the logging level to the given level.
public  voidsetMetaDataLimits(String catalogPattern, String schemaPattern)
     Sets limits on the meta data table information returned.
public  voidsetSQLStatements(Map sqlStatements)
     Set the map that sql statements are retrieved from (used in place of loadSQLStatements()).



Method Detail
close
public void close() throws JPersistException(Code)
Closes all resources associated with the DatabaseManager. If the DatabaseManager is managing pooled connections via JNDI, then this method does nothing. However, if the connections are allocated by the manager (non-JNDI), they will be closed.



deleteObject
public int deleteObject(Object object) throws JPersistException(Code)
Builds a delete statement from the object.

This method should not be used within a transaction manager. Use TransactionManager.getDatabase() instead.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.deleteObject(object);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  object - the object to load the number of rows updated
throws:
  JPersistException -



deleteObject
public int deleteObject(Object object, Set<String> nullValuesToInclude) throws JPersistException(Code)
Builds a delete statement from the object.

This method should not be used within a transaction manager. Use TransactionManager.getDatabase() instead.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.deleteObject(object, nullValuesToInclude);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  object - the object to load
Parameters:
  nullValuesToInclude - is a Set of set methods without the 'set', or table column names, to include in the where clause if null the number of rows updated
throws:
  JPersistException -



deleteObject
public int deleteObject(Object object, String externalClauses, Object... externalClausesParameters) throws JPersistException(Code)
Builds a delete statement from the object. externalClauses can begin with a where clause or anything after the where clause.

This method should not be used within a transaction manager. Use TransactionManager.getDatabase() instead.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.deleteObject(object, externalClauses, externalClausesParameters);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  object - the object to load
Parameters:
  externalClauses - external clauses
Parameters:
  externalClausesParameters - the parameters to use with external clauses, can be null the number of rows updated
throws:
  JPersistException -



deleteObject
public int deleteObject(Object object, Set<String> nullValuesToInclude, String externalClauses, Object... externalClausesParameters) throws JPersistException(Code)
Builds a delete statement from the object. externalClauses can begin with a where clause or anything after the where clause.

This method should not be used within a transaction manager. Use TransactionManager.getDatabase() instead.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.deleteObject(object, nullValuesToInclude, externalClauses, externalClausesParameters);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  object - the object to load
Parameters:
  nullValuesToInclude - is a Set of set methods without the 'set', or table column names, to include in the where clause if null
Parameters:
  externalClauses - external clauses
Parameters:
  externalClausesParameters - the parameters to use with external clauses, can be null the number of rows updated
throws:
  JPersistException -



executeQuery
public Result executeQuery(String sql) throws JPersistException(Code)
Executes a simple query.
Parameters:
  sql - the SQL statement a jpersist.Result instance
throws:
  JPersistException -



executeUpdate
public int executeUpdate(String sql) throws JPersistException(Code)
Executes a simple update.
Parameters:
  sql - the SQL statement
throws:
  JPersistException -



executeUpdate
public int executeUpdate(String sql, Vector keys) throws JPersistException(Code)
Executes a simple update.
Parameters:
  sql - the SQL statement
Parameters:
  keys - is a Vector. If keys is non-null, then generated keys will be returned in the keys vector. Vector can also define the key columns required (depending on the database).
throws:
  JPersistException -



getClose
public String getClose() throws JPersistException(Code)
Closes the database manager (simply calls close()), can be used in EL. For example:
 ${dbm.close}
 

throws:
  JPersistException -



getDataSourceDatabaseManager
public static DatabaseManager getDataSourceDatabaseManager(String databaseName, int poolSize, DataSource dataSource, String catalogPattern, String schemaPattern)(Code)
Create a DatabaseManager instance using a supplied DataSource.
Parameters:
  databaseName - the name to associate with the DatabaseManager instance
Parameters:
  poolSize - the number of instances to manage
Parameters:
  dataSource - the data source that supplies connections
Parameters:
  catalogPattern - the catalogPattern (can contain SQL wildcards)
Parameters:
  schemaPattern - the schemaPattern (can contain SQL wildcards)



getDatabase
public synchronized Database getDatabase() throws JPersistException(Code)
Returns an instance of the defined database. an instance of Database
throws:
  JPersistException -



getDatabaseName
public String getDatabaseName()(Code)
Returns the database name. the database name



getFreePool
Vector getFreePool()(Code)



getJndiDefinedDatabaseManager
public static DatabaseManager getJndiDefinedDatabaseManager(String databaseName, int poolSize, String jndiUri, String catalogPattern, String schemaPattern)(Code)
Create a DatabaseManager instance using JNDI.
Parameters:
  databaseName - the name to associate with the DatabaseManager instance
Parameters:
  poolSize - the number of instances to manage
Parameters:
  jndiUri - the JNDI URI
Parameters:
  catalogPattern - the catalogPattern (can contain SQL wildcards)
Parameters:
  schemaPattern - the schemaPattern (can contain SQL wildcards)



getJndiDefinedDatabaseManager
public static DatabaseManager getJndiDefinedDatabaseManager(String databaseName, int poolSize, String jndiUri, String catalogPattern, String schemaPattern, String username, String password)(Code)
Create a DatabaseManager instance using JNDI.
Parameters:
  databaseName - the name to associate with the DatabaseManager instance
Parameters:
  poolSize - the number of instances to manage
Parameters:
  jndiUri - the JNDI URI
Parameters:
  catalogPattern - the catalogPattern (can contain SQL wildcards)
Parameters:
  schemaPattern - the schemaPattern (can contain SQL wildcards)
Parameters:
  username - the username to use for signon
Parameters:
  password - the password to use for signon



getMetaData
public MetaData getMetaData() throws JPersistException(Code)
Returns the database meta data associated with the current database. The MetaData class can be used to access information about tables in the database. It can also be used to add table and column mapping. an instance of MetaData
throws:
  JPersistException -



getSQLStatement
public String getSQLStatement(String key) throws JPersistException(Code)
Returns the SQL statement associated with the SQL Id (key column from loadSQLStatements()).
Parameters:
  key - the sql id the SQL statement associated with the key (SQL Id)
throws:
  JPersistException -



getUrlDefinedDatabaseManager
public static DatabaseManager getUrlDefinedDatabaseManager(String databaseName, int poolSize, String driver, String url, String catalogPattern, String schemaPattern)(Code)
Create a DatabaseManager instance using a supplied database driver.
Parameters:
  databaseName - the name to associate with the DatabaseManager instance
Parameters:
  poolSize - the number of instances to manage
Parameters:
  driver - the database driver class name
Parameters:
  url - the driver oriented database url
Parameters:
  catalogPattern - the catalogPattern (can contain SQL wildcards)
Parameters:
  schemaPattern - the schemaPattern (can contain SQL wildcards)



getUrlDefinedDatabaseManager
public static DatabaseManager getUrlDefinedDatabaseManager(String databaseName, int poolSize, String driver, String url, String catalogPattern, String schemaPattern, String username, String password)(Code)
Create a DatabaseManager instance using a supplied database driver.
Parameters:
  databaseName - the name to associate with the DatabaseManager instance
Parameters:
  poolSize - the number of instances to manage
Parameters:
  driver - the database driver class name
Parameters:
  url - the driver oriented database url
Parameters:
  catalogPattern - the catalogPattern (can contain SQL wildcards)
Parameters:
  schemaPattern - the schemaPattern (can contain SQL wildcards)
Parameters:
  username - the username to use for signon
Parameters:
  password - the password to use for signon



getXmlDefinedDatabaseManager
public static DatabaseManager getXmlDefinedDatabaseManager(String dbName) throws JPersistException(Code)
Returns a DatabaseManager instance as defined in the databases.xml file. The format of the databases file, which is found via ClassLoader.getSystemResource(), is:
 <databases>
 <database name="" useJndi="" url="" [poolSize=""] [catalogPattern=""] [schemaPattern=""] [user=""] [password=""] />
 <database name="" driver="" url="" [poolSize=""] [catalogPattern=""] [schemaPattern=""] [user=""] [password=""] />
 </databases>
 

Parameters:
  dbName - is the name defined in the database element an instance os DatabaseManager, or null if not defined
throws:
  JPersistException -



isClosed
public boolean isClosed()(Code)
Returns true if the database manager is closed, false otherwise. true or false



loadAssociations
public void loadAssociations(Object object) throws JPersistException(Code)
Loads an objects associations.
Parameters:
  object - the object whose associations are to be loaded
throws:
  jpersist.JPersistException -



loadObject
public T loadObject(T object) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 Result result = db.queryObject(object);
 if (result.hasNext())
 return result.next(object);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  object - the object to load returns the object passed in
throws:
  JPersistException -



loadObject
public T loadObject(T object, boolean loadAssociations) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 Result result = db.queryObject(object);
 if (result.hasNext())
 return result.next(object, loadAssociations);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  object - the object to load
Parameters:
  loadAssociations - true to load associations returns the object passed in
throws:
  JPersistException -



loadObject
public T loadObject(T object, Set<String> nullValuesToInclude) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 Result result = db.queryObject(object, nullValuesToInclude);
 if (result.hasNext())
 return result.next(object);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  object - the object to load
Parameters:
  nullValuesToInclude - is a Set of set methods without the 'set', or table column names, to include in the where clause if null returns the object passed in
throws:
  JPersistException -



loadObject
public T loadObject(T object, boolean loadAssociations, Set<String> nullValuesToInclude) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 Result result = db.queryObject(object, nullValuesToInclude);
 if (result.hasNext())
 return result.next(object, loadAssociations);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  object - the object to load
Parameters:
  loadAssociations - true to load associations
Parameters:
  nullValuesToInclude - is a Set of set methods without the 'set', or table column names, to include in the where clause if null returns the object passed in
throws:
  JPersistException -



loadObject
public T loadObject(T object, String externalClauses, Object... externalClausesParameters) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 Result result = db.queryObject(object, externalClauses, externalClausesParameters);
 if (result.hasNext())
 return result.next(object);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  object - the object to load
Parameters:
  externalClauses - external clauses, which can begin with a where clause or any clause after the where clause.
Parameters:
  externalClausesParameters - the parameters to use with external clauses, can be null (1.5+ can use varargs) returns the object passed in
throws:
  JPersistException -



loadObject
public T loadObject(T object, boolean loadAssociations, String externalClauses, Object... externalClausesParameters) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 Result result = db.queryObject(object, externalClauses, externalClausesParameters);
 if (result.hasNext())
 return result.next(object, loadAssociations);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  object - the object to load
Parameters:
  loadAssociations - true to load associations
Parameters:
  externalClauses - external clauses, which can begin with a where clause or any clause after the where clause.
Parameters:
  externalClausesParameters - the parameters to use with external clauses, can be null (1.5+ can use varargs) returns the object passed in
throws:
  JPersistException -



loadObject
public T loadObject(T object, Set<String> nullValuesToInclude, String externalClauses, Object... externalClausesParameters) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 Result result = db.queryObject(object, nullValuesToInclude, externalClauses, externalClausesParameters);
 if (result.hasNext())
 return result.next(object);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  object - the object to load
Parameters:
  nullValuesToInclude - is a Set of set methods without the 'set', or table column names, to include in the where clause if null
Parameters:
  externalClauses - external clauses, which can begin with a where clause or any clause after the where clause.
Parameters:
  externalClausesParameters - the parameters to use with external clauses, can be null (1.5+ can use varargs) returns the object passed in
throws:
  JPersistException -



loadObject
public T loadObject(T object, boolean loadAssociations, Set<String> nullValuesToInclude, String externalClauses, Object... externalClausesParameters) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 Result result = db.queryObject(object, nullValuesToInclude, externalClauses, externalClausesParameters);
 if (result.hasNext())
 return result.next(object, loadAssociations);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  object - the object to load
Parameters:
  loadAssociations - true to load associations
Parameters:
  nullValuesToInclude - is a Set of set methods without the 'set', or table column names, to include in the where clause if null
Parameters:
  externalClauses - external clauses, which can begin with a where clause or any clause after the where clause.
Parameters:
  externalClausesParameters - the parameters to use with external clauses, can be null (1.5+ can use varargs) returns the object passed in
throws:
  JPersistException -



loadObject
public T loadObject(Class<T> cs) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 Result result = db.queryObject(cs);
 if (result.hasNext())
 return result.next();
 }
 finally
 {
 db.close();
 }
 

Parameters:
  cs - the class to query and create an object instance from returns the object passed in
throws:
  JPersistException -



loadObject
public T loadObject(Class<T> cs, boolean loadAssociations) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 Result result = db.queryObject(cs);
 if (result.hasNext())
 return result.next(loadAssociations);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  cs - the class to query and create an object instance from
Parameters:
  loadAssociations - true to load associations returns the object passed in
throws:
  JPersistException -



loadObject
public T loadObject(Class<T> cs, String externalClauses, Object... externalClausesParameters) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 Result result = db.queryObject(cs, externalClauses, externalClausesParameters);
 if (result.hasNext())
 return result.next();
 }
 finally
 {
 db.close();
 }
 

Parameters:
  cs - the class to query and create an object instance from
Parameters:
  externalClauses - external clauses, which can begin with a where clause or any clause after the where clause.
Parameters:
  externalClausesParameters - the parameters to use with external clauses, can be null (1.5+ can use varargs) returns the object passed in
throws:
  JPersistException -



loadObject
public T loadObject(Class<T> cs, boolean loadAssociations, String externalClauses, Object... externalClausesParameters) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 Result result = db.queryObject(cs, externalClauses, externalClausesParameters);
 if (result.hasNext())
 return result.next(loadAssociations);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  cs - the class to query and create an object instance from
Parameters:
  loadAssociations - true to load associations
Parameters:
  externalClauses - external clauses, which can begin with a where clause or any clause after the where clause.
Parameters:
  externalClausesParameters - the parameters to use with external clauses, can be null (1.5+ can use varargs) returns the object passed in
throws:
  JPersistException -



loadObjects
public Collection<T> loadObjects(Collection<T> collection, T object) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(object).loadObjects(collection, object.getClass());
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e. Vector, Set, etc.)
Parameters:
  object - the object to load the Collection that was passed in
throws:
  JPersistException -



loadObjects
public Collection<T> loadObjects(Collection<T> collection, T object, boolean loadAssociations) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(object).loadObjects(collection, object.getClass(), loadAssociations);
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e. Vector, Set, etc.)
Parameters:
  object - the object to load
Parameters:
  loadAssociations - true to load associations the Collection that was passed in
throws:
  JPersistException -



loadObjects
public Collection<T> loadObjects(Collection<T> collection, T object, Set<String> nullValuesToInclude) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(object, nullValuesToInclude).loadObjects(collection, object.getClass());
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e. Vector, Set, etc.)
Parameters:
  object - the object to load
Parameters:
  nullValuesToInclude - is a Set of set methods without the 'set', or table column names, to include in the where clause if null the Collection that was passed in
throws:
  JPersistException -



loadObjects
public Collection<T> loadObjects(Collection<T> collection, T object, boolean loadAssociations, Set<String> nullValuesToInclude) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(object, nullValuesToInclude).loadObjects(collection, object.getClass(), loadAssociations);
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e. Vector, Set, etc.)
Parameters:
  object - the object to load
Parameters:
  loadAssociations - true to load associations
Parameters:
  nullValuesToInclude - is a Set of set methods without the 'set', or table column names, to include in the where clause if null the Collection that was passed in
throws:
  JPersistException -



loadObjects
public Collection<T> loadObjects(Collection<T> collection, T object, String externalClauses, Object... externalClausesParameters) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(object, externalClauses, externalClausesParameters).loadObjects(collection, object.getClass());
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e. Vector, Set, etc.)
Parameters:
  object - the object to load
Parameters:
  externalClauses - external clauses, which can begin with a where clause or any clause after the where clause.
Parameters:
  externalClausesParameters - the parameters to use with external clauses, can be null (1.5+ can use varargs) the Collection that was passed in
throws:
  JPersistException -



loadObjects
public Collection<T> loadObjects(Collection<T> collection, T object, boolean loadAssociations, String externalClauses, Object... externalClausesParameters) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(object, externalClauses, externalClausesParameters).loadObjects(collection, object.getClass(), loadAssociations);
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e. Vector, Set, etc.)
Parameters:
  object - the object to load
Parameters:
  loadAssociations - true to load associations
Parameters:
  externalClauses - external clauses, which can begin with a where clause or any clause after the where clause.
Parameters:
  externalClausesParameters - the parameters to use with external clauses, can be null (1.5+ can use varargs) the Collection that was passed in
throws:
  JPersistException -



loadObjects
public Collection<T> loadObjects(Collection<T> collection, T object, Set<String> nullValuesToInclude, String externalClauses, Object... externalClausesParameters) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(object, nullValuesToInclude, externalClauses, externalClausesParameters).loadObjects(collection, object.getClass());
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e. Vector, Set, etc.)
Parameters:
  object - the object to load
Parameters:
  nullValuesToInclude - is a Set of set methods without the 'set', or table column names, to include in the where clause if null
Parameters:
  externalClauses - external clauses, which can begin with a where clause or any clause after the where clause.
Parameters:
  externalClausesParameters - the parameters to use with external clauses, can be null (1.5+ can use varargs) the Collection that was passed in
throws:
  JPersistException -



loadObjects
public Collection<T> loadObjects(Collection<T> collection, T object, boolean loadAssociations, Set<String> nullValuesToInclude, String externalClauses, Object... externalClausesParameters) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads the object (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(object, nullValuesToInclude, externalClauses, externalClausesParameters).loadObjects(collection, object.getClass(), loadAssociations);
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e. Vector, Set, etc.)
Parameters:
  object - the object to load
Parameters:
  loadAssociations - true to load associations
Parameters:
  nullValuesToInclude - is a Set of set methods without the 'set', or table column names, to include in the where clause if null
Parameters:
  externalClauses - external clauses, which can begin with a where clause or any clause after the where clause.
Parameters:
  externalClausesParameters - the parameters to use with external clauses, can be null (1.5+ can use varargs) the Collection that was passed in
throws:
  JPersistException -



loadObjects
public Collection<T> loadObjects(Collection<T> collection, Class<T> cs) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads an instance (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(cs).loadObjects(cs, collection);
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e. Vector, Set, etc.)
Parameters:
  cs - the class to load the Collection that was passed in
throws:
  JPersistException -



loadObjects
public Collection<T> loadObjects(Collection<T> collection, Class<T> cs, boolean loadAssociations) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads an instance (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(cs).loadObjects(cs, collection, loadAssociations);
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e. Vector, Set, etc.)
Parameters:
  cs - the class to load
Parameters:
  loadAssociations - true to load associations the Collection that was passed in
throws:
  JPersistException -



loadObjects
public Collection<T> loadObjects(Collection<T> collection, Class<T> cs, String externalClauses, Object... externalClausesParameters) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads an instance (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(cs, externalClauses, externalClausesParameters).loadObjects(cs, collection);
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e. Vector, Set, etc.)
Parameters:
  cs - the class to load
Parameters:
  externalClauses - external clauses, which can begin with a where clause or any clause after the where clause.
Parameters:
  externalClausesParameters - the parameters to use with external clauses, can be null (1.5+ can use varargs) the Collection that was passed in
throws:
  JPersistException -



loadObjects
public Collection<T> loadObjects(Collection<T> collection, Class<T> cs, boolean loadAssociations, String externalClauses, Object... externalClausesParameters) throws JPersistException(Code)
Builds a select query from a class that matches up to a table, and then loads an instance (using set methods that match columns in a table matched to the class name) with the result.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.queryObject(cs, externalClauses, externalClausesParameters).loadObjects(cs, collection, loadAssociations);
 }
 finally
 {
 db.close();
 }
 return collection;
 

Parameters:
  collection - an instance of Collection (i.e. Vector, Set, etc.)
Parameters:
  cs - the class to load
Parameters:
  loadAssociations - true to load associations
Parameters:
  externalClauses - external clauses, which can begin with a where clause or any clause after the where clause.
Parameters:
  externalClausesParameters - the parameters to use with external clauses, can be null (1.5+ can use varargs) the Collection that was passed in
throws:
  JPersistException -



loadSQLStatements
public void loadSQLStatements(String sql) throws JPersistException(Code)
Loads SQL statements based on a supplied query. The SQL statements are loaded into a hash table based on column 1 (id/key column) and column 2 (SQL statement/value column) of your SQL query.
Parameters:
  sql - the SQL statement that loads the statements (e.g. "select sql_id, sql_statement from sql_statements")
throws:
  JPersistException -



parameterizedQuery
public Result parameterizedQuery(String sql, Object... parameters) throws JPersistException(Code)
Executes a parameterized query. A paramterized query allows the use of '?' in SQL statements.
Parameters:
  sql - the SQL statement
Parameters:
  parameters - objects used to set the parameters to the query a jpersist.Result instance
throws:
  JPersistException -



parameterizedUpdate
public int parameterizedUpdate(String sql, Object... parameters) throws JPersistException(Code)
Executes a parameterized update. A paramterized update allows the use of '?' in SQL statements.
Parameters:
  sql - the SQL statement
Parameters:
  parameters - objects used to set the parameters to the update
throws:
  JPersistException -



parameterizedUpdate
public int parameterizedUpdate(String sql, Vector keys, Object... parameters) throws JPersistException(Code)
Executes a parameterized update. A paramterized update allows the use of '?' in SQL statements.
Parameters:
  sql - the SQL statement
Parameters:
  keys - is a Vector. If keys is non-null, then generated keys will be returned in the keys vector. Vector can also define the key columns required (depending on the database).
Parameters:
  parameters - objects used to set the parameters to the update
throws:
  JPersistException -



releaseDatabase
synchronized void releaseDatabase(Database db)(Code)



saveObject
public int saveObject(Object object) throws JPersistException(Code)
Builds either an update or an insert depending on whether the object is persistent and was previously loaded, or not, respectively.

This method should not be used within a transaction manager. Use TransactionManager.getDatabase() instead.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.saveObject(object);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  object - the object to load the number of rows updated
throws:
  JPersistException -



saveObject
public int saveObject(Object object, Set<String> nullValuesToInclude) throws JPersistException(Code)
Builds either an update or an insert depending on whether the object is persistent and was previously loaded, or not, respectively.

This method should not be used within a transaction manager. Use TransactionManager.getDatabase() instead.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.saveObject(object, nullValuesToInclude);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  object - the object to load
Parameters:
  nullValuesToInclude - is a Set of set methods without the 'set', or table column names, to include in the update the number of rows updated
throws:
  JPersistException -



saveObject
public int saveObject(Object object, String externalClauses, Object... externalClausesParameters) throws JPersistException(Code)
Builds either an update or an insert depending on whether the object is persistent and was previously loaded, or not, respectively. externalClauses can begin with a where clause or anything after the where clause.

This method should not be used within a transaction manager. Use TransactionManager.getDatabase() instead.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.saveObject(object, externalClauses, externalClausesParameters);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  object - the object to load
Parameters:
  externalClauses - external clauses beginning with a where or after
Parameters:
  externalClausesParameters - the parameters to use with external clauses, can be null the number of rows updated
throws:
  JPersistException -



saveObject
public int saveObject(Object object, Set<String> nullValuesToInclude, String externalClauses, Object... externalClausesParameters) throws JPersistException(Code)
Builds either an update or an insert depending on whether the object is persistent and was previously loaded, or not, respectively. externalClauses can begin with a where clause or anything after the where clause.

This method should not be used within a transaction manager. Use TransactionManager.getDatabase() instead.

This is a one line convienence method for:

 Database db = getDatabase();
 try
 {
 return db.saveObject(object, nullValuesToInclude, externalClauses, externalClausesParameters);
 }
 finally
 {
 db.close();
 }
 

Parameters:
  object - the object to load
Parameters:
  nullValuesToInclude - is a Set of set methods without the 'set', or table column names, to include in the update
Parameters:
  externalClauses - external clauses beginning with a where or after
Parameters:
  externalClausesParameters - the parameters to use with external clauses, can be null the number of rows updated
throws:
  JPersistException -



setClosed
public void setClosed(boolean true_only) throws JPersistException(Code)
Closes the database manager (simply calls close()), via a JavaBeans setter. For example:
 
 
 

throws:
  JPersistException -



setGlobalMappers
public void setGlobalMappers(TableMapping tableMapper, ColumnMapping columnMapper)(Code)
This method can be used to add global table and column mappers. Objects implementing TableMapping and/or ColumnMapping override the global mappers.
Parameters:
  tableMapper - an instance of TableMapping
Parameters:
  columnMapper - an instance of ColumnMapping



setLogLevel
public static void setLogLevel(Level level)(Code)
Sets the logging level to the given level.
Parameters:
  level - an instance of java.util.logging.Level



setMetaDataLimits
public void setMetaDataLimits(String catalogPattern, String schemaPattern)(Code)
Sets limits on the meta data table information returned. Defining catalogPattern and schemaPattern can help reduce the amount of time spent loading table information. With some databases, it is absolutely needed. This can also be set with databases.xml and/or DatabaseManager constructors.
Parameters:
  catalogPattern - the catalogPattern (can contain SQL wildcards)
Parameters:
  schemaPattern - the schemaPattern (can contain SQL wildcards)



setSQLStatements
public void setSQLStatements(Map sqlStatements) throws JPersistException(Code)
Set the map that sql statements are retrieved from (used in place of loadSQLStatements()).
Parameters:
  sqlStatements - the SQL statements map that sql statements are retrieved from
throws:
  JPersistException -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.