|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acsinet_solutions.cetia4.data.DTOUtils
public final class DTOUtils
Utilities for DTOs
(c) 2004 ACSINET S.A. de C.V. Derechos Reservados
| Constructor Summary | |
|---|---|
DTOUtils()
|
|
| Method Summary | ||
|---|---|---|
static
|
asSequencedMap(java.util.Collection<T> collection)
Convert the SimpleKeyDTO list to a sequenced map |
|
static
|
asSortedMap(java.util.Collection<T> collection)
Convert the SimpleKeyDTO list to a sorted map |
|
static void |
checkVersion(long providedVersion,
long expectedVersion)
Simple method that provides version checking |
|
static IntKeyDTO |
getInstance(java.lang.Class c,
java.lang.Integer id)
Get a SimpleKeyDTO instance for the given class name and key value |
|
static
|
removeRepeated(java.util.List<T> list)
Remove the repeated SimpleKeyDTO elements in the given list |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DTOUtils()
| Method Detail |
|---|
public static <T extends IntKeyDTO> java.util.SortedMap<java.lang.Integer,T> asSortedMap(java.util.Collection<T> collection)
list - A list of not-null AreaDTO instances
public static <T extends IntKeyDTO> java.util.Map<java.lang.Integer,T> asSequencedMap(java.util.Collection<T> collection)
list - A list of not-null SimpleKeyDTO instances
public static <T extends IntKeyDTO> void removeRepeated(java.util.List<T> list)
public static IntKeyDTO getInstance(java.lang.Class c,
java.lang.Integer id)
c - A not-null valid Class that implements SimpleKeyDTOid - An id value that will be assigned to the newly created
instance before returning
public static void checkVersion(long providedVersion,
long expectedVersion)
throws VersionMismatchException
VersionMismatchException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||