com.ontimize.db
Class EntityResult
java.lang.Object
java.util.Dictionary
java.util.Hashtable
com.ontimize.db.EntityResult
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- Direct Known Subclasses:
- AdvancedEntityResult
- public class EntityResult
- extends java.util.Hashtable
- See Also:
- Serialized Form
|
Constructor Summary |
EntityResult()
Creates a EntityResult with code = OPERATION_SUCCESSFUL and type =
NODATA_RESULT |
EntityResult(java.util.Hashtable h)
|
EntityResult(int operationCode,
int resultType)
|
EntityResult(int operationCode,
int resultType,
java.lang.String resultMessage)
|
EntityResult(java.util.List columns)
|
| Methods inherited from class java.util.Hashtable |
equals, hashCode, rehash |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
DEBUG
public static boolean DEBUG
OPERATION_SUCCESSFUL
public static final int OPERATION_SUCCESSFUL
- See Also:
- Constant Field Values
OPERATION_SUCCESSFUL_SHOW_MESSAGE
public static final int OPERATION_SUCCESSFUL_SHOW_MESSAGE
- See Also:
- Constant Field Values
OPERATION_WRONG
public static final int OPERATION_WRONG
- See Also:
- Constant Field Values
DATA_RESULT
public static final int DATA_RESULT
- See Also:
- Constant Field Values
NODATA_RESULT
public static final int NODATA_RESULT
- See Also:
- Constant Field Values
DEFAULT_COMPRESSION_THRESHOLD
public static final int DEFAULT_COMPRESSION_THRESHOLD
- See Also:
- Constant Field Values
NO_COMPRESSION
public static final int NO_COMPRESSION
- See Also:
- Constant Field Values
BEST_COMPRESSION
public static final int BEST_COMPRESSION
- See Also:
- Constant Field Values
BEST_SPEED
public static final int BEST_SPEED
- See Also:
- Constant Field Values
DEFAULT_COMPRESSION
public static final int DEFAULT_COMPRESSION
- See Also:
- Constant Field Values
HUFFMAN_ONLY
public static final int HUFFMAN_ONLY
- See Also:
- Constant Field Values
MIN_BYTE_PROGRESS
protected int MIN_BYTE_PROGRESS
compressionThreshold
protected int compressionThreshold
- Compression Threshold.
type
protected int type
code
protected int code
message
protected java.lang.String message
messageParameter
protected java.lang.Object[] messageParameter
detail
protected java.lang.String detail
operationId
protected java.lang.String operationId
columnsOrder
protected java.util.List columnsOrder
data
protected transient java.util.Hashtable data
- Object needed for the compression mechanism
compressionLevel
protected transient int compressionLevel
dataByteNumber
protected transient int dataByteNumber
streamTime
protected transient long streamTime
columnsSQLTypes
protected java.util.Hashtable columnsSQLTypes
EntityResult
public EntityResult()
- Creates a EntityResult with code = OPERATION_SUCCESSFUL and type =
NODATA_RESULT
EntityResult
public EntityResult(java.util.List columns)
EntityResult
public EntityResult(java.util.Hashtable h)
EntityResult
public EntityResult(int operationCode,
int resultType)
EntityResult
public EntityResult(int operationCode,
int resultType,
java.lang.String resultMessage)
getType
public int getType()
getCode
public int getCode()
getMessage
public java.lang.String getMessage()
getDetails
public java.lang.String getDetails()
setType
public void setType(int operationType)
setCode
public void setCode(int operationCode)
setMessage
public void setMessage(java.lang.String operationMessage)
setMessageParameters
public void setMessageParameters(java.lang.Object[] params)
getMessageParameter
public java.lang.Object[] getMessageParameter()
setMessage
public void setMessage(java.lang.String operationMessage,
java.lang.String operationDetails)
clear
public void clear()
contains
public boolean contains(java.lang.Object value)
containsKey
public boolean containsKey(java.lang.Object key)
containsValue
public boolean containsValue(java.lang.Object value)
elements
public java.util.Enumeration elements()
clone
public java.lang.Object clone()
deepClone
public EntityResult deepClone()
entrySet
public java.util.Set entrySet()
get
public java.lang.Object get(java.lang.Object key)
get
public java.lang.Object get(java.lang.Object cod,
java.lang.Object attr)
isEmpty
public boolean isEmpty()
keys
public java.util.Enumeration keys()
keySet
public java.util.Set keySet()
put
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
putAll
public void putAll(java.util.Map m)
remove
public java.lang.Object remove(java.lang.Object key)
size
public int size()
toString
public java.lang.String toString()
values
public java.util.Collection values()
setCompressionLevel
public void setCompressionLevel(int level)
setCompressionThreshold
public void setCompressionThreshold(int threshold)
getCompressionThreshold
public int getCompressionThreshold()
compressionBytes
protected byte[] compressionBytes(byte[] bytesToCompress,
int compressionLevel)
uncompressionBytes
protected byte[] uncompressionBytes(byte[] bytesADescomprimir)
uncompressionBytes
protected byte[] uncompressionBytes(java.io.InputStream in,
int byteNumber)
calculateRecordNumber
public int calculateRecordNumber()
getRecordValues
public java.util.Hashtable getRecordValues(int i)
getRecordValues
public java.util.Hashtable getRecordValues(int i,
java.util.Vector vKeys)
getStreamTime
public long getStreamTime()
getBytesNumber
public int getBytesNumber()
addRecord
public void addRecord(java.util.Hashtable data)
addRecord
public void addRecord(java.util.Hashtable data,
int s)
deleteRecord
public void deleteRecord(int index)
isWrong
public boolean isWrong()
- Returns true when code is equals to {@value}.
- Returns:
- condition about successful/wrong state
- Since:
- 5.2068EN-0.1
indexOfData
public int indexOfData(java.util.Hashtable dataKeys)
getRecordIndex
public int getRecordIndex(java.util.Hashtable kv)
getColumnSQLTypes
public java.util.Hashtable getColumnSQLTypes()
setColumnSQLTypes
public void setColumnSQLTypes(java.util.Hashtable types)
getColumnSQLType
public int getColumnSQLType(java.lang.String col)
setOperationId
public void setOperationId(java.lang.String opId)
getOrderColumns
public java.util.List getOrderColumns()
setColumnOrder
public void setColumnOrder(java.util.List l)