A C D E F G H I J L M N O P Q R S T U V W

A

add(CriteriaList.Criteria) - Method in class sk.baka.tools.jpa.CriteriaList
A convenience method to add a criteria
apply(Query) - Method in class sk.baka.tools.jpa.Paging
Applies the paging criteria to given query.
ascending - Variable in class sk.baka.tools.jpa.Sorting
use ascending order if true, descending order if false.
Assert - Class in sk.baka.tools.test
Adds several array-comparing asserts.
Assert() - Constructor for class sk.baka.tools.test.Assert
 
assertArrayEquals(Object, Object, String) - Static method in class sk.baka.tools.test.Assert
Asserts that two arrays contain the same elements in the same order.
assertArrayEquals(Object, Object) - Static method in class sk.baka.tools.test.Assert
Asserts that two arrays contain the same elements in the same order.
assertArrayEqualsNoOrder(Object, Object) - Static method in class sk.baka.tools.test.Assert
Asserts that two arrays contain the same elements in no particular order.
assertArrayEqualsNoOrder(Object, Object, String) - Static method in class sk.baka.tools.test.Assert
Asserts that two arrays contain the same elements in no particular order.
assertBeansEquals(T, T) - Static method in class sk.baka.tools.test.Assert
Verifies that given beans are equal.
assertBeansEquals(T, T, JavaUtils.IEqualsComparator) - Static method in class sk.baka.tools.test.Assert
Verifies that given beans are equal.
assertCorrectEquals(T, T, T, T) - Static method in class sk.baka.tools.test.Assert
Tests given object for correct Object.equals(java.lang.Object) contract.
assertCorrectEqualsForJpaBean(Class<?>, Object, Object) - Static method in class sk.baka.tools.test.Assert
Verifies that given JPA bean has a correct implementation of Object.equals(java.lang.Object) and Object.hashCode() methods.
assertUtilityClass(Class<?>) - Static method in class sk.baka.tools.test.Assert
Checks that given class is really an utility class - it has a private zero-arg constructor, does not have any other constructors and the constructor throws AssertionError.

C

checkArg(String, boolean) - Static method in class sk.baka.tools.Checks
Checks that method argument holds given precondition.
checkNotBlank(String, String) - Static method in class sk.baka.tools.Checks
Asserts that given parameter is not #isBlank(String).
checkNotNull(String, Object) - Static method in class sk.baka.tools.Checks
Asserts that given parameter is not null.
Checks - Class in sk.baka.tools
Contains various check methods.
clear() - Method in class sk.baka.tools.concurrent.EffectivePutMap
 
clone(Date) - Static method in class sk.baka.tools.JavaUtils
Clones given date object.
closeQuietly(Closeable) - Static method in class sk.baka.tools.IOUtils
Closes given Closeable quietly.
closeQuietly(Connection) - Static method in class sk.baka.tools.SqlUtils
Closes given Connection quietly.
COMPARATOR_EQUALS - Static variable in class sk.baka.tools.JavaUtils
Compares two objects using JavaUtils.equals(java.lang.Object, java.lang.Object).
copy() - Method in class sk.baka.tools.concurrent.EffectivePutMap
Returns a list of all map entries with the marker values filtered out.
copy(InputStream, OutputStream) - Static method in class sk.baka.tools.IOUtils
Reads given input stream fully and writes it to given output stream.
copy(Reader, Writer) - Static method in class sk.baka.tools.IOUtils
Reads given reader fully and writes it to given output stream.
criteria - Variable in class sk.baka.tools.jpa.CriteriaList
The criteria list.
CriteriaList - Class in sk.baka.tools.jpa
Builds a list of criteria: a pair of column name (or a JPA expression) and the desired value.
CriteriaList() - Constructor for class sk.baka.tools.jpa.CriteriaList
 
CriteriaList.Criteria - Class in sk.baka.tools.jpa
Holds a single criteria.
CriteriaList.Criteria(String, OperatorEnum, Serializable) - Constructor for class sk.baka.tools.jpa.CriteriaList.Criteria
Creates a new criteria object.

D

