Index

A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

absolute() - Method in class org.tentackle.common.BMoney
Gets the absolute value.
absolute() - Method in class org.tentackle.common.DMoney
 
AbstractBinary<T> - Class in org.tentackle.common
Base implementation for storing objects in a database.
AbstractBinary() - Constructor for class org.tentackle.common.AbstractBinary
Creates an empty binary.
AbstractBinary(InputStream, int, boolean) - Constructor for class org.tentackle.common.AbstractBinary
Creates a binary from an InputStream.
Used to read a binary from the database.
AbstractBinary(T) - Constructor for class org.tentackle.common.AbstractBinary
Creates a binary from an object.
add(BMoney) - Method in class org.tentackle.common.BMoney
Adds a BMoney to this value and returns a new object.
add(BMoney) - Method in class org.tentackle.common.DMoney
 
addExplicitClassLoader(String, String, ClassLoader) - Static method in class org.tentackle.common.ServiceFactory
Adds an explicit classloader for a given service path and name.
Loaders are kept in a list for each path and name combination, the most recently added first.
addExplicitClassLoaderImpl(String, String, ClassLoader) - Method in class org.tentackle.common.ServiceFactory
Adds an explicit classloader for a given service path and name.
Loaders are kept in a list for each path and name combination, the most recently added first.
alignScale(BMoney) - Method in class org.tentackle.common.BMoney
Checks the scale of the given money value.
AN_CLASSID - Static variable in class org.tentackle.common.Constants
java name of class-ID.
AN_EDITEDBY - Static variable in class org.tentackle.common.Constants
java name of the editing user.
AN_EDITEDEXPIRY - Static variable in class org.tentackle.common.Constants
java name of time the "lock token" will expire.
AN_EDITEDSINCE - Static variable in class org.tentackle.common.Constants
java name of time editing started.
AN_ID - Static variable in class org.tentackle.common.Constants
java name of ID.
AN_NORMTEXT - Static variable in class org.tentackle.common.Constants
java name for the normtext.
AN_ROOTCLASSID - Static variable in class org.tentackle.common.Constants
java name of root-class-ID.
AN_ROOTID - Static variable in class org.tentackle.common.Constants
java name of root-ID.
AN_SERIAL - Static variable in class org.tentackle.common.Constants
java name of serial.
AN_TABLESERIAL - Static variable in class org.tentackle.common.Constants
java name of tableserial.
Analyze - Annotation Interface in org.tentackle.common
Annotation to mark an annotation to be processed during the analyze phase, i.e., by the analyze goal of the tentackle-maven-plugin.
AnnotationProcessor - Annotation Interface in org.tentackle.common
Annotation to express that the annotated class is an annotation processor.
appliesTo(Throwable) - Method in class org.tentackle.common.ExceptionHelper.Handler
Checks if handler applies to the given exception.
apply(String) - Method in class org.tentackle.common.Cryptor
Encrypts a string.
Provided for the tentackle-maven-plugin.
apply(String) - Method in class org.tentackle.common.NumericEvaluator
Convenience method to evaluate a numeric expression without variables.
The expression is always evaluated with the Integer datatype, regardless of NumericEvaluator.getType().
apply(Locale, String, LinkedHashMap, Locale) - Method in class org.tentackle.common.I18NText
Applies a translation to an existing map and default locale.
A null or blank text removes the translation.
applyResourceIndex(ClassLoader, String, boolean) - Static method in class org.tentackle.common.ServiceFactory
Applies a given resource index.
The index is usually created via the tentackle-maven-plugin's analyze goal with the index option set to something like "META-INF/RESOURCE-INDEX.LIST".
applyResourceIndexImpl(ClassLoader, String, boolean) - Method in class org.tentackle.common.ServiceFactory
Applies a given resource index.
The index is usually created via the tentackle-maven-plugin's analyze goal with the index option set to something like "META-INF/RESOURCE-INDEX.LIST".
arg(Object...) - Method in class org.tentackle.common.ToolRunner
Adds arguments.
Each argument is converted to a string via Object.toString().
assertCurrentLocaleValid() - Method in class org.tentackle.common.LocaleProvider
Asserts that a thread-local Locale is set.
assertNotFrozen() - Method in class org.tentackle.common.AbstractBinary
Asserts that the binary is not frozen.

B

BACKEND_APPLICATION_NAME - Static variable in class org.tentackle.common.Constants
Application name.
By default, the application name is determined from the main class.
BACKEND_AUTHENTICATION - Static variable in class org.tentackle.common.Constants
Property key for the name of the client-side authentication method.
Selects the CredentialsProvider used to obtain the credentials before the session is opened.
BACKEND_AUTOLOGIN - Static variable in class org.tentackle.common.Constants
property key to enable autologin (only for desktop applications).
BACKEND_DRIVER - Static variable in class org.tentackle.common.Constants
explicit driver name and URL to load it from <name:url>.
BACKEND_IDENTITY - Static variable in class org.tentackle.common.Constants
optional backend identity to link different URLs to the same physical backend.
BACKEND_INFO - Static variable in class org.tentackle.common.Constants
Optional backend configuration.
Useful to define extra technical user credentials for the physical connection, to load JDBC-drivers at runtime or to switch between different backends.
BACKEND_INFO_SYSTEM - Static variable in class org.tentackle.common.Constants
Value of backendinfo to allow selecting the backend (see Login in fx-rdc) using system preferences.
If the value is followed by a colon and a name, that name is treated as the BackendConfiguration.
BACKEND_INFO_USER - Static variable in class org.tentackle.common.Constants
Value of backendinfo to allow selecting the backend (see Login in fx-rdc) using user preferences.
If the value is followed by a colon and a name, that name is treated as the BackendConfiguration.
BACKEND_JDBC_URL_INTRO - Static variable in class org.tentackle.common.Constants
intro in URL to denote a JDBC connection.
BACKEND_JNDI_URL_INTRO - Static variable in class org.tentackle.common.Constants
intro in URL to denote a JNDI connection.
BACKEND_KEEP_ALIVE - Static variable in class org.tentackle.common.Constants
send a keep-alive select every BACKEND_TIMEOUT minutes.
BACKEND_PASSWORD - Static variable in class org.tentackle.common.Constants
property key for the password and the default value for Constants.BACKEND_AUTHENTICATION.
BACKEND_PROPS - Static variable in class org.tentackle.common.Constants
name of property file holding the backend properties.
BACKEND_SCHEMAS - Static variable in class org.tentackle.common.Constants
property key for the optional schemas.
BACKEND_TIMEOUT - Static variable in class org.tentackle.common.Constants
database connection inactivity timeout in minutes.
BACKEND_URL - Static variable in class org.tentackle.common.Constants
property key for the backend URL.
BACKEND_USER - Static variable in class org.tentackle.common.Constants
property key for username.
bigDecimalValue() - Method in class org.tentackle.common.DMoney
Gets the value as stored in the database.
This is the unscaled value as a BigDecimal with scale 0, for example 12.34 with scale 2 becomes 1234.
Binary<T> - Class in org.tentackle.common
Datatype for storing an object in a database.
Uses Java Object Serialization (JOS) under the hood.
Binary() - Constructor for class org.tentackle.common.Binary
Creates an empty binary.
Binary(InputStream, int, boolean) - Constructor for class org.tentackle.common.Binary
Creates a binary from an InputStream.
Used to read a binary from the database.
Binary(T) - Constructor for class org.tentackle.common.Binary
Creates a Binary from a Serializable.
BIND_AUTOSELECT - Static variable in class org.tentackle.common.Constants
bind option autoselect field.
BIND_COLS - Static variable in class org.tentackle.common.Constants
bind option COLS=...
BIND_DIGITS - Static variable in class org.tentackle.common.Constants
bind option digits only.
BIND_FILLER - Static variable in class org.tentackle.common.Constants
bind option FILLER='...' or FILLER=0x...
BIND_LC - Static variable in class org.tentackle.common.Constants
bind option lowercase.
BIND_LINES - Static variable in class org.tentackle.common.Constants
bind option LINES=...
BIND_MAXCOLS - Static variable in class org.tentackle.common.Constants
bind option MAXCOLS=...
BIND_SCALE - Static variable in class org.tentackle.common.Constants
bind option SCALE=...
BIND_STRIP_BOTH - Static variable in class org.tentackle.common.Constants
bind option to remove leading and trailing filler characters (default for text components).
BIND_STRIP_LEFT - Static variable in class org.tentackle.common.Constants
bind option to remove leading filler characters.
BIND_STRIP_NONE - Static variable in class org.tentackle.common.Constants
bind option to turn off stripping.
BIND_STRIP_RIGHT - Static variable in class org.tentackle.common.Constants
bind option to remove trailing filler characters.
BIND_UC - Static variable in class org.tentackle.common.Constants
bind option uppercase.
BIND_UNSIGNED - Static variable in class org.tentackle.common.Constants
bind option UNSIGNED.
BIND_UTC - Static variable in class org.tentackle.common.Constants
bind timestamp with UTC option.
blank(char[]) - Static method in class org.tentackle.common.StringHelper
Null-safe char array filler.
Fills with blanks.
BMoney - Class in org.tentackle.common
Money value derived from BigDecimal.
BMoney() - Constructor for class org.tentackle.common.BMoney
Creates a zero BMoney with a scale according to the currency of the current locale.
BMoney(double, int) - Constructor for class org.tentackle.common.BMoney
Creates a BMoney value.
BMoney(int) - Constructor for class org.tentackle.common.BMoney
Creates a zero BMoney value.
BMoney(String, int) - Constructor for class org.tentackle.common.BMoney
Creates a BMoney value.
BMoney(BigDecimal) - Constructor for class org.tentackle.common.BMoney
Creates a BMoney from a BigDecimal.
The scale of the decimal value is taken over.
BMoney(BigInteger, int) - Constructor for class org.tentackle.common.BMoney
Creates a BMoney value from a BigInteger.
The scale sets the decimal point within the given integer, i.e., the integer is the unscaled value.
BMoney(BMoney, int) - Constructor for class org.tentackle.common.BMoney
Creates a BMoney from a BMoney (useful to rescale).
BMONEY_DIGITS - Static variable in class org.tentackle.common.Constants
maximum number of significant digits for BMoney.
BOTH - Enum constant in enum class org.tentackle.common.StripMode
Remove leading and trailing filler characters.
This is the default.
build(LayerGraphSpec, ModuleLayer, ClassLoader) - Static method in class org.tentackle.common.ModuleLayerBuilder
Builds the module layer graph described by the given spec.
Bundle - Annotation Interface in org.tentackle.common
Annotation to express that the annotated class corresponds to a resource bundle.
BUNDLE_SERVICE - Static variable in class org.tentackle.common.BundleSupport
The service name to find all annotations to mark classes as bundles.
Such as @Bundle or @FxControllerService.
BUNDLE_SERVICE_PATH - Static variable in class org.tentackle.common.Constants
the directory for resource bundle names.
BundleFactory - Interface in org.tentackle.common
The resource bundle factory.
BundleSupport - Class in org.tentackle.common
Support to locate bundle services.
BundleSupport(ModuleInfo, String, String) - Constructor for class org.tentackle.common.BundleSupport
Creates a bundle support object.

C

camelCaseToDelimited(String, String) - Static method in class org.tentackle.common.StringHelper
Converts a camelCase string to a string with delimiters.
charAt(int) - Method in class org.tentackle.common.I18NText
chars() - Method in class org.tentackle.common.I18NText
 
charToEscaped(char) - Static method in class org.tentackle.common.StringHelper
Converts a character that followed a backslash to an escaped character.
The special escapes are:
classLoader() - Method in record class org.tentackle.common.ServiceFinderKey
Returns the value of the classLoader record component.
ClasspathFirst - Annotation Interface in org.tentackle.common
Annotation to override a service on the module path from the classpath.
clear() - Method in class org.tentackle.common.ToolRunner
Clears arguments and results.
The runner can be reused afterward.
clearCache() - Method in interface org.tentackle.common.BundleFactory
Clears the bundle cache.
The default implementation clears the ResourceBundle cache for the classloader that loaded the factory.
clearCache() - Method in class org.tentackle.common.DefaultBundleFactory
 
