public class EntityResult extends Hashtable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
EntityResult.TimeUtil |
protected class |
EntityResult.Uncompressor |
| Modifier and Type | Field and Description |
|---|---|
static int |
BEST_COMPRESSION |
static int |
BEST_SPEED |
protected int |
code |
protected List |
columnsOrder |
protected Hashtable |
columnsSQLTypes |
protected int |
compressionLevel |
protected int |
compressionThreshold
Compression Threshold.
|
protected Hashtable |
data
Object needed for the compression mechanism
|
static int |
DATA_RESULT |
protected int |
dataByteNumber |
static boolean |
DEBUG |
static int |
DEFAULT_COMPRESSION |
static int |
DEFAULT_COMPRESSION_THRESHOLD |
protected String |
detail |
static int |
HUFFMAN_ONLY |
protected String |
message |
protected Object[] |
messageParameter |
protected int |
MIN_BYTE_PROGRESS |
protected static int |
MIN_PERCENT_PROGRESS |
static int |
NO_COMPRESSION |
static int |
NODATA_RESULT |
static int |
OPERATION_SUCCESSFUL |
static int |
OPERATION_SUCCESSFUL_SHOW_MESSAGE |
static int |
OPERATION_WRONG |
protected String |
operationId |
protected long |
streamTime |
protected int |
type |
| Constructor and Description |
|---|
EntityResult()
Creates a EntityResult with code = OPERATION_SUCCESSFUL and type =
NODATA_RESULT
|
EntityResult(Hashtable h) |
EntityResult(int operationCode,
int resultType) |
EntityResult(int operationCode,
int resultType,
String resultMessage) |
EntityResult(List columns) |
public static boolean DEBUG
public static final int OPERATION_SUCCESSFUL
public static final int OPERATION_SUCCESSFUL_SHOW_MESSAGE
public static final int OPERATION_WRONG
public static final int DATA_RESULT
public static final int NODATA_RESULT
public static final int DEFAULT_COMPRESSION_THRESHOLD
public static final int NO_COMPRESSION
public static final int BEST_COMPRESSION
public static final int BEST_SPEED
public static final int DEFAULT_COMPRESSION
public static final int HUFFMAN_ONLY
protected int MIN_BYTE_PROGRESS
protected static int MIN_PERCENT_PROGRESS
protected int compressionThreshold
protected int type
protected int code
protected String message
protected Object[] messageParameter
protected String detail
protected String operationId
protected List columnsOrder
protected transient Hashtable data
protected transient int compressionLevel
protected transient int dataByteNumber
protected transient long streamTime
protected Hashtable columnsSQLTypes
public EntityResult()
public EntityResult(List columns)
public EntityResult(Hashtable h)
public EntityResult(int operationCode,
int resultType)
public EntityResult(int operationCode,
int resultType,
String resultMessage)
public int getType()
public int getCode()
public String getMessage()
public String getDetails()
public void setType(int operationType)
public void setCode(int operationCode)
public void setMessage(String operationMessage)
public void setMessageParameters(Object[] params)
public Object[] getMessageParameter()
public boolean containsKey(Object key)
containsKey in interface MapcontainsKey in class Hashtablepublic boolean containsValue(Object value)
containsValue in interface MapcontainsValue in class Hashtablepublic Enumeration elements()
public EntityResult deepClone()
public Set entrySet()
public boolean isEmpty()
public Enumeration keys()
public Set keySet()
public void putAll(Map m)
public Collection values()
public void setCompressionLevel(int level)
public void setCompressionThreshold(int threshold)
public int getCompressionThreshold()
protected byte[] compressionBytes(byte[] bytesToCompress,
int compressionLevel)
protected byte[] uncompressionBytes(byte[] bytesADescomprimir)
protected byte[] uncompressionBytes(InputStream in, int byteNumber)
public int calculateRecordNumber()
public Hashtable getRecordValues(int i)
public long getStreamTime()
public int getBytesNumber()
public void addRecord(Hashtable data)
public void addRecord(Hashtable data, int s)
public void deleteRecord(int index)
public boolean isWrong()
public int indexOfData(Hashtable dataKeys)
public int getRecordIndex(Hashtable kv)
public Hashtable getColumnSQLTypes()
public void setColumnSQLTypes(Hashtable types)
public int getColumnSQLType(String col)
public void setOperationId(String opId)
public List getOrderColumns()
public void setColumnOrder(List l)
public static void main(String[] args)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.