Package com.spun.util.database
Class SQLUtils
java.lang.Object
com.spun.util.database.SQLUtils
public class SQLUtils extends Object
-
Constructor Summary
Constructors Constructor Description SQLUtils() -
Method Summary
Modifier and Type Method Description static StringcompareBy(ColumnMetadata metadata, String alias, String compareBy, boolean value)static StringcompareBy(ColumnMetadata metadata, String alias, String compareBy, Object value)static StringcompareByEquals(ColumnMetadata metadata, String alias, Object value)static StringcreateInSQLStatement(ColumnMetadata metadata, String alias, boolean not, Object[] values)static StringcreateInSQLStatement(ColumnMetadata metadata, String alias, Object[] values)static StringcreateInSQLStatement(DatabaseObject[] from)static StringcreateInSQLStatement(Object[] values)static StringcreateInSQLStatement(String[] values)static StringcreateSQLBetween(String lowerValue, String betweenVariable, String upperValue)static StringloadInSQLStatement(ResultSet rs)
-
Constructor Details
-
SQLUtils
public SQLUtils()
-
-
Method Details
-
createInSQLStatement
-
createInSQLStatement
-
createInSQLStatement
-
loadInSQLStatement
- Throws:
SQLException
-
createSQLBetween
-
compareBy
public static String compareBy(ColumnMetadata metadata, String alias, String compareBy, Object value) -
compareBy
public static String compareBy(ColumnMetadata metadata, String alias, String compareBy, boolean value) -
compareByEquals
-
createInSQLStatement
-
createInSQLStatement
public static String createInSQLStatement(ColumnMetadata metadata, String alias, boolean not, Object[] values)
-