Index
All Classes|All Packages|Serialized Form
A
- addParameter(String, String) - Method in class com.zfabrik.util.net.ParsedURL
-
Adds a parameter with value to the query part.
B
- beanFields(Class<?>, String...) - Static method in class com.zfabrik.util.jdbc.QueryBuilder
-
compute an array of field names given a bean, following our naming conventions (see above).
- beanParams(Object, String[], String...) - Static method in class com.zfabrik.util.jdbc.QueryBuilder
-
Reads Java bean property values from the given POJO for the given fields.
C
- clear() - Method in class com.zfabrik.util.SmartProperties
- close(Closeable) - Static method in class com.zfabrik.util.jdbc.Closer
- close(Object...) - Static method in class com.zfabrik.util.jdbc.Closer
- close(Connection) - Static method in class com.zfabrik.util.jdbc.Closer
- close(ResultSet) - Static method in class com.zfabrik.util.jdbc.Closer
- close(Statement) - Static method in class com.zfabrik.util.jdbc.Closer
- Closer - Class in com.zfabrik.util.jdbc
- Closer() - Constructor for class com.zfabrik.util.jdbc.Closer
- com.zfabrik.util - package com.zfabrik.util
- com.zfabrik.util.datetime - package com.zfabrik.util.datetime
- com.zfabrik.util.jdbc - package com.zfabrik.util.jdbc
- com.zfabrik.util.net - package com.zfabrik.util.net
- com.zfabrik.util.validators - package com.zfabrik.util.validators
- contains(Object) - Method in class com.zfabrik.util.SmartProperties
- containsValue(Object) - Method in class com.zfabrik.util.SmartProperties
D
- delete(String, Object...) - Method in class com.zfabrik.util.jdbc.TableAccessor
- delete(Connection, String, String, Object...) - Static method in class com.zfabrik.util.jdbc.QueryBuilder
-
DELETEs the rows specified by the given where statement in the given table using the given connection
- dumpTable() - Method in class com.zfabrik.util.jdbc.TableAccessor
E
- elements() - Method in class com.zfabrik.util.SmartProperties
- EmailValidator - Class in com.zfabrik.util.validators
-
Very simple email validator
- EmailValidator() - Constructor for class com.zfabrik.util.validators.EmailValidator
- entrySet() - Method in class com.zfabrik.util.SmartProperties
G
- get(Object) - Method in class com.zfabrik.util.SmartProperties
- getColumns(String, Connection) - Static method in class com.zfabrik.util.jdbc.TableInfo
- getColumns(String, DataSource) - Static method in class com.zfabrik.util.jdbc.TableInfo
- getErrors() - Method in exception com.zfabrik.util.validators.ValidationException
- getFragment() - Method in class com.zfabrik.util.net.ParsedURL
-
Gets the scheme of the current URI.
- getHost() - Method in class com.zfabrik.util.net.ParsedURL
-
Gets the Host of the current URI.
- getMessage() - Method in exception com.zfabrik.util.validators.PropertyValidationError
- getParametersSet() - Method in class com.zfabrik.util.net.ParsedURL
-
Gets all parameters of the query part.
- getParameterValue(String) - Method in class com.zfabrik.util.net.ParsedURL
-
Gets the lone value assigned to a parameter from the query part.
- getParameterValues(String) - Method in class com.zfabrik.util.net.ParsedURL
-
Gets all values assigned to a parameter from the query part.
- getPath() - Method in class com.zfabrik.util.net.ParsedURL
-
Gets the path of the current URI.
- getPort() - Method in class com.zfabrik.util.net.ParsedURL
-
Gets the port of the current URI.
- getProperty(String) - Method in class com.zfabrik.util.SmartProperties
- getProperty(String, String) - Method in class com.zfabrik.util.SmartProperties
- getPropertyError() - Method in exception com.zfabrik.util.validators.PropertyValidationError
- getPropertyName() - Method in exception com.zfabrik.util.validators.PropertyValidationError
- getQuery() - Method in class com.zfabrik.util.net.ParsedURL
-
Gets the query String.
- getScheme() - Method in class com.zfabrik.util.net.ParsedURL
-
Gets the scheme of the current URI.
- getString(ResourceBundle, String, Object...) - Static method in class com.zfabrik.util.StringUtils
-
Exception safe getString method for resource bundles.
- getUserInfo() - Method in class com.zfabrik.util.net.ParsedURL
-
Gets the UserInfo of the current URI.
H
- hasErrors() - Method in exception com.zfabrik.util.validators.ValidationException
I
- insert(Object) - Method in class com.zfabrik.util.jdbc.TableAccessor
- insert(Connection, String, Object) - Static method in class com.zfabrik.util.jdbc.QueryBuilder
-
INSERTs the data defined by the given bean into the given table using the given connection.
- insert(Connection, String, Map<String, Object>) - Static method in class com.zfabrik.util.jdbc.QueryBuilder
-
INSERTs the data defined by the given map into the given table using the given connection.
- insert(Map<String, Object>) - Method in class com.zfabrik.util.jdbc.TableAccessor
- insertClause(String, String[]) - Static method in class com.zfabrik.util.jdbc.QueryBuilder
-
constructs INSERT clause for the given table and fields to be used as a prepared statement string
- isAbsolute() - Method in class com.zfabrik.util.net.ParsedURL
-
Gets wether this URI is absolute.
- isEmpty(CharSequence) - Static method in class com.zfabrik.util.StringUtils
- ISO8601DateFormat - Class in com.zfabrik.util.datetime
- ISO8601DateFormat() - Constructor for class com.zfabrik.util.datetime.ISO8601DateFormat
- isValid(String) - Static method in class com.zfabrik.util.validators.EmailValidator
- isValidWebURL(String) - Static method in class com.zfabrik.util.validators.URLValidator
K
- keys() - Method in class com.zfabrik.util.SmartProperties
- keySet() - Method in class com.zfabrik.util.SmartProperties
L
- list(PrintStream) - Method in class com.zfabrik.util.SmartProperties
- list(PrintWriter) - Method in class com.zfabrik.util.SmartProperties
- load(InputStream) - Method in class com.zfabrik.util.SmartProperties
- loadFromXML(InputStream) - Method in class com.zfabrik.util.SmartProperties
- lowerCaseTrimIdentifierAndNormalizeToNull(String) - Static method in class com.zfabrik.util.StringUtils
-
remove blanks and normalize to null
M
- main(String[]) - Static method in class com.zfabrik.util.datetime.ISO8601DateFormat
- mask(String) - Static method in class com.zfabrik.util.jdbc.QueryBuilder
-
Translate the usual wildcards * and ? into SQL wildcards % and _.
N
- NO_MILLIS - Static variable in class com.zfabrik.util.datetime.ISO8601DateFormat
- notEmpty(CharSequence) - Static method in class com.zfabrik.util.StringUtils
P
- parse(String) - Static method in class com.zfabrik.util.datetime.ISO8601DateFormat
- parse(String) - Method in class com.zfabrik.util.net.ParsedURL
-
parse a given URI.
- ParsedURL - Class in com.zfabrik.util.net
-
URI is a convenience class for manipulation of URLs based on the W3C RFC 2396 (see the World Wide Web Consortium pages).
- ParsedURL() - Constructor for class com.zfabrik.util.net.ParsedURL
-
Constructor.
- ParsedURL(ParsedURL) - Constructor for class com.zfabrik.util.net.ParsedURL
-
Constructor with initial URL.
- ParsedURL(String) - Constructor for class com.zfabrik.util.net.ParsedURL
-
Constructor with initial URL.
- PropertyExpressionResolver - Class in com.zfabrik.util
-
The
PropertyExpressionResolver
class provides the functionality to resolve expressions in properties. - PropertyExpressionResolver(Properties) - Constructor for class com.zfabrik.util.PropertyExpressionResolver
-
Constructs a new
PropertyExpressionResolver
object for the givenProperties
. - PropertyExpressionResolver(Properties, Properties) - Constructor for class com.zfabrik.util.PropertyExpressionResolver
-
Constructs a new
PropertyExpressionResolver
object for the givenProperties p_in
. - propertyNames() - Method in class com.zfabrik.util.SmartProperties
- PropertyValidationError - Exception in com.zfabrik.util.validators
- PropertyValidationError(String, String) - Constructor for exception com.zfabrik.util.validators.PropertyValidationError
- put(Object, Object) - Method in class com.zfabrik.util.SmartProperties
- putAll(Map<? extends Object, ? extends Object>) - Method in class com.zfabrik.util.SmartProperties
Q
- QueryBuilder - Class in com.zfabrik.util.jdbc
-
Some simple utilities that help constructing SQL queries and update statements from field arrays.
- QueryBuilder() - Constructor for class com.zfabrik.util.jdbc.QueryBuilder
R
- remove(Object) - Method in class com.zfabrik.util.SmartProperties
- removeParameter(String) - Method in class com.zfabrik.util.net.ParsedURL
-
Removes the specified parameter from the query part.
- removeParameter(String, String) - Method in class com.zfabrik.util.net.ParsedURL
-
Removes the specified name-value pair from the query part.
- removeParameters() - Method in class com.zfabrik.util.net.ParsedURL
-
Removes all parameters from the query part.
- resetConnection() - Method in class com.zfabrik.util.jdbc.TableAccessor
- resolveAll() - Method in class com.zfabrik.util.PropertyExpressionResolver
-
Resolves all property-expressions provided by the input-properties object and stores the result into the output-properties.
- resolveExpr(String) - Method in class com.zfabrik.util.PropertyExpressionResolver
-
Resolves the given expression string using the input-properties object
- resolveKey(String) - Method in class com.zfabrik.util.PropertyExpressionResolver
-
Looks up the given key in the input-properties object and resolves the value using the input-properties object
- rowsCount() - Method in class com.zfabrik.util.jdbc.TableAccessor
- rowsCount(Connection, String) - Static method in class com.zfabrik.util.jdbc.QueryBuilder
-
Returns the number of rows of the given table
S
- save(OutputStream, String) - Method in class com.zfabrik.util.SmartProperties
- select(String[]) - Method in class com.zfabrik.util.jdbc.TableAccessor
- select(String[], String, Object...) - Method in class com.zfabrik.util.jdbc.TableAccessor
- select(Connection, String, String[], String, Object...) - Static method in class com.zfabrik.util.jdbc.QueryBuilder
-
run a query
- selectClause(String, String[]) - Static method in class com.zfabrik.util.jdbc.QueryBuilder
-
constructs a select clause for the given table and fields
- setFragment(String) - Method in class com.zfabrik.util.net.ParsedURL
-
Sets the fragment of the URI
- setHost(String) - Method in class com.zfabrik.util.net.ParsedURL
-
Sets the Host of the URI
- setParameter(String, String) - Method in class com.zfabrik.util.net.ParsedURL
-
Sets a parameter with value to the query part removing all previous values
- setPath(String) - Method in class com.zfabrik.util.net.ParsedURL
-
Sets the path of the URI
- setPort(String) - Method in class com.zfabrik.util.net.ParsedURL
-
Sets the port of the URI
- setProperty(String, String) - Method in class com.zfabrik.util.SmartProperties
- setPropertyError(String) - Method in exception com.zfabrik.util.validators.PropertyValidationError
- setScheme(String) - Method in class com.zfabrik.util.net.ParsedURL
-
Sets the scheme of the URI, e.g.
- setURI(String) - Method in class com.zfabrik.util.net.ParsedURL
-
Sets the URI handled by this instance.
- setUserInfo(String) - Method in class com.zfabrik.util.net.ParsedURL
-
Sets the User-info of the URI
- SmartProperties - Class in com.zfabrik.util
-
Properties implementation supporting property value substitution.
- SmartProperties() - Constructor for class com.zfabrik.util.SmartProperties
- SmartProperties(Properties) - Constructor for class com.zfabrik.util.SmartProperties
- splitString(String) - Static method in class com.zfabrik.util.StringUtils
- store(OutputStream, String) - Method in class com.zfabrik.util.SmartProperties
- storeToXML(OutputStream, String) - Method in class com.zfabrik.util.SmartProperties
- storeToXML(OutputStream, String, String) - Method in class com.zfabrik.util.SmartProperties
- StringUtils - Class in com.zfabrik.util
- StringUtils() - Constructor for class com.zfabrik.util.StringUtils
T
- TableAccessor - Class in com.zfabrik.util.jdbc
- TableAccessor(Connection, String) - Constructor for class com.zfabrik.util.jdbc.TableAccessor
- TableAccessor(DataSource, String) - Constructor for class com.zfabrik.util.jdbc.TableAccessor
- TableInfo - Class in com.zfabrik.util.jdbc
- TableInfo() - Constructor for class com.zfabrik.util.jdbc.TableInfo
- toISO8601String(Date) - Static method in class com.zfabrik.util.datetime.ISO8601DateFormat
- toISO8601String(Date, int) - Static method in class com.zfabrik.util.datetime.ISO8601DateFormat
- toRegEx() - Method in class com.zfabrik.util.net.ParsedURL
-
constructs a regular expression that matches all valid url that would result into the same properties for all properties that are currently set - up to the last piece that has been set.
- toString() - Method in class com.zfabrik.util.net.ParsedURL
- toString() - Method in exception com.zfabrik.util.validators.PropertyValidationError
- toString() - Method in exception com.zfabrik.util.validators.ValidationException
- toString(boolean) - Method in class com.zfabrik.util.net.ParsedURL
-
Gets a string representation of the URI.
- trimAndNormalizeToNull(String) - Static method in class com.zfabrik.util.StringUtils
-
Trims if the argument is not null.
- trimTailAndNormalizeToNull(String) - Static method in class com.zfabrik.util.StringUtils
-
Trims tail of argument if it is not null.
U
- update(Object, String, Object...) - Method in class com.zfabrik.util.jdbc.TableAccessor
- update(Connection, String, Object, String, Object...) - Static method in class com.zfabrik.util.jdbc.QueryBuilder
-
UPDATEs the data defined by the given bean into the given table using the given connection.
- update(Connection, String, Map<String, Object>, String, Object...) - Static method in class com.zfabrik.util.jdbc.QueryBuilder
-
UPDATEs the data defined by the given map into the given table using the given connection.
- update(Map<String, Object>, String, Object...) - Method in class com.zfabrik.util.jdbc.TableAccessor
- updateClause(String, String[]) - Static method in class com.zfabrik.util.jdbc.QueryBuilder
-
constructs UPDATE clause for the given table and fields to be used as a prepared statement string.
- URLValidator - Class in com.zfabrik.util.validators
- URLValidator() - Constructor for class com.zfabrik.util.validators.URLValidator
V
- ValidationException - Exception in com.zfabrik.util.validators
- ValidationException() - Constructor for exception com.zfabrik.util.validators.ValidationException
- ValidationException(PropertyValidationError...) - Constructor for exception com.zfabrik.util.validators.ValidationException
- values() - Method in class com.zfabrik.util.SmartProperties
- visit(T) - Method in interface com.zfabrik.util.Visitor
-
if returning
true
continue visiting, otherwise stop. - Visitor<T> - Interface in com.zfabrik.util
-
a simple handler - style interface that can be used as a callback during iteration over some set of objects
All Classes|All Packages|Serialized Form