DaoTools - Class in sk.baka.tools.jpa
Contains useful utility methods for JPA entity retrieving.
DaoTools() - Constructor for class sk.baka.tools.jpa.DaoTools
 
DateUtils - Class in sk.baka.tools
Contains utility methods for work with the Date class.
DelayedExecutor<K,R extends Runnable> - Class in sk.baka.tools.concurrent
Performs an asynchronous Runnable execution.

A storage of runners scheduled for execution in the DelayedExecutor.executor.

DelayedExecutor(int, String) - Constructor for class sk.baka.tools.concurrent.DelayedExecutor
Creates a new executor and prepares it for executing the tasks.
DelayedExecutor(ExecutorService) - Constructor for class sk.baka.tools.concurrent.DelayedExecutor
Creates a new executor and prepares it for executing the tasks.
delete(Object) - Method in class sk.baka.tools.jpa.DaoTools
Removes given bean.
deleteAll(Class<?>) - Method in class sk.baka.tools.jpa.DaoTools
Deletes all instances of given JPA bean.
deleteById(Class<?>, Object) - Method in class sk.baka.tools.jpa.DaoTools
Deletes bean with given ID.
desiredValue - Variable in class sk.baka.tools.jpa.CriteriaList.Criteria
the desired value.

E

EffectivePutMap<K,V> - Class in sk.baka.tools.concurrent
Adds a possibility to effectively put a key-value mapping to a ConcurrentMap if such mapping is missing.
EffectivePutMap(ConcurrentMap<K, V>, V, IValueProducer<? super K, ? extends V>) - Constructor for class sk.baka.tools.concurrent.EffectivePutMap
Constructor.
equal(String, Serializable) - Method in class sk.baka.tools.jpa.CriteriaList
A convenience method to add a requirement of equality: jpaField = value
equals(Object, Object) - Static method in class sk.baka.tools.JavaUtils
Checks that two objects are equal.
equals(Object, Object) - Method in interface sk.baka.tools.JavaUtils.IEqualsComparator
Tests whether given objects are equal.
equals(Object) - Method in class sk.baka.tools.jpa.CriteriaList.Criteria
 
equals(Object, Object) - Method in class sk.baka.tools.jpa.JpaBeanComparator
 
equals(Object) - Method in class sk.baka.tools.jpa.Paging
 
equalsBean(T, T) - Static method in class sk.baka.tools.JavaUtils
Compares two beans.
equalsBean(T, T, JavaUtils.IEqualsComparator) - Static method in class sk.baka.tools.JavaUtils
Compares two beans.
execute(K, R) - Method in class sk.baka.tools.concurrent.DelayedExecutor
Schedules given command for execution.
existsClass(String) - Static method in enum sk.baka.tools.javaee.JeeServer
 

F

feedParameters(Query) - Method in class sk.baka.tools.jpa.CriteriaList
Feeds given query with current parameter list.
field - Variable in class sk.baka.tools.JavaUtils.BeanProperty
The field itself.
FILE_URI_HIERARCHICAL_PREFIX - Static variable in class sk.baka.tools.UrlUtils
A hierarchical URI file prefix: "file://".
FILE_URI_OPAQUE_PREFIX - Static variable in class sk.baka.tools.UrlUtils
An opaque URI file prefix: "file:".
find(Class<T>, CriteriaList, Paging, Sorting) - Method in class sk.baka.tools.jpa.DaoTools
The ultimate find command :) Retrieves all instances of given JPA bean, sorted by a particular column, matching given criteria.
findAll(Class<T>) - Method in class sk.baka.tools.jpa.DaoTools
Retrieves all instances of given JPA bean.
findAll(Class<T>, int, int) - Method in class sk.baka.tools.jpa.DaoTools
Retrieves all instances of given JPA bean.
findAll(Class<T>, int, int, String, boolean) - Method in class sk.baka.tools.jpa.DaoTools
Retrieves all instances of given JPA bean, sorted by a particular column.
findById(Class<T>, Object) - Method in class sk.baka.tools.jpa.DaoTools
Returns an entity with given ID.
findSingle(Class<T>) - Method in class sk.baka.tools.jpa.DaoTools
Retrieves a single instances of JPA bean.
firstResult - Variable in class sk.baka.tools.jpa.Paging
the start position of the first result, numbered from 0.
from(Field) - Static method in class sk.baka.tools.JavaUtils.BeanProperty
Creates a bean property accessor for given field.
from(Class<?>, String) - Static method in class sk.baka.tools.JavaUtils.BeanProperty
Creates a bean property accessor for given property.

