|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfedora.server.utilities.SQLUtility
Title: SQLUtility.java
Description:
-----------------------------------------------------------------------------License and Copyright: The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The entire file consists of original code. Copyright © 2002-2005 by The Rector and Visitors of the University of Virginia and Cornell University. All rights reserved.
-----------------------------------------------------------------------------
| Constructor Summary | |
SQLUtility()
|
|
| Method Summary | |
static java.lang.String |
aposEscape(java.lang.String in)
|
static java.lang.String |
backslashEscape(java.lang.String in)
|
static void |
createNonExistingTables(ConnectionPool cPool,
java.io.InputStream dbSpec,
Logging log)
|
static void |
createTables(TableCreatingConnection tcConn,
java.util.List tSpecs,
Logging log)
|
static java.lang.String |
getLongString(java.sql.ResultSet rs,
int pos)
Get a long string, which could be a TEXT or CLOB type. |
static java.util.List |
getNonExistingTables(java.sql.Connection conn,
java.util.List tSpecs)
|
static void |
replaceInto(java.sql.Connection conn,
java.lang.String tableName,
java.lang.String[] columns,
java.lang.String[] values,
java.lang.String uniqueColumn)
|
static void |
replaceInto(java.sql.Connection conn,
java.lang.String tableName,
java.lang.String[] columns,
java.lang.String[] values,
java.lang.String uniqueColumn,
boolean[] isNumeric,
Logging log)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SQLUtility()
| Method Detail |
public static void replaceInto(java.sql.Connection conn,
java.lang.String tableName,
java.lang.String[] columns,
java.lang.String[] values,
java.lang.String uniqueColumn)
throws java.sql.SQLException
java.sql.SQLException
public static void replaceInto(java.sql.Connection conn,
java.lang.String tableName,
java.lang.String[] columns,
java.lang.String[] values,
java.lang.String uniqueColumn,
boolean[] isNumeric,
Logging log)
throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String getLongString(java.sql.ResultSet rs,
int pos)
throws java.sql.SQLException
java.sql.SQLException
public static void createNonExistingTables(ConnectionPool cPool,
java.io.InputStream dbSpec,
Logging log)
throws java.io.IOException,
InconsistentTableSpecException,
java.sql.SQLException
java.io.IOException
InconsistentTableSpecException
java.sql.SQLException
public static java.util.List getNonExistingTables(java.sql.Connection conn,
java.util.List tSpecs)
throws java.sql.SQLException
java.sql.SQLException
public static void createTables(TableCreatingConnection tcConn,
java.util.List tSpecs,
Logging log)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String backslashEscape(java.lang.String in)
public static java.lang.String aposEscape(java.lang.String in)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||