public abstract class WhereConditionStd
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
WhereConditionStd.AppendVariant
Interface to reduce number of different method calls.
|
Modifier and Type | Field and Description |
---|---|
static int |
AND |
static java.lang.String |
EQUALS |
static java.lang.String |
GREATER |
static java.lang.String |
GREATER_EQUALS |
static java.lang.String |
IS_NOT_NULL |
static java.lang.String |
LIKE |
static java.lang.String |
LOWER |
static java.lang.String |
LOWER_EQUALS |
static java.lang.String |
NOT_EQUALS |
static int |
OR |
protected SqlDialect |
sqlDialect |
Constructor and Description |
---|
WhereConditionStd() |
WhereConditionStd(DataObject dataObject)
Constructs a new where condition, prepared to comply to the SQL dialect given by
the specified DataObject class.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getColumnNameWoTablePrefix(java.lang.String columnName)
Removes the table name prefix from the full qualified columnName and returns the pure column name.
|
protected int |
getColumnType(java.lang.String columnName) |
protected java.sql.Date |
getDayBeginDate(java.sql.Date date) |
protected java.sql.Date |
getDayEndingDate(java.sql.Date date) |
protected java.lang.String |
getDefaultRelation(java.lang.String value) |
protected java.sql.Date |
getNextDayBeginDate(java.sql.Date date) |
protected boolean |
isToCast(java.lang.String columnName) |
protected boolean |
isToCast(java.lang.String columnName,
java.lang.String relation) |
protected boolean |
isToUseUpperCase() |
protected static boolean |
isToUseUpperCase(SqlDialect sqlDialect) |
public static final java.lang.String EQUALS
public static final java.lang.String NOT_EQUALS
public static final java.lang.String LIKE
public static final java.lang.String GREATER
public static final java.lang.String GREATER_EQUALS
public static final java.lang.String LOWER
public static final java.lang.String LOWER_EQUALS
public static final java.lang.String IS_NOT_NULL
public static int AND
public static int OR
protected SqlDialect sqlDialect
public WhereConditionStd()
public WhereConditionStd(DataObject dataObject)
dataObject
- the DataObject class to refer to the SQL dialect to comply toprotected java.sql.Date getDayBeginDate(java.sql.Date date)
protected java.sql.Date getDayEndingDate(java.sql.Date date)
protected java.sql.Date getNextDayBeginDate(java.sql.Date date)
protected java.lang.String getDefaultRelation(java.lang.String value)
protected boolean isToUseUpperCase()
protected static boolean isToUseUpperCase(SqlDialect sqlDialect)
protected boolean isToCast(java.lang.String columnName)
protected boolean isToCast(java.lang.String columnName, java.lang.String relation)
protected int getColumnType(java.lang.String columnName)
protected java.lang.String getColumnNameWoTablePrefix(java.lang.String columnName)
columnName
- the columnName - maybe qualified by table name prefixCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de