G

get(K) - Method in class sk.baka.tools.concurrent.EffectivePutMap
Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
getBeanProperties(Class<?>, boolean) - Static method in class sk.baka.tools.JavaUtils
Returns all property accessors from given class, and optionally from its superclasses.
getCount(Class<?>) - Method in class sk.baka.tools.jpa.DaoTools
Returns a count of all instances of given JPA bean.
getCount(Class<?>, CriteriaList) - Method in class sk.baka.tools.jpa.DaoTools
Returns a count of instances of given JPA bean which passes given filtering criteria.
getEntityManager() - Method in class sk.baka.tools.jpa.SimpleTransactionInterceptor
Creates an EntityManager which delegates calls to a real entity manager stored in the SimpleTransactionInterceptor.tran thread storage.
getGetter(Field) - Static method in class sk.baka.tools.JavaUtils
Returns a getter method for given field, if such a method exists in the same class.
getHibernateTransactionManagerFactory() - Method in enum sk.baka.tools.javaee.JeeServer
Returns a correct Hibernate org.hibernate.transaction.TransactionManagerLookup instance class name.
getJNDIProperties(boolean) - Method in enum sk.baka.tools.javaee.JeeServer
Returns JNDI properties for instantiating correct instance of InitialContext.
getLocalhostRemoteURL() - Method in enum sk.baka.tools.javaee.JeeServer
A localhost sample of how the connection URL should look like when connecting to remote EJBs.
getName() - Method in class sk.baka.tools.javaee.OpenEJBTransactionManagerLookup
 
getName() - Method in class sk.baka.tools.JavaUtils.BeanProperty
Returns the property name.
getQueryMap(String) - Static method in class sk.baka.tools.UrlUtils
Splits the URL query string into a map of parameter name and value pairs.
getRemoteURL(String, Integer) - Method in enum sk.baka.tools.javaee.JeeServer
Returns the connection URL for connecting to remote EJBs.
getResource(String) - Static method in class sk.baka.tools.JavaUtils
Tries to obtain an input stream for given resource.
getRunningOrScheduled() - Method in class sk.baka.tools.concurrent.DelayedExecutor
Returns a list of all routes either running or scheduled for an immediate execution.
getRunningOrScheduledCount() - Method in class sk.baka.tools.concurrent.DelayedExecutor
Returns a count of all routes either running or scheduled for an immediate execution.
getRuntime() - Static method in enum sk.baka.tools.javaee.JeeServer
Returns the server we are running on.
getRuntimeNull() - Static method in enum sk.baka.tools.javaee.JeeServer
Returns the server we are running on.
getServerName() - Method in enum sk.baka.tools.javaee.JeeServer
Returns the displayable name of the application server.
getSetter(Field) - Static method in class sk.baka.tools.JavaUtils
Returns a setter method for given field, if such a method exists in the same class.
getStacktrace(Throwable) - Static method in class sk.baka.tools.JavaUtils
Returns a stacktrace of given throwable
getter - Variable in class sk.baka.tools.JavaUtils.BeanProperty
A field's getter, null if not public or non-existant.
getTransactionIdentifier(Transaction) - Method in class sk.baka.tools.javaee.UniversalTransactionManagerLookup
 
getTransactionManager(Properties) - Method in class sk.baka.tools.javaee.OpenEJBTransactionManagerLookup
 
getTransactionManager(Properties) - Method in class sk.baka.tools.javaee.UniversalTransactionManagerLookup
 