clone() - Method in class org.tentackle.common.AbstractBinary
clone() - Method in class org.tentackle.common.Binary
clone() - Method in class org.tentackle.common.BMoney
Clones a BMoney value.
clone() - Method in class org.tentackle.common.Date
clone() - Method in class org.tentackle.common.EncryptedProperties
 
clone() - Method in class org.tentackle.common.TBinary
clone() - Method in class org.tentackle.common.Time
clone() - Method in class org.tentackle.common.Timestamp
CN_CLASSID - Static variable in class org.tentackle.common.Constants
name of class-ID column.
CN_EDITEDBY - Static variable in class org.tentackle.common.Constants
name of the column holding the object ID of the user currently editing this object.
CN_EDITEDEXPIRY - Static variable in class org.tentackle.common.Constants
name of the column holding the time when the "lock token" will expire.
CN_EDITEDSINCE - Static variable in class org.tentackle.common.Constants
name of the column holding the time when editing started.
CN_ID - Static variable in class org.tentackle.common.Constants
name of ID column.
CN_NORMTEXT - Static variable in class org.tentackle.common.Constants
column name for the normtext.
CN_ROOTCLASSID - Static variable in class org.tentackle.common.Constants
name of root-class-ID column.
CN_ROOTID - Static variable in class org.tentackle.common.Constants
name of root-ID column.
CN_SERIAL - Static variable in class org.tentackle.common.Constants
name of serial column.
CN_TABLESERIAL - Static variable in class org.tentackle.common.Constants
name of tableserial column.
codePoints() - Method in class org.tentackle.common.I18NText
 
CommonCommonBundle - Class in org.tentackle.common
Bundle for the common package in tentackle-common.
compare(T, T) - Static method in class org.tentackle.common.Compare
Compares two objects.
null is being treated as smallest value.
Compare - Class in org.tentackle.common
Some handy static null-safe methods to compare two Comparables.
compareTo(I18NText) - Method in class org.tentackle.common.I18NText
Compares the translations for the current locale.
Missing translations come first.
compareWithNullLargest(T, T) - Static method in class org.tentackle.common.Compare
Compares two objects.
null is being treated as largest value.
concatenateMessages(Throwable) - Static method in class org.tentackle.common.ExceptionHelper
Concatenates the messages of an exception chain.
The messages are separated by newlines.
Constants - Class in org.tentackle.common
Class holding constants for build- and runtime.
contains(String, CharSequence) - Static method in class org.tentackle.common.StringHelper
containsIgnoreCase(String, CharSequence) - Static method in class org.tentackle.common.StringHelper
Same as StringHelper.contains(String, CharSequence) but ignores the case.
copy(File, File) - Static method in class org.tentackle.common.FileHelper
Copies a file.
copy(T) - Method in class org.tentackle.common.DefaultObjectSerializer
 
copy(T) - Method in interface org.tentackle.common.ObjectSerializer
Creates a deep copy of the given object.
copyDirectory(File, File, boolean, FileFilter) - Static method in class org.tentackle.common.FileHelper
Copies all files from one directory to another.
The destination directory is created if necessary.
countOccurrences(String, char) - Static method in class org.tentackle.common.StringHelper
Counts the number of occurrences of a given character in a string.
create(InputStream, int, boolean) - Static method in class org.tentackle.common.Binary
Creates a Binary out of an InputStream.
create(InputStream, int, boolean) - Static method in class org.tentackle.common.TBinary
Creates a TBinary out of an InputStream.
create(List, List) - Method in interface org.tentackle.common.PathFactory
Creates a new path from elements and continuation paths.
create(List, P) - Method in interface org.tentackle.common.PathFactory
Creates a new path by prepending elements to an existing path.
createFrozen(long) - Static method in class org.tentackle.common.Date
Creates a frozen date.
createFrozen(long) - Static method in class org.tentackle.common.Time
Creates a frozen time.
createFrozen(long, int) - Static method in class org.tentackle.common.Timestamp
Creates a frozen timestamp.
The UTC flag is false.
createInputStream(Class, String) - Static method in class org.tentackle.common.FileHelper
Creates an input stream from a resource.
createNameMap(String) - Method in class org.tentackle.common.DefaultServiceFinder
Creates a map of names to mapped services.
The configurations are taken from Constants.MAPPED_SERVICE_PATH and have the form provider = name (or provider : name), as generated for MappedServices.
createNameMap(String) - Method in interface org.tentackle.common.ServiceFinder
Creates a map of names to mapped services.
The configurations are taken from Constants.MAPPED_SERVICE_PATH and have the form provider = name (or provider : name), as generated for MappedServices.
createNameMapToAll(String) - Method in class org.tentackle.common.DefaultServiceFinder
Creates a map of names to all mapped services.
Same as ServiceFinder.createNameMap(String), but maps each name to all of its providers.
createNameMapToAll(String) - Method in interface org.tentackle.common.ServiceFinder
Creates a map of names to all mapped services.
Same as ServiceFinder.createNameMap(String), but maps each name to all of its providers.
createProviders() - Method in class org.tentackle.common.DefaultBundleFactory
Creates a list of providers.
createSecretKeySpec(byte[]) - Method in class org.tentackle.common.Cryptor
Creates the key spec.
The default implementation returns an AES spec.
createService(Class) - Static method in class org.tentackle.common.ServiceFactory
Utility method to create a service instance.
This is the standard way to instantiate singletons.
createService(Class, Class) - Static method in class org.tentackle.common.ServiceFactory
Utility method to create a service instance with a default if not found.
Same as ServiceFactory.createService(Class, Class, boolean) with a warning logged if the default class is used.
createService(Class, Class, boolean) - Static method in class org.tentackle.common.ServiceFactory
Utility method to create a service instance with a default if not found.
createServiceClass(Class) - Static method in class org.tentackle.common.ServiceFactory
Utility method to determine the provider class of a service.
Finds the first service implementation in module/classpath order (see ModuleSorter).
Cryptor - Class in org.tentackle.common
A simple en- and decryptor.
Each application should provide a concrete subclass with a confidential salt and passphrase and a no-arg constructor.
Cryptor(byte[], char[]) - Constructor for class org.tentackle.common.Cryptor
Creates a cryptor with 1024 iterations and a key strength of 256.
Notice that salt and passphrase will be scratched for security reasons.
Cryptor(byte[], char[], int, int) - Constructor for class org.tentackle.common.Cryptor
Creates a cryptor.
Notice that salt and passphrase will be scratched for security reasons.
Cryptor(String, String) - Constructor for class org.tentackle.common.Cryptor
Creates a cryptor with 1024 iterations and a key strength of 256.
This is just a convenience constructor.
Cryptor(SecretKey, Cipher) - Constructor for class org.tentackle.common.Cryptor
Creates a cryptor.
Notice that the given cipher serves as the template for the per-thread ciphers, i.e., its algorithm and provider are used to create them.

D

data - Variable in class org.tentackle.common.AbstractBinary
the byte array of the serialized object.
Date - Class in org.tentackle.common
Date with database semantics.
Date() - Constructor for class org.tentackle.common.Date
Creates the current date.
Date(long) - Constructor for class org.tentackle.common.Date
Constructs a Date object using the given milliseconds time value.
The time components are kept as is, but get lost when the date is serialized.
DATE - Static variable in class org.tentackle.common.Version
the build timestamp.
DateHelper - Class in org.tentackle.common
Some common methods for date- and time-related types based on Date.
DAY_MS - Static variable in class org.tentackle.common.Constants
a day in milliseconds.
daytime() - Static method in class org.tentackle.common.DateHelper
Gets the current time.
daytime(int, int, int) - Static method in class org.tentackle.common.DateHelper
Gets the current time with an offset.
decrypt(byte[]) - Method in class org.tentackle.common.Cryptor
Decrypts the data.
decrypt(byte[], int, int) - Method in class org.tentackle.common.Cryptor
Decrypts the data.
decrypt64(String) - Method in class org.tentackle.common.Cryptor
Decrypts a base64 encoded string.
decrypt64ToBytes(String) - Method in class org.tentackle.common.Cryptor
Decrypts a base64 encoded string.
decrypt64ToChars(String) - Method in class org.tentackle.common.Cryptor
Decrypts a base64 encoded string.
The method clears all traces in memory.
decryptToChars(byte[]) - Method in class org.tentackle.common.Cryptor
Decrypts encrypted data to chars.
DEFAULT_LAYERS_FILE - Static variable in class org.tentackle.common.LayerBootstrap
Default location of the layers configuration file, relative to the current working directory.
DEFAULT_METHODNAME - Static variable in annotation interface org.tentackle.common.RemoteMethod
Placeholder denoting the actual method name.
This is the default for RemoteMethod.value().
DEFAULT_SERVICE_PATH - Static variable in class org.tentackle.common.Constants
the directory for default service provider configurations.
DefaultBundleFactory - Class in org.tentackle.common
Default implementation of a bundle factory.
DefaultBundleFactory() - Constructor for class org.tentackle.common.DefaultBundleFactory
Creates the bundle factory.
DefaultObjectSerializer - Class in org.tentackle.common
Default implementation of an ObjectSerializer based on Java Object Serialization.
DefaultObjectSerializer() - Constructor for class org.tentackle.common.DefaultObjectSerializer
Creates the Java Object Serialization based serializer.
DefaultServiceFinder - Class in org.tentackle.common
Default implementation of a ServiceFinder.
DefaultServiceFinder() - Constructor for class org.tentackle.common.DefaultServiceFinder
Creates a default service finder.
The classloader used is Thread.currentThread().getContextClassLoader().
The service path is "META-INF/services/".
DefaultServiceFinder(ClassLoader, String) - Constructor for class org.tentackle.common.DefaultServiceFinder
Creates a service finder.
DefaultServiceFinder(ModuleLayer, String) - Constructor for class org.tentackle.common.DefaultServiceFinder
Creates a service finder looking up services within a module layer.
The layer must have been built with exactly one classloader for all its modules (see ModuleLayerBuilder), since that single loader is what DefaultServiceFinder.getClassLoader() returns and what resource lookups are performed against.
DefaultServiceFinder(String) - Constructor for class org.tentackle.common.DefaultServiceFinder
Creates a default service finder.
The classloader used is Thread.currentThread().getContextClassLoader().
DefaultStringNormalizer - Class in org.tentackle.common
The default normalizer (works sufficiently for most Western languages).
DefaultStringNormalizer() - Constructor for class org.tentackle.common.DefaultStringNormalizer
Creates a normalizer.
With a comma as the field separator and space as word separator.
DefaultStringNormalizer(char, char) - Constructor for class org.tentackle.common.DefaultStringNormalizer
Creates a normalizer.
derive4DigitYearFrom2DigitYear(int) - Static method in class org.tentackle.common.DateHelper
Derives a 4-digit year from a 2-digit year referring to the current year and using a year window of 50.
derive4DigitYearFrom2DigitYear(int, int, int) - Static method in class org.tentackle.common.DateHelper
Derives a 4-digit year from a 2-digit year.
deriveMonthFromDay(int) - Static method in class org.tentackle.common.DateHelper
Derives the month from a day referring to the current date and a day window of 15.
deriveMonthFromDay(int, int, int, int) - Static method in class org.tentackle.common.DateHelper
Derives the month from a day.
deriveURL(String, String...) - Method in class org.tentackle.common.Cryptor
Derives the unencrypted URL.
The URL is considered to be encrypted if started with a fake protocol unsupported by the application in the given context.
deriveYearFromMonth(int) - Static method in class org.tentackle.common.DateHelper
Derives the year from a month referring to the current date and a monthWindow of 6.
deriveYearFromMonth(int, int, int, int) - Static method in class org.tentackle.common.DateHelper
Derives the year from a month.
Works like DateHelper.deriveMonthFromDay(int, int, int, int), but for months and years.
deserialize(InputStream) - Method in class org.tentackle.common.DefaultObjectSerializer
 
