public class OwSearchSQLPreparedStatementOperator extends OwSearchSQLOperator
Operator to create SQL out of a OwSearchNode Tree using prepared statements.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
OwSearchSQLOperator.SqlOperatorSingleton
Modifier and Type | Field and Description |
---|---|
protected ArrayList |
m_parameterBindings
ArrayList to collect all parameter values
|
DATE_MODE_DB2, DATE_MODE_DEFAULT, DATE_MODE_FNCM, DATE_MODE_FNIM, DATE_MODE_MS_ACCESS, DATE_MODE_MSSQL, DATE_MODE_ORACLE, DATE_MODE_TREAT_IGNORE_TIME_AS_RANGE, m_iMode, m_SqlOperators
Constructor and Description |
---|
OwSearchSQLPreparedStatementOperator()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getParameterBindings()
Get an array with real values for each ? in the query string
|
protected String |
getSQLValueString(OwSearchCriteria criteria_p,
Object value_p,
int dateMode_p)
override the default behavior to insert ? instead of real values.
|
convertWildCards, createSQLSearchCriteria, getCriteriaQueryName, getDateMode, getOperatorSQL, getSingleOperatorSQL, getSQLOperatorAsString, getStringValue, isOperatorFieldFirst, isStringLiteral, setDateFormats
protected ArrayList m_parameterBindings
public OwSearchSQLPreparedStatementOperator()
protected String getSQLValueString(OwSearchCriteria criteria_p, Object value_p, int dateMode_p) throws Exception
getSQLValueString
in class OwSearchSQLOperator
criteria_p
- the criteria to convertdateMode_p
- int Date mode used to convert date types as defined with DATE_MODE_...Exception
public Object[] getParameterBindings()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.