public final class DBQueryUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DBQueryUtil.Encoding |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
parseValues(java.lang.String url,
DBObject base,
DBQueryUtil.Encoding encoding)
Searches a string for paths which are delimited by $ and substitutes the path
with the actual value the the path refers to based on the supplied base object
TODO: This should be moved somewhere else.
|
static java.lang.String |
parseValues(java.lang.String url,
DBObject base,
DBQueryUtil.Encoding encoding,
boolean isUrlEncoded)
TODO: we should use the encoding is Encoding.URL or not to check if the given url is encoded, but currently I can not guarantee the urls are encoded for all
places that are using Encoding.URL, so I have to add the isUrlEncoding parameter for now
|
static java.lang.String |
validateURLBaseValues(java.lang.String url,
DBClassConcrete baseClass,
DataSource ds) |
@CheckReturnValue
@Nonnull
public static java.lang.String parseValues(@Nonnull
java.lang.String url,
@Nonnull
DBObject base,
@Nonnull
DBQueryUtil.Encoding encoding)
throws java.lang.Exception
url - base - the base objectencoding - java.lang.Exception - a serious problem@CheckReturnValue
@Nonnull
public static java.lang.String parseValues(@Nonnull
java.lang.String url,
@Nonnull
DBObject base,
@Nonnull
DBQueryUtil.Encoding encoding,
boolean isUrlEncoded)
throws java.lang.Exception
url - base - the base objectencoding - isUrlEncoded - if the given url is encoded properlyjava.lang.Exceptionpublic static java.lang.String validateURLBaseValues(java.lang.String url,
DBClassConcrete baseClass,
DataSource ds)
throws InvalidPathException
url - baseClass - The base classds - the data sourceInvalidPathExceptionstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.