deserialize(InputStream) - Method in interface org.tentackle.common.ObjectSerializer
Deserializes an object from an input stream.
The stream is closed afterward.
DIGITS - Static variable in class org.tentackle.common.Constants
All digits in a string.
digitToString(Character) - Static method in class org.tentackle.common.StringHelper
Gets the word-string for a digit.
Example:
directories() - Method in record class org.tentackle.common.LayerSpec
Returns the value of the directories record component.
divide(double) - Method in class org.tentackle.common.BMoney
Divides this BMoney by a double and returns a new object.
This object remains unchanged.
divide(double) - Method in class org.tentackle.common.DMoney
 
divide(BMoney) - Method in class org.tentackle.common.BMoney
Divides this value by the given money value.
This object remains unchanged.
DMoney - Class in org.tentackle.common
A DMoney is the same as a BMoney but will be treated differently when stored in the database.
A BMoney is stored as a DOUBLE for the value and an INTEGER for the scale.
DMoney() - Constructor for class org.tentackle.common.DMoney
Creates a zero DMoney with a scale according to the currency of the current locale.
DMoney(double, int) - Constructor for class org.tentackle.common.DMoney
Creates a DMoney value.
DMoney(int) - Constructor for class org.tentackle.common.DMoney
Creates a zero DMoney value.
DMoney(String, int) - Constructor for class org.tentackle.common.DMoney
Creates a DMoney value.
DMoney(BigDecimal) - Constructor for class org.tentackle.common.DMoney
Creates a DMoney from a BigDecimal.
DMoney(BigInteger, int) - Constructor for class org.tentackle.common.DMoney
Creates a DMoney value from a BigInteger.
The scale sets the decimal point within the given integer, i.e., the integer is the unscaled value.
DMoney(BMoney, int) - Constructor for class org.tentackle.common.DMoney
Creates a DMoney from a BMoney (useful to rescale).
DMONEY_DIGITS - Static variable in class org.tentackle.common.Constants
maximum number of significant digits for DMoney.
download(URL) - Static method in class org.tentackle.common.FileHelper
Downloads data from a URL into memory using a default buffer size.
download(URL, int) - Static method in class org.tentackle.common.FileHelper
Downloads data from a URL into memory.

E

encrypt(byte[]) - Method in class org.tentackle.common.Cryptor
Encrypts the data.
encrypt(byte[], int, int) - Method in class org.tentackle.common.Cryptor
Encrypts the data.
encrypt(char[]) - Method in class org.tentackle.common.Cryptor
Encrypts a char array.
The method clears all traces in memory, including the passed char array.
encrypt64(byte[]) - Method in class org.tentackle.common.Cryptor
Encrypts data to base64 encoding.
encrypt64(char[]) - Method in class org.tentackle.common.Cryptor
Encrypts a char array to base64 encoding.
The method clears all traces in memory, including the passed char array.
encrypt64(String) - Method in class org.tentackle.common.Cryptor
Encrypts a string to base64 encoding.
EncryptedProperties - Class in org.tentackle.common
Encrypted Properties.
If a value starts with a ~ (tilde), the remainder of the string is considered to be encrypted by the application-specific Cryptor.
EncryptedProperties() - Constructor for class org.tentackle.common.EncryptedProperties
Creates an empty property list.
EncryptedProperties(int) - Constructor for class org.tentackle.common.EncryptedProperties
Creates an empty property list with an initial size.
endsWithAnyOf(String, String...) - Static method in class org.tentackle.common.StringHelper
Same as String.endsWith(String), but for multiple suffixes.
equals(Object) - Method in class org.tentackle.common.AbstractBinary
 
equals(Object) - Method in class org.tentackle.common.I18NText
 
equals(Object) - Method in record class org.tentackle.common.LayerGraphSpec
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.tentackle.common.LayerSpec
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.tentackle.common.NumericVariable
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.tentackle.common.ServiceFinderKey
Indicates whether some other object is "equal to" this one.
equalsIgnoreCase(String, String) - Static method in class org.tentackle.common.StringHelper
escapedToString(char) - Static method in class org.tentackle.common.StringHelper
Converts an escape character to a parsable string.
The special escapes are:
evaluate() - Method in class org.tentackle.common.NumericEvaluator
Evaluates the expression.
evaluate(String, Function) - Static method in class org.tentackle.common.StringHelper
Evaluates a string replacing variables.
The semantics are very much the same as known from the Maven resources plugin, but with the extension of optional default values and that @ turns off nested variable processing.
ExceptionHelper - Class in org.tentackle.common
Helper methods dealing with exceptions.
ExceptionHelper.Handler<T> - Class in org.tentackle.common
Exception handler.
extractException(boolean, Throwable, Class...) - Static method in class org.tentackle.common.ExceptionHelper
Extracts any of the given exception types from an exception chain.
The chain is followed via Throwable.getCause().
extractException(Class, boolean, Throwable) - Static method in class org.tentackle.common.ExceptionHelper
Extracts the given exception type from an exception chain.
extractTemporaryException(boolean, Throwable) - Static method in class org.tentackle.common.ExceptionHelper
Extracts the first/last TentackleRuntimeException marked as temporary in the throwable chain.

F

FileHelper - Class in org.tentackle.common
Helper methods for file and resource handling.
fill(char[], char) - Static method in class org.tentackle.common.StringHelper
Null-safe char array filler.
fillLeft(String, int, char) - Static method in class org.tentackle.common.StringHelper
Fills up a string from the left with a filler character to match a given length.
If the string is already longer, nothing happens.
fillRight(String, int, char) - Static method in class org.tentackle.common.StringHelper
Fills up a string to the right with a filler character to match a given length.
If the string is already longer, nothing happens.
filterStackTrace(StackTraceElement[]) - Static method in class org.tentackle.common.ExceptionHelper
Filters a given stacktrace skipping noisy elements without relevant information for the developer.
The leading elements up to and including the first valuable element are always kept, so that the origin of the exception remains visible.
filterUpperCase(String) - Static method in class org.tentackle.common.StringHelper
Gets the uppercase letters only.
Useful to get the camel case letters of a string.
find(String) - Method in class org.tentackle.common.ToolFinder
Finds the file of a tool's executable.
findBundle(String, Locale) - Method in interface org.tentackle.common.BundleFactory
Finds a resource bundle using the specified base name and locale.
findBundle(String, Locale) - Method in class org.tentackle.common.DefaultBundleFactory
 
findBundle(String, Locale, ClassLoader) - Method in interface org.tentackle.common.BundleFactory
Finds a resource bundle using the specified base name, locale, and class loader.
Same as BundleFactory.findBundle(String, Locale), but uses the given classloader for bundles not registered for a named module.
findBundle(String, Locale, ClassLoader) - Method in class org.tentackle.common.DefaultBundleFactory
 
findFirstServiceConfiguration(String) - Method in class org.tentackle.common.DefaultServiceFinder
Finds the first service configuration by service name.
If similar configurations appear more than once, the first in module order is returned.
findFirstServiceConfiguration(String) - Method in interface org.tentackle.common.ServiceFinder
Finds the first service configuration by service name.
If similar configurations appear more than once, the first in module order is returned.
findFirstServiceProvider(Class) - Method in class org.tentackle.common.DefaultServiceFinder
Finds the first service provider by service class.
If similar configurations appear more than once, the first in module order is returned.
findFirstServiceProvider(Class) - Method in interface org.tentackle.common.ServiceFinder
Finds the first service provider by service class.
If similar configurations appear more than once, the first in module order is returned.
findServiceConfigurations(String) - Method in class org.tentackle.common.DefaultServiceFinder
Finds service configurations by service name.
Iterations over the returned map are ordered by discovery in module order.
findServiceConfigurations(String) - Method in interface org.tentackle.common.ServiceFinder
Finds service configurations by service name.
Iterations over the returned map are ordered by discovery in module order.
findServiceProviders(Class) - Method in class org.tentackle.common.DefaultServiceFinder
Finds the service providers by service class.
The providers are ordered by discovery in module order.
findServiceProviders(Class) - Method in interface org.tentackle.common.ServiceFinder
Finds the service providers by service class.
The providers are ordered by discovery in module order.
findServiceURLs(String) - Method in class org.tentackle.common.DefaultServiceFinder
Finds URLs of a service by name.
The URLs are sorted in module order.
findServiceURLs(String) - Method in interface org.tentackle.common.ServiceFinder
Finds URLs of a service by name.
The URLs are sorted in module order.
findUniqueServiceConfiguration(String) - Method in class org.tentackle.common.DefaultServiceFinder
Finds a unique service configuration by service name.
It is checked that the service is defined exactly once.
findUniqueServiceConfiguration(String) - Method in interface org.tentackle.common.ServiceFinder
Finds a unique service configuration by service name.
It is checked that the service is defined exactly once.
findUniqueServiceProvider(Class) - Method in class org.tentackle.common.DefaultServiceFinder
Finds the unique service provider by service class.
It is checked that the service is defined exactly once.
findUniqueServiceProvider(Class) - Method in interface org.tentackle.common.ServiceFinder
Finds the unique service provider by service class.
It is checked that the service is defined exactly once.
firstBefore(String, char) - Static method in class org.tentackle.common.StringHelper
Gets the part of a string before a given delimiter.
firstLine(String) - Static method in class org.tentackle.common.StringHelper
Gets the first line from a multi-line string.
Nice in tables.
firstToLower(String) - Static method in class org.tentackle.common.StringHelper
Converts the first character of string to lowercase.
firstToUpper(String) - Static method in class org.tentackle.common.StringHelper
Converts the first character of string to uppercase.
forLayer(ModuleLayer) - Static method in class org.tentackle.common.ModuleSorter
Gets (and caches) the module sorter for a given module layer.
The sorter is cached for the lifetime of the JVM and keeps the layer reachable.
Freezable - Interface in org.tentackle.common
A freezable object.
freeze() - Method in class org.tentackle.common.AbstractBinary
 
freeze() - Method in class org.tentackle.common.Date
 
freeze() - Method in interface org.tentackle.common.Freezable
Makes this object immutable.
freeze() - Method in class org.tentackle.common.Time
 
freeze() - Method in class org.tentackle.common.Timestamp
 
freeze(Freezable) - Static method in interface org.tentackle.common.Freezable
Freezes a value object null-safe.
Method provided to reduce generated code.
fromBindOption(String) - Static method in enum class org.tentackle.common.StripMode
Converts a mode string as defined in Constants to a StripMode.
fromTag(String) - Method in class org.tentackle.common.LocaleProvider
Converts a tag to a locale.
The locale is not checked to be supported.
frozen - Variable in class org.tentackle.common.AbstractBinary
true if the binary cannot be modified anymore.

G

get() - Method in class org.tentackle.common.I18NText
Gets the translation for the current locale.
get(Locale) - Method in class org.tentackle.common.I18NText
Gets the translation for the given locale.
If there is no translation for the locale, the translation of the default locale, or if there is none, of the fallback locale is returned.
getArchitecture() - Static method in class org.tentackle.common.StringHelper
Gets the name of the architecture from the system properties.
getBindOption() - Method in enum class org.tentackle.common.StripMode
Gets the bind option name.
getBundle() - Static method in class org.tentackle.common.CommonCommonBundle
Gets the bundle for the current locale.
getBundle(String) - Static method in interface org.tentackle.common.BundleFactory
Gets a resource bundle using the specified base name and the default locale.
Replacement for ResourceBundle.getBundle(java.lang.String).
getBundle(String, Locale) - Static method in interface org.tentackle.common.BundleFactory
Gets a resource bundle using the specified base name and locale.
Replacement for ResourceBundle.getBundle(java.lang.String, java.util.Locale).
getBundle(String, Locale, ClassLoader) - Static method in interface org.tentackle.common.BundleFactory
Gets a resource bundle using the specified base name, locale, and class loader.
Replacement for ResourceBundle.getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader).
getBundle(BundleSupport, Locale) - Method in class org.tentackle.common.DefaultBundleFactory
Gets the bundle from the corresponding module according to the bundle support.
getBundleName() - Method in class org.tentackle.common.BundleSupport
Gets the bundle name.
This is the name of the annotated class.
getBundles(ClassLoader) - Static method in class org.tentackle.common.BundleSupport
Finds all bundle services.
getCipher() - Method in class org.tentackle.common.Cryptor
Creates a cipher instance.
The default implementation returns an AES cipher.
getClassLoader() - Method in interface org.tentackle.common.BundleFactory
Gets the classloader to load the bundles.
getClassLoader() - Method in class org.tentackle.common.DefaultBundleFactory
 
getClassLoader() - Method in class org.tentackle.common.DefaultServiceFinder
Gets the classloader used by this finder.
getClassLoader() - Method in class org.tentackle.common.ServiceFactory
Gets the default classloader.
The classloader to use is determined as follows: use the fixed classloader set by ServiceFactory.setFixedClassLoader(java.lang.ClassLoader), if not null else try Thread.currentThread().getContextClassLoader() if the context classloader is null, use the classloader that loaded the service factory
getClassLoader() - Method in interface org.tentackle.common.ServiceFinder
Gets the default classloader used by this finder.
getClassLoader(String) - Method in class org.tentackle.common.DefaultServiceFinder
Gets the classloader for the given service name.
getClassLoader(String, String) - Static method in class org.tentackle.common.ServiceFactory
Gets the classloader for a given service path and name.
If an explicit classloader is set, the last defined classloader for the given path and name is returned.
getClassLoaderImpl(String, String) - Method in class org.tentackle.common.ServiceFactory
Gets the classloader for a given service path and name.
If an explicit classloader is set, the last defined classloader for the given path and name is returned.
getClassName() - Method in class org.tentackle.common.BundleSupport
Gets the key name the bundle is registered for.
This is the same as the bundle name, unless the bundle was registered under an additional key name (see Bundle.value()).
getContinuedLine(String) - Static method in class org.tentackle.common.StringHelper
Checks whether the given string introduces a continuation line.
getControl(String) - Method in interface org.tentackle.common.BundleFactory
Gets the control to load the bundle.
The control is determined by the first provider returning a non-null control for the given basename.
getControl(String) - Method in class org.tentackle.common.DefaultBundleFactory
Gets the control to load the bundle.
The control is determined by the first provider returning a non-null control for the given basename.
getCurrency() - Method in class org.tentackle.common.LocaleProvider
Gets the currency for the current locale.
The currencies are cached per locale.
getCurrency(Locale) - Method in class org.tentackle.common.LocaleProvider
Derives the currency from the given locale.
If the locale does not specify a country, the country is derived from the system property "user.country".
getCurrentDay() - Static method in class org.tentackle.common.DateHelper
Gets the current day.
getCurrentLocale() - Method in class org.tentackle.common.LocaleProvider
Gets the locale used by the current thread.
getCurrentMonth() - Static method in class org.tentackle.common.DateHelper
Gets the current month.
getCurrentYear() - Static method in class org.tentackle.common.DateHelper
Gets the current year.
getData() - Method in class org.tentackle.common.AbstractBinary
Gets the internal byte array of this binary.
Only provided for serialization purposes.
getDefaultLocale() - Method in class org.tentackle.common.I18NText
Gets the current default locale.
getEffectiveInitialLocale() - Method in class org.tentackle.common.LocaleProvider
Gets the effective initial locale.
getEffectiveLocale() - Method in class org.tentackle.common.LocaleProvider
Gets the effective locale for the current locale.
getEffectiveLocale(Locale) - Method in class org.tentackle.common.LocaleProvider
Gets the effective locale.
This is application-specific and allows narrowing the locales to the effectively supported locales.
getEffectiveLocales() - Method in class org.tentackle.common.LocaleProvider
Returns an unmodifiable list of all supported effective locales.
The default is Locale.ENGLISH only.
getElements() - Method in interface org.tentackle.common.Path
Gets the elements describing the path.
getEncodingCharset() - Static method in class org.tentackle.common.Settings
Gets the encoding used to read and write files.
Usually set by the Maven plugins from "project.build.sourceEncoding".
getErrCode() - Method in class org.tentackle.common.ToolRunner
Gets the exit code of the tool.
getErrors() - Method in class org.tentackle.common.ToolRunner
Gets the standard error output.
getErrorsAsString() - Method in class org.tentackle.common.ToolRunner
Gets the standard error output as a single string.
The lines are separated by newlines.
getExplicitClassLoader(String, String) - Static method in class org.tentackle.common.ServiceFactory
Gets the explicit classloader for a given service path and name.
getExplicitClassLoaderImpl(String, String) - Method in class org.tentackle.common.ServiceFactory
Gets the explicit classloader for a given service path and name.
getFactoryClassloader() - Static method in class org.tentackle.common.ServiceFactory
Gets the classloader to load the service factory.
getFactoryClassname() - Static method in class org.tentackle.common.ServiceFactory
Gets the classname of the service factory.
getFallbackLocale() - Method in class org.tentackle.common.LocaleProvider
Returns the fallback locale.
If there is no translation provided for a given locale, the resource bundles eventually fall back to the "no-locale" translation.
In most cases this corresponds to the "en"-locale (Locale.ENGLISH), but applications can change this by overriding this method.
getFinderMap() - Method in class org.tentackle.common.ServiceFactory
Gets the finder map.
Allows applications to modify or add finders programmatically.
The map is thread-safe.
getFixedClassLoader() - Method in class org.tentackle.common.ServiceFactory
Gets the fixed classloader.
getHook() - Method in class org.tentackle.common.ModuleInfo
Gets the module hook.
getInitialLocale() - Method in class org.tentackle.common.LocaleProvider
Gets the initial locale.
This is the JVM's default locale at the time the provider was created, usually when it is used for the first time.
getInputStream() - Method in class org.tentackle.common.AbstractBinary
Gets the stream to store the binary in the database.
The stream provides the AbstractBinary.getLength() valid bytes.
getInstance() - Static method in interface org.tentackle.common.BundleFactory
The singleton.
getInstance() - Static method in class org.tentackle.common.Cryptor
Gets the optional application-specific cryptor singleton.
getInstance() - Static method in class org.tentackle.common.LocaleProvider
The singleton.
getInstance() - Static method in class org.tentackle.common.NamingRules
The naming rules singleton.
getInstance() - Static method in interface org.tentackle.common.ObjectSerializer
The singleton.
getInstance() - Static method in class org.tentackle.common.ServiceFactory
Gets the singleton.
getInstance() - Static method in interface org.tentackle.common.StringNormalizer
The singleton.
getInstanceSafely() - Static method in class org.tentackle.common.Cryptor
Gets the application-specific cryptor singleton.
getKeyIgnoreCase(String) - Method in class org.tentackle.common.EncryptedProperties
Gets the case-sensitive key.
Throws TentackleRuntimeException, if duplicate case-mapped keys are found when the case map is built on first invocation.
getKeyPrefix() - Method in class org.tentackle.common.EncryptedProperties
Gets the key prefix.
getLayer(String) - Static method in class org.tentackle.common.LayerBootstrap
Gets a layer built by this bootstrap, by name.
This is how application code reaches a layer other than its own leaf layer — e.g., one pinning a specific version of a dependency — typically to then resolve a service from it via ServiceFactory.getServiceFinder(ModuleLayer, String).
getLayers() - Static method in class org.tentackle.common.LayerBootstrap
Gets all layers built by this bootstrap, keyed by name.
getLength() - Method in class org.tentackle.common.AbstractBinary
Gets the length in bytes of this binary.
This is either the number of bytes read from the stream (if created from an InputStream) or the length of the serialized object (if created from an object or AbstractBinary.setObject(T) was invoked).
getLocale() - Method in class org.tentackle.common.LocaleProvider
Gets the locale.
getMaxLogCollectionSize() - Static method in class org.tentackle.common.StringHelper
Gets the size limit of collections to be logged.
getMessage(Throwable) - Static method in class org.tentackle.common.ExceptionHelper
Determines the message of the first exception in the chain with a non-blank message.
getModule() - Method in class org.tentackle.common.ModuleInfo
Gets the module.
getModuleInfo() - Method in class org.tentackle.common.BundleSupport
Gets the module info.
getModuleInfo(String) - Method in class org.tentackle.common.ModuleSorter
Gets the module info for a module name.
getModuleInfo(URL) - Method in class org.tentackle.common.ModuleSorter
Gets the module info for a given URL.
getModuleInfos() - Method in class org.tentackle.common.ModuleSorter
Gets the module infos ordered by dependency.
Modules at the top of the dependency hierarchy come last, modules without further dependencies come first.
getModuleLayer() - Method in class org.tentackle.common.DefaultServiceFinder
Gets the module layer this finder looks up services in, if any.
A non-null layer means ServiceFinder.getClassLoader() is the layer's own classloader (see ModuleLayerBuilder), and module ordering for this finder's service lookups is based on that layer's own module graph rather than the one visible from the context classloader.
getModuleLayer() - Method in interface org.tentackle.common.ServiceFinder
Gets the module layer this finder looks up services in, if any.
A non-null layer means ServiceFinder.getClassLoader() is the layer's own classloader (see ModuleLayerBuilder), and module ordering for this finder's service lookups is based on that layer's own module graph rather than the one visible from the context classloader.
getName() - Method in class org.tentackle.common.EncryptedProperties
Gets the optional name of the properties.
getObject() - Method in class org.tentackle.common.AbstractBinary
Retrieves the object encapsulated by the binary.
The object is deserialized on first invocation and cached afterward.
getObject() - Method in class org.tentackle.common.Binary
Retrieves the object encapsulated by the Binary.
The object is deserialized on first invocation and cached afterward.
getObject() - Method in class org.tentackle.common.TBinary
Retrieves the object encapsulated by the TBinary.
The object is deserialized on first invocation and cached afterward.
getOperationDomainImplementation(String) - Method in class org.tentackle.common.NamingRules
Gets the simple class name of the domain implementation of an operation.
getOperationDomainInterface(String) - Method in class org.tentackle.common.NamingRules
Gets the simple class name of the domain interface of an operation.
getOperationFromDomainImplementation(String) - Method in class org.tentackle.common.NamingRules
Gets the operation name from the name of a domain implementation.
getOperationFromDomainInterface(String) - Method in class org.tentackle.common.NamingRules
Gets the operation name from the name of a domain interface.
getOperationFromPersistenceImplementation(String) - Method in class org.tentackle.common.NamingRules
Gets the operation name from the name of a persistence implementation.
getOperationFromPersistenceInterface(String) - Method in class org.tentackle.common.NamingRules
Gets the operation name from the name of a persistence interface.
getOperationFromRemoteImplementation(String) - Method in class org.tentackle.common.NamingRules
Gets the operation name from the name of a remote implementation.
getOperationFromRemoteInterface(String) - Method in class org.tentackle.common.NamingRules
Gets the operation name from the name of a remote interface.
getOperationPersistenceImplementation(String) - Method in class org.tentackle.common.NamingRules
Gets the simple class name of the persistence implementation of an operation.
getOperationPersistenceInterface(String) - Method in class org.tentackle.common.NamingRules
Gets the simple class name of the persistence interface of an operation.
getOperationRemoteImplementation(String) - Method in class org.tentackle.common.NamingRules
Gets the simple class name of the remote implementation of an operation.
getOperationRemoteImplementationPackageName(String) - Method in class org.tentackle.common.NamingRules
Gets the package name of the remote implementation of an operation.
getOperationRemoteInterface(String) - Method in class org.tentackle.common.NamingRules
Gets the simple class name of the remote interface of an operation.
getOperationRemoteInterfacePackageName(String) - Method in class org.tentackle.common.NamingRules
Gets the package name of the remote interface of an operation.
getOrdinal() - Method in class org.tentackle.common.ModuleInfo
Gets the module ordinal.
Higher values come first in module order.
getOutput() - Method in class org.tentackle.common.ToolRunner
Gets the standard output.
getOutputAsString() - Method in class org.tentackle.common.ToolRunner
Gets the standard output as a single string.
The lines are separated by newlines.
getParameter(String) - Method in class org.tentackle.common.ParameterString
Gets the value of a parameter.
getParameterNames() - Method in class org.tentackle.common.ParameterString
Gets the parameter names.
getPaths() - Method in interface org.tentackle.common.Path
Gets the sub paths starting at end of this path.
getPdoDomainImplementation(String) - Method in class org.tentackle.common.NamingRules
Gets the simple class name of the domain implementation of a PDO.
getPdoDomainInterface(String) - Method in class org.tentackle.common.NamingRules
Gets the simple class name of the domain interface of a PDO.
getPdoFromDomainImplementation(String) - Method in class org.tentackle.common.NamingRules
Gets the PDO name from the name of a domain implementation.
getPdoFromDomainInterface(String) - Method in class org.tentackle.common.NamingRules
Gets the PDO name from the name of a domain interface.
getPdoFromPersistenceImplementation(String) - Method in class org.tentackle.common.NamingRules
Gets the PDO name from the name of a persistence implementation.
getPdoFromPersistenceInterface(String) - Method in class org.tentackle.common.NamingRules
Gets the PDO name from the name of a persistence interface.
getPdoFromRemoteImplementation(String) - Method in class org.tentackle.common.NamingRules
Gets the PDO name from the name of a remote implementation.
getPdoFromRemoteInterface(String) - Method in class org.tentackle.common.NamingRules
Gets the PDO name from the name of a remote interface.
getPdoPersistenceImplementation(String) - Method in class org.tentackle.common.NamingRules
Gets the simple class name of the persistence implementation of a PDO.
getPdoPersistenceInterface(String) - Method in class org.tentackle.common.NamingRules
Gets the simple class name of the persistence interface of a PDO.
getPdoRemoteImplementation(String) - Method in class org.tentackle.common.NamingRules
Gets the simple class name of the remote implementation of a PDO.
getPdoRemoteImplementationPackageName(String) - Method in class org.tentackle.common.NamingRules
Gets the package name of the remote implementation of a PDO.
getPdoRemoteInterface(String) - Method in class org.tentackle.common.NamingRules
Gets the simple class name of the remote interface of a PDO.
getPdoRemoteInterfacePackageName(String) - Method in class org.tentackle.common.NamingRules
Gets the package name of the remote interface of a PDO.
getPlainClassName(String) - Static method in class org.tentackle.common.StringHelper
Gets a classname without any optional generics.
getPlatform() - Static method in class org.tentackle.common.StringHelper
Gets the name of the operating system from the system properties.
The name is lowercase and contains only letters.
getProperty(String) - Method in class org.tentackle.common.EncryptedProperties
Searches for the property with the specified key in this property list.
If the key is not found in this property list, the default property list, and its defaults, recursively, are then checked.
getPropertyAsChars(String) - Method in class org.tentackle.common.EncryptedProperties
Gets the property as a character array.
Same as EncryptedProperties.getProperty(String), but returns an array.
getPropertyAsChars(String, char[]) - Method in class org.tentackle.common.EncryptedProperties
Gets the property as a character array with a default value.
getPropertyBlunt(String) - Method in class org.tentackle.common.EncryptedProperties
Gets the original value of the property.
If the value is encrypted, the encrypted value will be returned.
getPropertyIgnoreCase(String) - Method in class org.tentackle.common.EncryptedProperties
Searches for the property with the specified key case insensitively.
Throws TentackleRuntimeException, if duplicate case-mapped keys found.
getProviders() - Method in interface org.tentackle.common.BundleFactory
Gets the control providers.
The returned list can be modified to add a provider explicitly, but only if at least one provider has been found.
getProviders() - Method in class org.tentackle.common.DefaultBundleFactory
 
