Package org.cdlib.mrt.db
Class DBUtil
java.lang.Object
org.cdlib.mrt.db.DBUtil
This interface defines the functional API for a Curational Storage Service
- Author:
- dloy
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildModify(Properties prop) static StringbuildModifyNull(Properties prop) static StringbuildSelect(Properties prop) Build a select query from a set of properties Individual search elements are adjusted based on presents of % for triggering a like relation.static Properties[]cmd(Connection connection, String cmd, LoggerInf logger) static booleanexec(Connection connection, String replaceCmd, LoggerInf logger) protected static booleanprotected static voidstatic intupdate(Connection connection, String replaceCmd, LoggerInf logger)
-
Field Details
-
NAME
- See Also:
-
MESSAGE
- See Also:
-
DEBUG
protected static final boolean DEBUG- See Also:
-
NL
-
-
Constructor Details
-
DBUtil
protected DBUtil()
-
-
Method Details
-
cmd
public static Properties[] cmd(Connection connection, String cmd, LoggerInf logger) throws TException - Throws:
TException
-
exec
public static boolean exec(Connection connection, String replaceCmd, LoggerInf logger) throws TException - Throws:
TException
-
update
public static int update(Connection connection, String replaceCmd, LoggerInf logger) throws TException - Throws:
TException
-
buildModify
-
buildModifyNull
-
buildSelect
Build a select query from a set of properties Individual search elements are adjusted based on presents of % for triggering a like relation. If the element is a url, then a trailing * is used to trigger the like.- Parameters:
prop-- Returns:
-
isURL
-
log
-