getTransactionManagerJndi() - Method in enum sk.baka.tools.javaee.JeeServer
Returns a JNDI name of the TransactionManager implementation.
getType() - Method in class sk.baka.tools.JavaUtils.BeanProperty
Returns the type of the property.
getUserTransactionJndi() - Method in enum sk.baka.tools.javaee.JeeServer
Returns a JNDI name of the UserTransaction implementation.
getUserTransactionName() - Method in class sk.baka.tools.javaee.OpenEJBTransactionManagerLookup
 
getUserTransactionName() - Method in class sk.baka.tools.javaee.UniversalTransactionManagerLookup
 
getValue(Object) - Method in class sk.baka.tools.JavaUtils.BeanProperty
Retrieves a property value.
getWithPrefix(String) - Method in class sk.baka.tools.jpa.CriteriaList.Criteria
Prefixes the JPA field expression with given prefix and returns a new Criteria object.
getWithPrefix(String) - Method in class sk.baka.tools.jpa.CriteriaList
Prefixes the JPA field expression with given prefix and returns a new Criteria list.
GuardedBy - Annotation Type in sk.baka.tools.concurrent
A variable annotated with this annotation is guarded by given lock.

H

hashCode() - Method in class sk.baka.tools.jpa.CriteriaList.Criteria
 
hashCode() - Method in class sk.baka.tools.jpa.Paging
 

I

ILockingStorage<K,V> - Interface in sk.baka.tools.concurrent
An object storage, allows thread locking and retrieving of objects stored under a key.
Immutable - Annotation Type in sk.baka.tools.concurrent
The class is immutable.
InMemoryLockingStorage<K,V> - Class in sk.baka.tools.concurrent
This implementation uses a simple and efficient in-memory object storage.
InMemoryLockingStorage(IValueProducer<? super K, ? extends V>) - Constructor for class sk.baka.tools.concurrent.InMemoryLockingStorage
Creates a new locking storage.
interrupt() - Method in class sk.baka.tools.concurrent.DelayedExecutor
Interrupts all currently running runnables.
invoke(MethodInvocation) - Method in class sk.baka.tools.jpa.SimpleTransactionInterceptor
 
IOUtils - Class in sk.baka.tools
Contains various I/O utility methods.
isBlank(Object) - Static method in class sk.baka.tools.JavaUtils
Deprecated. use JavaUtils.isBlankArray(java.lang.Object)
isBlank(String) - Static method in class sk.baka.tools.StrUtils
Checks if given string is blank (null or whitespace-only).
isBlankArray(Object) - Static method in class sk.baka.tools.JavaUtils
Returns true if given array is null, zero-sized or contains only nulls.
isEmpty(Object) - Static method in class sk.baka.tools.JavaUtils
Deprecated. use #isEmptyList(java.lang.Object)
isEmpty(String) - Static method in class sk.baka.tools.StrUtils
Returns true if given string is null or zero-sized.
isEmptyArray(Object) - Static method in class sk.baka.tools.JavaUtils
Returns true if given array is null or zero-sized.
isEnum(Class<?>) - Static method in class sk.baka.tools.JavaUtils
A workaround around broken Class.isEnum() which returns false for more complex enums (enums which define abstract methods and let each constant override the method).
isPrimitiveArray(Object) - Static method in class sk.baka.tools.JavaUtils
Checks whether given array is an array of primitives.
isRunningOn() - Method in enum sk.baka.tools.javaee.JeeServer
Checks if we are running on a particular kind of a server.
IValueProducer<K,V> - Interface in sk.baka.tools.concurrent
Produces instances of V.

J

JavaUtils - Class in sk.baka.tools
Contains several utilities for classic java classes.
JavaUtils.BeanProperty - Class in sk.baka.tools
Contains accessors to a bean property.
JavaUtils.IEqualsComparator - Interface in sk.baka.tools
Compares two objects.
JeeServer - Enum in sk.baka.tools.javaee
Enumerates JavaEE servers and provides several information such as remote EJB endpoint name, transaction manager location etc.
JpaBeanComparator - Class in sk.baka.tools.jpa
Provides a comparator which compares JPA beans.
JpaBeanComparator() - Constructor for class sk.baka.tools.jpa.JpaBeanComparator
 
jpaField - Variable in class sk.baka.tools.jpa.CriteriaList.Criteria
The JPA field to match (or a valid JPA expression)
jpaField - Variable in class sk.baka.tools.jpa.Sorting
sort using this column.