getRequiredModuleNames() - Method in class org.tentackle.common.ModuleInfo
Gets the names of the required modules.
Modules required static are not included.
getSecretKeyFactory() - Method in class org.tentackle.common.Cryptor
Gets the key factory.
The default implementation returns an instance of PBKDF2WithHmacSHA1.
getServiceFinder() - Static method in class org.tentackle.common.ServiceFactory
Gets a service finder for the service path "META-INF/services/".
If the finder does not exist yet, it will be created.
getServiceFinder(ClassLoader, String) - Static method in class org.tentackle.common.ServiceFactory
Gets a service finder for a given classloader and service path.
If the finder does not exist yet, it will be created.
getServiceFinder(ModuleLayer, String) - Static method in class org.tentackle.common.ServiceFactory
Gets a service finder looking up services within a module layer.
If the finder does not exist yet, it will be created.
getServiceFinder(String) - Static method in class org.tentackle.common.ServiceFactory
Gets a service finder for a given service path.
If the finder does not exist yet, it will be created.
getServiceFinderClass() - Method in class org.tentackle.common.ServiceFactory
Gets the class of the service finder.
getServiceFinderImpl() - Method in class org.tentackle.common.ServiceFactory
Gets a service finder for the service path "META-INF/services/".
If the finder does not exist yet, it will be created.
getServiceFinderImpl(ClassLoader, String) - Method in class org.tentackle.common.ServiceFactory
Gets a service finder for a given classloader and service path.
If the finder does not exist yet, it will be created.
getServiceFinderImpl(ModuleLayer, String) - Method in class org.tentackle.common.ServiceFactory
Gets a service finder looking up services within a module layer.
If the finder does not exist yet, it will be created.
getServiceFinderImpl(String) - Method in class org.tentackle.common.ServiceFactory
Gets a service finder for a given service path.
If the finder does not exist yet, it will be created.
getServicePath() - Method in class org.tentackle.common.DefaultServiceFinder
Gets the finder's service path it is responsible for.
The path is normalized: it never starts with a slash and always ends with one, for example "META-INF/services/".
getServicePath() - Method in interface org.tentackle.common.ServiceFinder
Gets the finder's service path it is responsible for.
The path is normalized: it never starts with a slash and always ends with one, for example "META-INF/services/".
getStackTraceAsString(Throwable) - Static method in class org.tentackle.common.ExceptionHelper
Returns the stacktrace of a given exception as a string.
getString(String) - Static method in class org.tentackle.common.CommonCommonBundle
Gets a string for the given key.
getTranslations() - Method in class org.tentackle.common.I18NText
Gets the mapping between locales and translations.
Notice that the returned map does not preserve the insertion order.
getType() - Method in class org.tentackle.common.NumericEvaluator
Gets the datatype of the result.
getUrlPath() - Method in class org.tentackle.common.ModuleInfo
Gets the URL path of the hook's module.

H

handle(T) - Method in class org.tentackle.common.ExceptionHelper.Handler
Handles the exception.
handleException(boolean, Throwable, ExceptionHelper.Handler...) - Static method in class org.tentackle.common.ExceptionHelper
Handles an exception from an exception chain.
Finds the first or last exception in the chain that any of the handlers applies to and invokes that handler.
Handler(Class, Consumer) - Constructor for class org.tentackle.common.ExceptionHelper.Handler
Creates an exception handler.
hash - Variable in class org.tentackle.common.AbstractBinary
the lazy hash code.
hash(String, char[], char[]) - Static method in class org.tentackle.common.StringHelper
Builds a hash from an array of chars.
Note that this method converts the characters to bytes via StringHelper.toBytes(char[]) before applying the hash.
hashCode() - Method in class org.tentackle.common.AbstractBinary
 
hashCode() - Method in class org.tentackle.common.I18NText
 
hashCode() - Method in record class org.tentackle.common.LayerGraphSpec
Returns a hash code value for this object.
hashCode() - Method in record class org.tentackle.common.LayerSpec
Returns a hash code value for this object.
hashCode() - Method in record class org.tentackle.common.NumericVariable
Returns a hash code value for this object.
hashCode() - Method in record class org.tentackle.common.ServiceFinderKey
Returns a hash code value for this object.
HOUR_MS - Static variable in class org.tentackle.common.Constants
an hour in milliseconds.

I

I18NText - Class in org.tentackle.common
Multilingual text.
This is an immutable and serializable object which is supported as a regular datatype via org.tentackle.sql.datatypes.I18NTextType.
I18NText() - Constructor for class org.tentackle.common.I18NText
Creates a vacant I18NText.
I18NText(String) - Constructor for class org.tentackle.common.I18NText
Creates an I18NText from a string in the current locale.
I18NText(LinkedHashMap, Locale) - Constructor for class org.tentackle.common.I18NText
Protected constructor for internal use only.
I18NText(Locale, String) - Constructor for class org.tentackle.common.I18NText
Creates an I18NText from a string for the given locale.
I18NText(ParameterString) - Constructor for class org.tentackle.common.I18NText
Creates an I18NText from a parameter string.
Translations for unsupported locales are silently ignored.
indexAnyOf(String, String) - Static method in class org.tentackle.common.StringHelper
Returns the first index of the given characters.
INSTANCE - Static variable in class org.tentackle.common.ModuleSorter
The singleton for the module hierarchy visible from the context classloader.
It is created lazily on first use and finds the ModuleHooks via ServiceLoader.load(Class), i.e., via the thread's context classloader at that time.
InterruptedRuntimeException - Exception Class in org.tentackle.common
Runtime exception to signal that the current thread was interrupted.
Usually wraps a checked InterruptedException, but any cause is accepted.
InterruptedRuntimeException() - Constructor for exception class org.tentackle.common.InterruptedRuntimeException
Constructs a new interrupted runtime exception with null as its detail message and sets the interrupted flag.
InterruptedRuntimeException(String, Throwable) - Constructor for exception class org.tentackle.common.InterruptedRuntimeException
Constructs a new interrupted runtime exception with the specified detail message and cause.
InterruptedRuntimeException(String, Throwable, boolean, boolean) - Constructor for exception class org.tentackle.common.InterruptedRuntimeException
Constructs a new interrupted runtime exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.
InterruptedRuntimeException(Throwable) - Constructor for exception class org.tentackle.common.InterruptedRuntimeException
Constructs a new interrupted runtime exception with the specified cause.
invert() - Method in class org.tentackle.common.BMoney
Inverts this money value.
invert() - Method in class org.tentackle.common.DMoney
 
isAllDigits(String) - Static method in class org.tentackle.common.StringHelper
Checks if a string contains only digits, i.e., no non-number char in string, even no whitespace.
isAllDigits(String, boolean) - Static method in class org.tentackle.common.StringHelper
Checks if a string contains only digits or whitespaces, i.e., no illegal char in a number string.
isAllWhitespace(String) - Static method in class org.tentackle.common.StringHelper
Checks if the string contains only whitespaces.
isClassValuableForStackTrace(String) - Static method in class org.tentackle.common.ExceptionHelper
Checks if the class provides valuable information within a stacktrace.
Classes of the JDK and Tentackle's invocation handlers and interceptors are considered noise.
isEmpty() - Method in class org.tentackle.common.AbstractBinary
Returns whether this binary is empty.
A binary is empty if it holds no object, i.e. its length is 0.
isEmpty() - Method in class org.tentackle.common.I18NText
 
