info.informatica.data
Class SortMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<FieldName,Boolean>
              extended by info.informatica.data.SortMap
All Implemented Interfaces:
Serializable, Cloneable, Map<FieldName,Boolean>

public class SortMap
extends LinkedHashMap<FieldName,Boolean>

Map of sort field names to true/false values if order is descending/ascending.

Author:
Carlos Amengual (amengual at informatica.info)
See Also:
Serialized Form

Constructor Summary
SortMap()
           
SortMap(int initialCapacity)
           
SortMap(int initialCapacity, float loadFactor)
           
SortMap(int initialCapacity, float loadFactor, boolean accessOrder)
           
SortMap(Map<FieldName,Boolean> m)
           
 
Method Summary
 void appendClause(StringBuilder stmt)
           
 void clear()
           
 SQLStatement getParentStatement()
           
 boolean isInAscendingOrder(FieldName name)
           
 Boolean put(FieldName key, Boolean value)
           
 void putAll(Map<? extends FieldName,? extends Boolean> m)
           
 Boolean remove(Object key)
           
 void setField(FieldName name, boolean sortDesc)
           
 void setParentStatement(SQLStatement parentStmt)
           
 
Methods inherited from class java.util.LinkedHashMap
containsValue, get
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, size, values
 

Constructor Detail

SortMap

public SortMap(int initialCapacity,
               float loadFactor)

SortMap

public SortMap(int initialCapacity)

SortMap

public SortMap()

SortMap

public SortMap(Map<FieldName,Boolean> m)

SortMap

public SortMap(int initialCapacity,
               float loadFactor,
               boolean accessOrder)
Method Detail

getParentStatement

public SQLStatement getParentStatement()

setParentStatement

public void setParentStatement(SQLStatement parentStmt)

setField

public void setField(FieldName name,
                     boolean sortDesc)

isInAscendingOrder

public boolean isInAscendingOrder(FieldName name)

clear

public void clear()
Specified by:
clear in interface Map<FieldName,Boolean>
Overrides:
clear in class LinkedHashMap<FieldName,Boolean>

put

public Boolean put(FieldName key,
                   Boolean value)
Specified by:
put in interface Map<FieldName,Boolean>
Overrides:
put in class HashMap<FieldName,Boolean>

putAll

public void putAll(Map<? extends FieldName,? extends Boolean> m)
Specified by:
putAll in interface Map<FieldName,Boolean>
Overrides:
putAll in class HashMap<FieldName,Boolean>

remove

public Boolean remove(Object key)
Specified by:
remove in interface Map<FieldName,Boolean>
Overrides:
remove in class HashMap<FieldName,Boolean>

appendClause

public void appendClause(StringBuilder stmt)