L

like(String, Serializable) - Method in class sk.baka.tools.jpa.CriteriaList
A convenience method to add a requirement of likeness: jpaField LIKE value
loadProperties(String) - Static method in class sk.baka.tools.JavaUtils
Loads properties from given file.
loadProperties(InputStream) - Static method in class sk.baka.tools.JavaUtils
Loads properties from given input stream.
lockAndGet(K) - Method in interface sk.baka.tools.concurrent.ILockingStorage
Performs an atomic lock on given key and atomically retrieves a value stored under given ID.
lockAndGet(K) - Method in class sk.baka.tools.concurrent.InMemoryLockingStorage
 

M

map - Variable in class sk.baka.tools.concurrent.EffectivePutMap
The map itself.
maxResults - Variable in class sk.baka.tools.jpa.Paging
the maximum number of results to retrieve.
MILLIS_IN_DAY - Static variable in class sk.baka.tools.DateUtils
Number of milliseconds in a day.

N

newDaemonFactory(String) - Static method in class sk.baka.tools.concurrent.DelayedExecutor
Creates a new factory which creates daemon threads using the Executors.defaultThreadFactory().
normalizeSlashes(String) - Static method in class sk.baka.tools.UrlUtils
Normalizes slashes in given string, i.e.

O

OpenEJBTransactionManagerLookup - Class in sk.baka.tools.javaee
Performs an OpenEJB lookup.
OpenEJBTransactionManagerLookup() - Constructor for class sk.baka.tools.javaee.OpenEJBTransactionManagerLookup
 
operator - Variable in class sk.baka.tools.jpa.CriteriaList.Criteria
The operator to use.
OperatorEnum - Enum in sk.baka.tools.jpa
Enumerates operators.

P

Paging - Class in sk.baka.tools.jpa
Paging criteria.
Paging(int, int) - Constructor for class sk.baka.tools.jpa.Paging
Creates new paging results criteria.
persist(Object) - Method in class sk.baka.tools.jpa.DaoTools
Simply invokes the EntityManager.persist(java.lang.Object) method.
produce(K) - Method in interface sk.baka.tools.concurrent.IValueProducer
Produces new object for given key.
putIfAbsent(K) - Method in class sk.baka.tools.concurrent.EffectivePutMap
Similar to ConcurrentMap.putIfAbsent(java.lang.Object, java.lang.Object) except that it uses #produce() to produce value objects.

Q

queryParameters - Variable in class sk.baka.tools.jpa.CriteriaList
The query parameters, valid after invocation of CriteriaList.toJpaQueryCondition().

R

remove(K) - Method in class sk.baka.tools.concurrent.EffectivePutMap
Removes the mapping for a key from this map if it is present (optional operation).
representation - Variable in enum sk.baka.tools.jpa.OperatorEnum
The (JPA) representation of the operator.

S

sameDay(String, Date) - Method in class sk.baka.tools.jpa.CriteriaList
Adds an "at-day" condition to this criteria list.
setEntityManager(EntityManager) - Method in class sk.baka.tools.jpa.DaoTools
Sets the entity manager.
setter - Variable in class sk.baka.tools.JavaUtils.BeanProperty
A field's setter, null if not public or non-existant.
setValue(Object, Object) - Method in class sk.baka.tools.JavaUtils.BeanProperty
Sets a property value.
setZeroTime(Calendar) - Static method in class sk.baka.tools.DateUtils
Clears the time part of given calendar.
shutdown() - Method in class sk.baka.tools.concurrent.DelayedExecutor
Shuts down the scheduler.
shutdownNow() - Method in class sk.baka.tools.concurrent.DelayedExecutor
Shuts down the scheduler.
SimpleTransactionInterceptor - Class in sk.baka.tools.jpa
Intercepts the transactional invocations and starts/commits/rollbacks transaction as necessary.
SimpleTransactionInterceptor(EntityManagerFactory) - Constructor for class sk.baka.tools.jpa.SimpleTransactionInterceptor
Uses given factory to create entity managers.
sk.baka.tools - package sk.baka.tools
 
sk.baka.tools.concurrent - package sk.baka.tools.concurrent
 
sk.baka.tools.javaee - package sk.baka.tools.javaee
 
sk.baka.tools.jpa - package sk.baka.tools.jpa
 
sk.baka.tools.test - package sk.baka.tools.test
 
Sorting - Class in sk.baka.tools.jpa
Defines sorting.
Sorting(String, boolean) - Constructor for class sk.baka.tools.jpa.Sorting
Creates new object instance.
split(String, String) - Static method in class sk.baka.tools.StrUtils
Splits given string and returns a list of splitted trimmed strings.
SqlUtils - Class in sk.baka.tools
Contains several utility methods related to the java.sql package.
StrUtils - Class in sk.baka.tools
Contains various Strings utilities.

T

ThreadSafe - Annotation Type in sk.baka.tools.concurrent
Denotes a thread-safe class.
ThreadUnsafe - Annotation Type in sk.baka.tools.concurrent
Denotes a thread-unsafe class.
toJpaQueryCondition(List<Object>) - Method in class sk.baka.tools.jpa.CriteriaList.Criteria
Converts this criteria to a JPA WHERE condition.
toJpaQueryCondition() - Method in class sk.baka.tools.jpa.CriteriaList
Converts a list of JPA criteria to a JPA query WHERE clause.
toList(Object) - Static method in class sk.baka.tools.JavaUtils
Creates a new list and copies given array to it.
toLocalFile(String) - Static method in class sk.baka.tools.UrlUtils
Converts given file object to a local filesystem file with absolute path.
toString(InputStream) - Static method in class sk.baka.tools.IOUtils
Reads given input stream fully and returns it as a string with platform-default encoding.
toString(InputStream, String) - Static method in class sk.baka.tools.IOUtils
Reads given input stream fully and returns it as a string with platform-default encoding.
toString(Reader) - Static method in class sk.baka.tools.IOUtils
Reads given input stream fully and returns it as a string with platform-default encoding.
toUri(String) - Static method in class sk.baka.tools.UrlUtils
Converts given path to an URI if OS-dependent path is given.
truncate(String, int, boolean) - Static method in class sk.baka.tools.StrUtils
Truncates given string if its length exceeds maximum length.

U

UniversalTransactionManagerLookup - Class in sk.baka.tools.javaee
Delegates all invocations to given auto-detected transaction manager.
UniversalTransactionManagerLookup() - Constructor for class sk.baka.tools.javaee.UniversalTransactionManagerLookup
A default, zero-arg constructor which auto-detects the server.
UniversalTransactionManagerLookup(JeeServer) - Constructor for class sk.baka.tools.javaee.UniversalTransactionManagerLookup
Creates lookup for given server type.
unlock(K) - Method in interface sk.baka.tools.concurrent.ILockingStorage
Atomically unlocks a lock on given key.
unlock(K) - Method in class sk.baka.tools.concurrent.InMemoryLockingStorage
 
unlockAndRemove(K) - Method in interface sk.baka.tools.concurrent.ILockingStorage
Atomically unlocks a lock with given key and deletes the value object stored under the key.
unlockAndRemove(K) - Method in class sk.baka.tools.concurrent.InMemoryLockingStorage
 
UrlUtils - Class in sk.baka.tools
Contains tools for URLs.

V

valueOf(String) - Static method in enum sk.baka.tools.javaee.JeeServer
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum sk.baka.tools.jpa.OperatorEnum
Returns the enum constant of this type with the specified name.
values() - Method in class sk.baka.tools.concurrent.InMemoryLockingStorage
Returns a snapshot of all values currently stored in the storage.
values() - Static method in enum sk.baka.tools.javaee.JeeServer
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum sk.baka.tools.jpa.OperatorEnum
Returns an array containing the constants of this enum type, in the order they are declared.

W

withZeroTime(Date) - Static method in class sk.baka.tools.DateUtils
Returns a new date with zeroed time part.

A C D E F G H I J L M N O P Q R S T U V W

Copyright © 2009-2010. All Rights Reserved.