isFQCN(String) - Static method in class org.tentackle.common.StringHelper
Checks whether the given string is a fully qualified classname (FQCN).
The class must belong to a package!
isFrozen() - Method in class org.tentackle.common.AbstractBinary
 
isFrozen() - Method in class org.tentackle.common.Date
 
isFrozen() - Method in interface org.tentackle.common.Freezable
Returns whether this object is frozen.
isFrozen() - Method in class org.tentackle.common.Time
 
isFrozen() - Method in class org.tentackle.common.Timestamp
 
isLocaleSupported(Locale) - Method in class org.tentackle.common.LocaleProvider
Returns whether the given locale is supported.
The default implementation checks whether the locale is exactly one of the LocaleProvider.getEffectiveLocales().
isModular() - Method in class org.tentackle.common.ModuleSorter
Returns whether the application is running in modular mode.
This is the case if at least one named module provides a ModuleHook.
isNegative() - Method in class org.tentackle.common.BMoney
Checks if this money value is negative.
isPositive() - Method in class org.tentackle.common.BMoney
Checks if this money value is positive.
isReservedWord(String) - Static method in class org.tentackle.common.StringHelper
Returns whether the given string is a reserved Java keyword or literal.
Contextual keywords, such as record or var, are not considered reserved.
isStripLeft() - Method in enum class org.tentackle.common.StripMode
Returns true if the mode strips the left side.
isStripRight() - Method in enum class org.tentackle.common.StripMode
Returns true if the mode strips the right side.
isTemporary() - Method in exception class org.tentackle.common.TentackleRuntimeException
Returns whether the cause is temporary and may disappear after some time.
isUTC() - Method in class org.tentackle.common.Timestamp
Gets the UTC flag.
isVacant() - Method in class org.tentackle.common.I18NText
Returns whether there are no translations at all.
isValidJavaClassName(String) - Static method in class org.tentackle.common.StringHelper
Checks that the given string is a valid Java classname.
Both classnames with or without a package prefix are validated.
isValidJavaIdentifier(String) - Static method in class org.tentackle.common.StringHelper
Returns whether the given string is a valid Java identifier.
Reserved words are not checked (see StringHelper.isReservedWord(String)).
isValidJavaPackageName(String) - Static method in class org.tentackle.common.StringHelper
Checks that the given string is a valid Java package name.
This is a very restrictive verification: the package name consists of one or more dot-separated segments.
isZero() - Method in class org.tentackle.common.BMoney
Checks if this money value is zero.

L

lastAfter(String, char) - Static method in class org.tentackle.common.StringHelper
Gets the part of a string after a given delimiter.
layer() - Method in record class org.tentackle.common.ServiceFinderKey
Returns the value of the layer record component.
LayerBootstrap - Class in org.tentackle.common
Launcher building a ModuleLayer graph and handing off to the real application.
LayerGraphSpec - Record Class in org.tentackle.common
The declarative description of a whole ModuleLayer graph, as built by ModuleLayerBuilder and consumed by LayerBootstrap.
LayerGraphSpec(List, String, String, String) - Constructor for record class org.tentackle.common.LayerGraphSpec
Creates a layer graph spec.
layers() - Method in record class org.tentackle.common.LayerGraphSpec
Returns the value of the layers record component.
LAYERS_BASEDIR_PROPERTY - Static variable in class org.tentackle.common.LayerBootstrap
System property naming the base directory relative layer directories are resolved against.
Defaults to the current working directory.
LAYERS_PROPERTY - Static variable in class org.tentackle.common.LayerBootstrap
System property naming the layers configuration file.
Resolved relative to the current working directory if not absolute.
LayerSpec - Record Class in org.tentackle.common
The declarative description of one named ModuleLayer.
LayerSpec(String, List, List) - Constructor for record class org.tentackle.common.LayerSpec
Creates a layer spec.
leafLayerName() - Method in record class org.tentackle.common.LayerGraphSpec
Returns the value of the leafLayerName record component.
leafMainClass() - Method in record class org.tentackle.common.LayerGraphSpec
Returns the value of the leafMainClass record component.
leafMainModule() - Method in record class org.tentackle.common.LayerGraphSpec
Returns the value of the leafMainModule record component.
LEFT - Enum constant in enum class org.tentackle.common.StripMode
Remove leading filler characters.
length - Variable in class org.tentackle.common.AbstractBinary
the number of valid bytes in AbstractBinary.data.
length() - Method in class org.tentackle.common.I18NText
 
levenshteinDistance(String, String) - Static method in class org.tentackle.common.StringHelper
Determines the Levenshtein distance of two strings.
Notice that for s1 and s2 null values are treated as empty strings.
loadProperties(String) - Static method in class org.tentackle.common.FileHelper
Loads properties.
Tries to load from filesystem first, then from the class path (see FileHelper.loadProperties(String, boolean, Properties)).
loadProperties(String, boolean, Properties) - Static method in class org.tentackle.common.FileHelper
Loads properties from a file or resource.
If the name contains no dot, the extension .properties is appended.
loadTool(File, String) - Method in class org.tentackle.common.ToolFinder
Loads a tool by its name.
Tries OS-specific suffixes.
LocaleProvider - Class in org.tentackle.common
A provider for Locales.
Supports thread-local locales and mapping of locales according to the application requirements.
LocaleProvider() - Constructor for class org.tentackle.common.LocaleProvider
Creates a locale provider.
The current default locale becomes the initial locale.

M

main(String[]) - Static method in class org.tentackle.common.LayerBootstrap
Builds the configured module layer graph and invokes the real application's main method.
main(String[]) - Static method in class org.tentackle.common.Version
Prints the build version and license.
MAPPED_SERVICE_PATH - Static variable in class org.tentackle.common.Constants
the directory for mapped service provider configurations.
MappedService - Annotation Interface in org.tentackle.common
Annotation to mark an annotation to be processed by the MappedServiceAnalyzeHandler.
For each class annotated with the marked annotation, a line <annotated class> = <value> is appended to META-INF/mapped-services/<service class> (see Constants.MAPPED_SERVICE_PATH).
merge(List) - Method in interface org.tentackle.common.PathFactory
Merges paths to remove redundant path segments.
The returned consolidated paths form a hierarchical graph.
meta() - Element in annotation interface org.tentackle.common.Service
Determines whether the servicing class is the annotated class or the value of the annotated annotation.
Notice the difference between the serviced and servicing class!
meta() - Element in annotation interface org.tentackle.common.ServiceName
Determines whether the servicing class is the annotated class or the value of the annotated annotation.
Notice the difference between the serviced and servicing class!
META_INF - Static variable in class org.tentackle.common.Constants
META-INF directory name.
META_SERVICE_PATH - Static variable in class org.tentackle.common.Constants
the directory for meta service provider configurations.
method() - Element in annotation interface org.tentackle.common.MappedService
The name of the element of the marked annotation that provides the mapped value.
The default is "value".
method() - Element in annotation interface org.tentackle.common.Service
The name of the element that provides the value, if this annotation is used as a meta-annotation.
If Service.meta() is false, the element of the annotated annotation provides the serviced class (only if Service.value() is not given explicitly).
method() - Element in annotation interface org.tentackle.common.ServiceName
The name of the element that provides the value, if this annotation is used as a meta-annotation.
If ServiceName.meta() is false, the element of the annotated annotation provides the serviced name (only if ServiceName.value() is not given explicitly).
MIN_DATE - Static variable in class org.tentackle.common.DateHelper
Epochal date zero: 1.1.1970 00:00:00 GMT.
The instance is frozen, i.e., it cannot be modified.
MIN_TIMESTAMP - Static variable in class org.tentackle.common.DateHelper
Epochal timestamp zero: 1.1.1970 00:00:00.000 GMT.
The instance is frozen, i.e., it cannot be modified.
MINUTE_MS - Static variable in class org.tentackle.common.Constants
a minute in milliseconds.
ModuleHook - Interface in org.tentackle.common
Interface to determine the module hierarchy.
Provides a hook to access resources from within a module.
ModuleInfo - Class in org.tentackle.common
Holds information about a module.
ModuleInfo(ModuleHook) - Constructor for class org.tentackle.common.ModuleInfo
Creates a module info.
ModuleLayerBuilder - Class in org.tentackle.common
Builds a graph of ModuleLayers from a LayerGraphSpec.
ModuleOrdinal - Annotation Interface in org.tentackle.common
Annotation to override the module order for the ServiceFinder.
ModuleSorter - Class in org.tentackle.common
A dependency sorter for jigsaw modules.
ModuleSorter() - Constructor for class org.tentackle.common.ModuleSorter
Creates a module sorter and loads the module hierarchy visible from the context classloader.
ModuleSorter(ModuleLayer) - Constructor for class org.tentackle.common.ModuleSorter
Creates a module sorter and loads the module hierarchy of a given layer.
multiply(double) - Method in class org.tentackle.common.BMoney
Multiplies this BMoney by a double and returns a new object.
This object remains unchanged.
multiply(double) - Method in class org.tentackle.common.DMoney
 

N

name() - Method in record class org.tentackle.common.LayerSpec
Returns the value of the name record component.
name() - Method in record class org.tentackle.common.NumericVariable
Returns the value of the name record component.
NAME_NONE - Static variable in class org.tentackle.common.Constants
name for "none".
NAME_UNKNOWN - Static variable in class org.tentackle.common.Constants
unknown name.
NamingRules - Class in org.tentackle.common
Naming rules for classnames.
Used at runtime to determine the remote delegates, at build time by some wurblets, and by the wizard to generate PDO and operation sources.
Can be replaced via @Service(NamingRules.class) for application-specific rules.
NamingRules() - Constructor for class org.tentackle.common.NamingRules
Creates the naming rules.
narrowLocale(Locale) - Method in class org.tentackle.common.I18NText
Narrows the effective locale returned by the LocaleProvider further to language.
The LocaleProvider may allow wider locales for ResourceBundles, but for I18NText this would complicate things way too much.
In most applications, the LocaleProvider narrows to language anyway.
NoBundle - Annotation Interface in org.tentackle.common
Annotation to express that the annotated class looks like a bundle, but is not one.
NONE - Enum constant in enum class org.tentackle.common.StripMode
No stripping.
normalize(String) - Method in class org.tentackle.common.DefaultStringNormalizer
Normalizes a string (phonetically) for use as PDO.normText.
normalize(String) - Method in interface org.tentackle.common.StringNormalizer
Normalizes a string (phonetically) for use as PDO.normText.
normalizeBasename(String) - Method in class org.tentackle.common.DefaultBundleFactory
Normalizes the basename.
The name is usually a dotted classname or a slashed resource name without a leading slash.
normalizeLine(String) - Method in class org.tentackle.common.DefaultServiceFinder
Normalizes a line.
Trailing and leading spaces are ignored.
now() - Static method in class org.tentackle.common.DateHelper
Gets the current system time.
now(long) - Static method in class org.tentackle.common.DateHelper
Gets the current system time plus an optional offset.
NumericEvaluator<T> - Class in org.tentackle.common
A small arithmetic expression evaluator for numeric values.
NumericEvaluator() - Constructor for class org.tentackle.common.NumericEvaluator
Constructor to use it as a Function<String, String>.
Nice for PropertyDescriptors within the tentackle-maven-plugin.
NumericEvaluator(Class, String, NumericVariable...) - Constructor for class org.tentackle.common.NumericEvaluator
Creates an evaluator for the given datatype.
The expression is evaluated by NumericEvaluator.evaluate().
NumericEvaluator(String, NumericVariable...) - Constructor for class org.tentackle.common.NumericEvaluator
Creates an evaluator for the Integer datatype.
The expression is evaluated by NumericEvaluator.evaluate().
NumericVariable<T> - Record Class in org.tentackle.common
A named numeric variable passed to a NumericEvaluator.
NumericVariable(String, T) - Constructor for record class org.tentackle.common.NumericVariable
Creates a numeric variable.

