|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.util.QueryUtil
public class QueryUtil
Util to execute queries as simple as possible.
Constructor Summary | |
---|---|
QueryUtil()
|
Method Summary | |
---|---|
static java.lang.String |
createDateExpression(java.util.Calendar calendar)
Expression representing a date. |
static java.lang.String |
createDateExpression(int year,
int month,
int day)
|
static java.lang.String |
createDateTimeExpression(java.util.Calendar calendar)
Expression representing a date and time. |
static java.lang.String |
createDateTimeExpression(int year,
int month,
int day,
int hour,
int minutes,
int seconds)
|
static java.lang.String |
createDateTimeExpressionIgnoreTimeZone(java.util.Calendar calendar)
Do not consider the timezone. |
static java.lang.String |
createDateTimeExpressionIgnoreTimeZone(int year,
int month,
int day,
int hour,
int minutes,
int seconds)
|
static java.util.Collection<Content> |
exceptionThrowingQuery(java.lang.String repository,
java.lang.String statement,
java.lang.String language,
java.lang.String returnItemType)
|
static java.util.Collection<Content> |
exceptionThrowingQuery(java.lang.String repository,
java.lang.String statement,
java.lang.String language,
java.lang.String returnItemType,
long maxResultSize)
Executes a query, throwing any exceptions that arise as a result. |
static java.util.Collection<Content> |
query(java.lang.String repository,
java.lang.String statement)
Executes a query. |
static java.util.Collection<Content> |
query(java.lang.String repository,
java.lang.String statement,
java.lang.String language)
Executes a query. |
static java.util.Collection<Content> |
query(java.lang.String repository,
java.lang.String statement,
java.lang.String language,
java.lang.String returnItemType)
|
static java.util.Collection<Content> |
query(java.lang.String repository,
java.lang.String statement,
java.lang.String language,
java.lang.String returnItemType,
long maxResultSize)
Executes a query - if an exception is thrown, it is logged and an empty collection is returned. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryUtil()
Method Detail |
---|
public static java.util.Collection<Content> query(java.lang.String repository, java.lang.String statement)
public static java.util.Collection<Content> query(java.lang.String repository, java.lang.String statement, java.lang.String language)
public static java.util.Collection<Content> exceptionThrowingQuery(java.lang.String repository, java.lang.String statement, java.lang.String language, java.lang.String returnItemType) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static java.util.Collection<Content> exceptionThrowingQuery(java.lang.String repository, java.lang.String statement, java.lang.String language, java.lang.String returnItemType, long maxResultSize) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static java.util.Collection<Content> query(java.lang.String repository, java.lang.String statement, java.lang.String language, java.lang.String returnItemType)
public static java.util.Collection<Content> query(java.lang.String repository, java.lang.String statement, java.lang.String language, java.lang.String returnItemType, long maxResultSize)
public static java.lang.String createDateExpression(int year, int month, int day)
month
- 1-12 (as opposed to java.util.Calendar 0-11 notation)public static java.lang.String createDateExpression(java.util.Calendar calendar)
public static java.lang.String createDateTimeExpression(int year, int month, int day, int hour, int minutes, int seconds)
month
- 1-12 (as opposed to java.util.Calendar 0-11 notation)public static java.lang.String createDateTimeExpression(java.util.Calendar calendar)
public static java.lang.String createDateTimeExpressionIgnoreTimeZone(int year, int month, int day, int hour, int minutes, int seconds)
month
- 1-12 (as opposed to java.util.Calendar 0-11 notation)public static java.lang.String createDateTimeExpressionIgnoreTimeZone(java.util.Calendar calendar)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |