[opencms-dev] URGENT: org.opencms.db.CmsDbUtil query

mmihaili at csc.com.au mmihaili at csc.com.au
Mon Jan 24 23:59:19 CET 2005





Can someone explain why the CmsDbPool.C_DBCP_JDBC_URL_PREFIX is appended to
the front of dbPoolUrl?
This method is in org.opencms.db.CmsDbUtil

    private static void generateNextId(String dbPoolUrl, String tableName,
String cacheKey) throws CmsException {

        Connection con = null;
        int id;
        int borderId;

        try {
            if (!dbPoolUrl.startsWith(CmsDbPool.C_DBCP_JDBC_URL_PREFIX)) {
                dbPoolUrl = CmsDbPool.C_DBCP_JDBC_URL_PREFIX + dbPoolUrl;
            }

            con = DriverManager.getConnection(dbPoolUrl);


Moris Mihailidis
__________________________________________________
Computer Sciences Corporation
EBS-BSS Web Services e-Business South
58 Queensbridge St, Southbank, VIC 3006, Australia
Ph: +61-3-8695-1527    Fax:+61-3-8695-1540
Email: mmihaili at csc.com.au
----------------------------------------------------------------------------------------

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
----------------------------------------------------------------------------------------





More information about the opencms-dev mailing list