O

object - Variable in class org.tentackle.common.AbstractBinary
the cached object.
objectArrayToString(Object[], String) - Static method in class org.tentackle.common.StringHelper
Creates a string from an object array.
ObjectSerializer - Interface in org.tentackle.common
Generic object serializer.
objectToLoggableString(Object) - Static method in class org.tentackle.common.StringHelper
Converts a value to a loggable string.
openStreamUncached(URL) - Static method in class org.tentackle.common.FileHelper
Opens an input stream for a URL without using the JVM-wide URL cache.
For jar: URLs, the JDK shares a cached JarFile among all classloaders.
org.tentackle.common - module org.tentackle.common
tentackle-common module.
org.tentackle.common - package org.tentackle.common
Common classes for build- and runtime.

P

ParameterString - Class in org.tentackle.common
A string of parameters.
ParameterString() - Constructor for class org.tentackle.common.ParameterString
Creates an empty parameter string.
ParameterString(String) - Constructor for class org.tentackle.common.ParameterString
Creates a parameter string from its string representation.
parentNames() - Method in record class org.tentackle.common.LayerSpec
Returns the value of the parentNames record component.
parse(String) - Method in class org.tentackle.common.ParameterString
Parses the external string representation.
Any parameters already held by this object are removed first.
parse(Properties, Path) - Static method in record class org.tentackle.common.LayerGraphSpec
Parses a layer graph specification from a properties file, resolving relative directories against a base directory.
parseString(String) - Static method in class org.tentackle.common.StringHelper
Parses a string.
The string may be enclosed in double- or single quotes which will be removed.
parseURL(URL, String, Map) - Method in class org.tentackle.common.DefaultServiceFinder
Parses a service URL.
The implementation assumes the provider configuration file in property-file format.
parseURLs(Collection, String, Map) - Method in class org.tentackle.common.DefaultServiceFinder
Parses a collection of URLs.
Path<P,E> - Interface in org.tentackle.common
Generic path to something.
PathFactory<P,E> - Interface in org.tentackle.common
A factory for Paths.
PROPS_EXTENSION - Static variable in class org.tentackle.common.Constants
extension for property files.

R

readTextFromResource(Class, String) - Static method in class org.tentackle.common.StringHelper
Reads a text file from a resource.
RecordDTO - Annotation Interface in org.tentackle.common
Annotation for records that must be analyzed for code generation.
RELEASE - Static variable in class org.tentackle.common.Version
the artifact version.
RemoteMethod - Annotation Interface in org.tentackle.common
Annotation for manually written methods that must be remoting-capable.
removeDirectory(String) - Static method in class org.tentackle.common.FileHelper
Removes a directory and all its contents recursively.
removeExplicitClassLoader(String, String, ClassLoader) - Static method in class org.tentackle.common.ServiceFactory
Removes an explicit classloader for a given service path and name.
Loaders are kept in a list for each path and name combination, the most recently added first.
removeExplicitClassLoaderImpl(String, String, ClassLoader) - Method in class org.tentackle.common.ServiceFactory
Removes an explicit classloader for a given service path and name.
Loaders are kept in a list for each path and name combination, the most recently added first.
removeTrailingText(String, String...) - Static method in class org.tentackle.common.StringHelper
Removes a trailing text from a string.
Stops when the first trailing string is found.
RIGHT - Enum constant in enum class org.tentackle.common.StripMode
Remove trailing filler characters.
run() - Method in class org.tentackle.common.ToolRunner
Runs the tool and waits for its termination.

S

SECOND_MS - Static variable in class org.tentackle.common.Constants
a second in milliseconds.
serialize(Object, OutputStream) - Method in class org.tentackle.common.DefaultObjectSerializer
 
serialize(Object, OutputStream) - Method in interface org.tentackle.common.ObjectSerializer
Serializes the given object to an output stream.
The stream is closed afterward.
Service - Annotation Interface in org.tentackle.common
Annotation to express that the annotated class is a service implementation.
ServiceFactory - Class in org.tentackle.common
Factory for services based on ServiceFinder.
ServiceFactory() - Constructor for class org.tentackle.common.ServiceFactory
Creates the factory.
ServiceFinder - Interface in org.tentackle.common
Finds service configurations.
ServiceFinderKey - Record Class in org.tentackle.common
Key to map service finders.
ServiceFinderKey(ClassLoader, ModuleLayer, String) - Constructor for record class org.tentackle.common.ServiceFinderKey
Creates a key.
ServiceFinderKey(ClassLoader, String) - Constructor for record class org.tentackle.common.ServiceFinderKey
Creates a key for a finder that is not bound to a module layer.
ServiceName - Annotation Interface in org.tentackle.common
Annotation to express that the annotated class is a service implementation.
Differs from @Service in that the service can be some arbitrary name.
servicePath() - Method in record class org.tentackle.common.ServiceFinderKey
Returns the value of the servicePath record component.
setClassLoader(ClassLoader) - Method in interface org.tentackle.common.BundleFactory
Sets the classloader to load the bundles.
If set, this classloader will be used for BundleFactory.getBundle(java.lang.String) and BundleFactory.getBundle(java.lang.String, java.util.Locale).
setClassLoader(ClassLoader) - Method in class org.tentackle.common.DefaultBundleFactory
 
setCurrentLocale(Locale) - Method in class org.tentackle.common.LocaleProvider
Sets the locale used by the current thread.
The locale is stored as ThreadLocal.
setDate(int) - Method in class org.tentackle.common.Date
Deprecated.
setDate(int) - Method in class org.tentackle.common.Time
Deprecated.
setDate(int) - Method in class org.tentackle.common.Timestamp
Deprecated.
setEncodingCharset(Charset) - Static method in class org.tentackle.common.Settings
Sets the encoding used to read and write files.
setEncryptedProperty(String, char[]) - Method in class org.tentackle.common.EncryptedProperties
Sets the property char array and stores it encrypted, if a Cryptor is available.
Without a Cryptor, the value is stored unencrypted.
setEncryptedProperty(String, String) - Method in class org.tentackle.common.EncryptedProperties
Sets the property string and stores it encrypted, if a Cryptor is available.
Without a Cryptor, the value is stored unencrypted.
setFactoryClassloader(ClassLoader) - Static method in class org.tentackle.common.ServiceFactory
Sets the classloader to load the service factory.
setFactoryClassname(String) - Static method in class org.tentackle.common.ServiceFactory
Sets the classname of the service factory.
setFixedClassLoader(ClassLoader) - Method in class org.tentackle.common.ServiceFactory
Sets the fixed classloader.
If set, it is used instead of the context classloader for all finders that are not created for an explicit classloader or module layer.
setHours(int) - Method in class org.tentackle.common.Date
Deprecated.
setHours(int) - Method in class org.tentackle.common.Time
Deprecated.
setHours(int) - Method in class org.tentackle.common.Timestamp
Deprecated.
setKeyPrefix(String) - Method in class org.tentackle.common.EncryptedProperties
Sets a key prefix.
The prefix is prepended to the key for EncryptedProperties.getProperty(String), EncryptedProperties.setProperty(String, String) and alike.
setMaxLogCollectionSize(int) - Static method in class org.tentackle.common.StringHelper
Sets the size limit of collections to be logged.
If an object is logged, and it is a collection and the size exceeds maxLogCollectionSize, only the number of items is logged in StringHelper.objectToLoggableString(Object) instead of each item.
setMidnight(Calendar) - Static method in class org.tentackle.common.DateHelper
Sets the given calendar to midnight.
setMinutes(int) - Method in class org.tentackle.common.Date
Deprecated.
setMinutes(int) - Method in class org.tentackle.common.Time
Deprecated.
setMinutes(int) - Method in class org.tentackle.common.Timestamp
Deprecated.
setMonth(int) - Method in class org.tentackle.common.Date
Deprecated.
setMonth(int) - Method in class org.tentackle.common.Time
Deprecated.
setMonth(int) - Method in class org.tentackle.common.Timestamp
Deprecated.
setName(String) - Method in class org.tentackle.common.EncryptedProperties
Sets the optional name of the properties.
The name can be used to express the source, for example the name of a properties file.
setNanos(int) - Method in class org.tentackle.common.Timestamp
setObject(T) - Method in class org.tentackle.common.AbstractBinary
Sets the object.
The object is serialized immediately.
setObject(T) - Method in class org.tentackle.common.Binary
Sets the object.
The object is serialized immediately.
setObject(T) - Method in class org.tentackle.common.TBinary
Sets the object.
The object is serialized immediately.
setOrdinal(int) - Method in class org.tentackle.common.ModuleInfo
Sets the ordinal.
Higher values come first in module order.
setParameter(String, String) - Method in class org.tentackle.common.ParameterString
Sets a parameter.
setProperty(String, String) - Method in class org.tentackle.common.EncryptedProperties
Sets a property.
The key prefix, if any, is prepended to the key.
setSeconds(int) - Method in class org.tentackle.common.Date
Deprecated.
setSeconds(int) - Method in class org.tentackle.common.Time
Deprecated.
setSeconds(int) - Method in class org.tentackle.common.Timestamp
Deprecated.
setTemporary(boolean) - Method in exception class org.tentackle.common.TentackleRuntimeException
Sets the temporary flag.
The cause for a temporary exception may disappear after some time.
setTime(long) - Method in class org.tentackle.common.Date
setTime(long) - Method in class org.tentackle.common.Time
setTime(long) - Method in class org.tentackle.common.Timestamp
Settings - Class in org.tentackle.common
Global settings.
setUTC(boolean) - Method in class org.tentackle.common.Timestamp
Sets the UTC flag.
setUTC(Timestamp, boolean) - Static method in class org.tentackle.common.Timestamp
Sets the UTC flag null-safe.
Method provided to reduce generated code.
setYear(int) - Method in class org.tentackle.common.Date
Deprecated.
setYear(int) - Method in class org.tentackle.common.Time
Deprecated.
setYear(int) - Method in class org.tentackle.common.Timestamp
Deprecated.
smallestPositive() - Method in class org.tentackle.common.BMoney
Returns the smallest positive value.
Ex.: if the scale is 2 --> 0.01 will be returned.
smallestPositive() - Method in class org.tentackle.common.DMoney
 
sort(Enumeration, String) - Method in class org.tentackle.common.ModuleSorter
Sorts an enumeration of URLs according to the module hierarchy.
The highest module ordinal comes first.
split(String, String) - Static method in class org.tentackle.common.StringHelper
Splits a string keeping strings together.
The strings may be enclosed in double- or single quotes which will not be removed.
startsWithAnyOf(String, int, String...) - Static method in class org.tentackle.common.StringHelper
Same as String.startsWith(String, int), but for multiple prefixes.
startsWithAnyOf(String, String...) - Static method in class org.tentackle.common.StringHelper
Same as String.startsWith(String), but for multiple prefixes.
StringHelper - Class in org.tentackle.common
Some handy methods for strings.
StringNormalizer - Interface in org.tentackle.common
Translates strings to a reduced char set.
stringPropertyNames() - Method in class org.tentackle.common.EncryptedProperties
Same as Properties.stringPropertyNames() but returns only those keys that belong to the keyPrefix space, if set.
strip(String, char) - Method in enum class org.tentackle.common.StripMode
Strips the given text.
stripEnclosingDoubleQuotes(String) - Static method in class org.tentackle.common.StringHelper
Strips enclosing double quotes.
The quotes are removed only if the string both starts and ends with a double quote.
StripMode - Enum Class in org.tentackle.common
Stripping mode for strings with respect to a filler character.
subSequence(int, int) - Method in class org.tentackle.common.I18NText
 
subtract(BMoney) - Method in class org.tentackle.common.BMoney
Subtracts a BMoney from this value and returns a new object.
subtract(BMoney) - Method in class org.tentackle.common.DMoney
 
SUPPRESS_WARNINGS_BUNDLE - Static variable in class org.tentackle.common.Constants
suppress warnings for bundle getString invocations (see tentackle-check:bundles goal).
SUPPRESS_WARNINGS_STATEFUL_DOMAIN_LOGIC - Static variable in class org.tentackle.common.Constants
suppress warnings for suspicious stateful domain logic.

T

TBinary<T> - Class in org.tentackle.common
Datatype for storing an object in a database.
Same as Binary, but uses the application-specific ObjectSerializer implementation.
TBinary() - Constructor for class org.tentackle.common.TBinary
Creates an empty binary.
TBinary(InputStream, int, boolean) - Constructor for class org.tentackle.common.TBinary
Creates a binary from an InputStream.
Used to read a binary from the database.
TBinary(T) - Constructor for class org.tentackle.common.TBinary
Creates a TBinary from an object.
TentackleRuntimeException - Exception Class in org.tentackle.common
Tentackle runtime exception.
TentackleRuntimeException() - Constructor for exception class org.tentackle.common.TentackleRuntimeException
Constructs a new tentackle runtime exception with null as its detail message.
TentackleRuntimeException(String) - Constructor for exception class org.tentackle.common.TentackleRuntimeException
Constructs a new tentackle runtime exception with the specified detail message.
TentackleRuntimeException(String, Throwable) - Constructor for exception class org.tentackle.common.TentackleRuntimeException
Constructs a new tentackle runtime exception with the specified detail message and cause.
TentackleRuntimeException(Throwable) - Constructor for exception class org.tentackle.common.TentackleRuntimeException
Constructs a new tentackle runtime exception with the specified cause and a detail message of (cause==null ?
Time - Class in org.tentackle.common
Time with database semantics.
Time() - Constructor for class org.tentackle.common.Time
Creates the current time.
Time(long) - Constructor for class org.tentackle.common.Time
Constructs a Time object using a millisecond time value.
Timestamp - Class in org.tentackle.common
Timestamp with a UTC option.
Timestamp() - Constructor for class org.tentackle.common.Timestamp
Creates the current timestamp.
Timestamp(boolean) - Constructor for class org.tentackle.common.Timestamp
Creates the current timestamp.
Timestamp(long) - Constructor for class org.tentackle.common.Timestamp
Constructs a Timestamp object based on the epochal time based in milliseconds.
Timestamp(long, boolean) - Constructor for class org.tentackle.common.Timestamp
Constructs a Timestamp object based on the epochal time based in milliseconds.
toAsciiLetterOrDigit(String) - Static method in class org.tentackle.common.StringHelper
Converts to string containing only the letters A-Z, a-z or digits.
All other characters will be converted to an underscore.
toBytes(char) - Static method in class org.tentackle.common.StringHelper
Converts a Unicode character to a byte-array.
The byte order is little-endian, i.e., the low byte comes first.
toBytes(char[]) - Static method in class org.tentackle.common.StringHelper
Converts a char-array to a byte-array.
Each character is converted to two bytes as in StringHelper.toBytes(char).
toCalendar(Date) - Static method in class org.tentackle.common.DateHelper
Creates a calendar for the given date.
The calendar is created using the thread-local locale, if set, else the default locale.
toCalendar(Time) - Static method in class org.tentackle.common.DateHelper
Creates a calendar for the given time.
The calendar is created using the thread-local locale, if set, else the default locale.
toCalendar(Timestamp) - Static method in class org.tentackle.common.DateHelper
Creates a calendar for the given timestamp.
The calendar is created using the thread-local locale, if set, else the default locale.
toCamelCase(String) - Static method in class org.tentackle.common.StringHelper
Converts a dotted path to camelCase.
Example:
"alpha.beta.gamma" is converted to "alphaBetaGamma".
toCharArray(String) - Static method in class org.tentackle.common.StringHelper
Null-safe string to a char-array conversion.
toDate(Calendar) - Static method in class org.tentackle.common.DateHelper
Converts a Calendar into Date.
toDate(Date) - Static method in class org.tentackle.common.DateHelper
Converts a java.util.Date into a Date.
today() - Static method in class org.tentackle.common.DateHelper
Creates a calendar of the current date and time.
The calendar is created using the thread-local locale, if set, else the default locale.
today(int, int, int) - Static method in class org.tentackle.common.DateHelper
Gets the current date with an offset.
Same as DateHelper.today() with the offsets added.
toDoubleQuotes(String) - Static method in class org.tentackle.common.StringHelper
Takes a string, surrounds it with double-quotes, and escapes all double-quotes and backslashes already in the string according to Unix rules.
Formfeed, linefeed, carriage return, and tab will be converted to their well-known escape sequence.
toFixedLength(String, int) - Static method in class org.tentackle.common.StringHelper
Takes a string and returns one with a given length, cutting or filling up with spaces, whichever is appropriate.
toFixedLength(String, int, char) - Static method in class org.tentackle.common.StringHelper
Takes a string and returns one with a given length, cutting or filling up with a fill character, whichever is appropriate.
toFixedLengthLeftFill(String, int) - Static method in class org.tentackle.common.StringHelper
Takes a string and returns one with a given length, cutting or filling up with spaces from the left, whichever is appropriate.
toFixedLengthLeftFill(String, int, char) - Static method in class org.tentackle.common.StringHelper
Takes a string and returns one with a given length, cutting or filling up with a fill character from the left, whichever is appropriate.
toHexString(byte[]) - Static method in class org.tentackle.common.StringHelper
Creates a human-readable hex-String out of a byte-array (e.g., from MessageDigest MD5sum).
toHTML(String) - Static method in class org.tentackle.common.StringHelper
Converts a multiline string to an HTML string that can be displayed in a label.
Useful to print multiline labels.
toLower(String) - Static method in class org.tentackle.common.StringHelper
Converts a string to lowercase allowing null values.
The conversion is done with Locale.ROOT.
toMillis(Date) - Static method in class org.tentackle.common.DateHelper
Converts a date to the epochal time in millis with null-check.
ToolFinder - Class in org.tentackle.common
Finds external tools to execute.
ToolFinder() - Constructor for class org.tentackle.common.ToolFinder
Creates a tool finder.
ToolRunner - Class in org.tentackle.common
Runner for external tools.
ToolRunner(File) - Constructor for class org.tentackle.common.ToolRunner
Creates a runner for a tool.
toParameterString() - Method in class org.tentackle.common.I18NText
Creates a parameter string of the current translations.
toParsableString(String) - Static method in class org.tentackle.common.StringHelper
Converts a string to a string parsable by StringHelper.parseString(java.lang.String).
The string is enclosed in double quotes if it contains quotes, backslashes or whitespace.
toProperties() - Method in class org.tentackle.common.ParameterString
Converts a parameter string to a property list.
toString() - Method in class org.tentackle.common.I18NText
Returns the translation for the current locale.
toString() - Method in record class org.tentackle.common.LayerGraphSpec
Returns a string representation of this record class.
toString() - Method in record class org.tentackle.common.LayerSpec
Returns a string representation of this record class.
toString() - Method in class org.tentackle.common.ModuleInfo
 
toString() - Method in class org.tentackle.common.ModuleSorter
 
toString() - Method in class org.tentackle.common.NumericEvaluator
 
toString() - Method in record class org.tentackle.common.NumericVariable
Returns a string representation of this record class.
toString() - Method in class org.tentackle.common.ParameterString
 
toString() - Method in record class org.tentackle.common.ServiceFinderKey
Returns a string representation of this record class.
toString() - Method in class org.tentackle.common.ToolRunner
 
toTag(Locale) - Method in class org.tentackle.common.LocaleProvider
Converts a locale to a tag.
Since there is no guarantee that Locale.toLanguageTag() and Locale.forLanguageTag(String) will round-trip, this method is provided to guarantee that at least for the supported locales.
toTime(Calendar) - Static method in class org.tentackle.common.DateHelper
Converts a Calendar into Time.
toTime(Date) - Static method in class org.tentackle.common.DateHelper
Converts a java.util.Date into Time.
toTimestamp(Calendar) - Static method in class org.tentackle.common.DateHelper
Converts a Calendar into Timestamp.
toTimestamp(Date) - Static method in class org.tentackle.common.DateHelper
Converts a java.util.Date into Timestamp.
toUpper(String) - Static method in class org.tentackle.common.StringHelper
Converts a string to uppercase allowing null values.
The conversion is done with Locale.ROOT.
toVarName(String) - Static method in class org.tentackle.common.StringHelper
Filters illegal chars for Java variable names.
Only the ASCII letters and digits are kept, whitespace is converted to an underscore, and all other characters are dropped.
toWords() - Method in class org.tentackle.common.BMoney
Converts a money value to a string of digits as words.
The digits after the decimal point and the sign are ignored.
trim(String) - Static method in class org.tentackle.common.StringHelper
Trims a string.
The method is null-safe.
trim(String, int) - Static method in class org.tentackle.common.StringHelper
Trims a string.
The method is null-safe.
trimLeft(String, char) - Static method in class org.tentackle.common.StringHelper
Cuts leading characters.
trimRight(String, char) - Static method in class org.tentackle.common.StringHelper
Cuts trailing characters.

U

unDiacrit(String, boolean) - Method in class org.tentackle.common.DefaultStringNormalizer
 
unDiacrit(String, boolean) - Method in interface org.tentackle.common.StringNormalizer
Converts special Unicode characters (so-called diacritics) to standard ASCII.
Supports also special German and Northern European "umlauts".
unzip(File, File, Consumer) - Static method in class org.tentackle.common.FileHelper
Unzips a zip file using a default buffer size.
unzip(File, File, Consumer, int) - Static method in class org.tentackle.common.FileHelper
Unzips a zip file.

V

value() - Element in annotation interface org.tentackle.common.Analyze
The classname of the handler.
Notice: we don't provide the class directly to avoid unnecessary runtime dependencies.
value() - Element in annotation interface org.tentackle.common.Bundle
The optional key name.
If given, the bundle of the annotated class can also be loaded via this name.
value() - Element in annotation interface org.tentackle.common.ClasspathFirst
Gets the serviced class to be overridden from the classpath.
value() - Element in annotation interface org.tentackle.common.MappedService
The service class.
value() - Element in annotation interface org.tentackle.common.ModuleOrdinal
Gets the fixed ordinal.
Must not be zero, since zero denotes a module that has not been sorted yet.
value() - Method in record class org.tentackle.common.NumericVariable
Returns the value of the value record component.
value() - Element in annotation interface org.tentackle.common.RemoteMethod
If methods with the same name exist in the same class, the wurblet can identify it by a special tag.
value() - Element in annotation interface org.tentackle.common.Service
Gets the serviced class.
value() - Element in annotation interface org.tentackle.common.ServiceName
Gets the service name.
valueOf(String) - Static method in class org.tentackle.common.Date
Converts a string into a date.
Same as Date.valueOf(String), but returns a tentackle date (not frozen).
valueOf(String) - Static method in class org.tentackle.common.I18NText
Creates an I18NText from a string in the current locale.
valueOf(String) - Static method in enum class org.tentackle.common.StripMode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in class org.tentackle.common.Time
Converts a string into a time.
Same as Time.valueOf(String), but returns a tentackle time (not frozen).
valueOf(String) - Static method in class org.tentackle.common.Timestamp
Converts a string into a timestamp.
Same as Timestamp.valueOf(String), but returns a tentackle timestamp (not frozen, UTC flag false).
values() - Static method in enum class org.tentackle.common.StripMode
Returns an array containing the constants of this enum class, in the order they are declared.
Version - Class in org.tentackle.common
Holds Tentackle versioning information.

W

with(String) - Method in class org.tentackle.common.I18NText
Derives an I18NText object with a translation for the current locale.
This object is not modified.
with(Locale, String) - Method in class org.tentackle.common.I18NText
Derives an I18NText object with a translation for the given locale.
This object is not modified.
A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form