|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ados.hestia.utils.db.WhereDescriptor
public class WhereDescriptor
This class represent conditions for database operations
Used at processor at get, delete, size methods
Processor
Field Summary | |
---|---|
static int |
AND
|
static int |
EQUAL
|
static int |
EQUALGREATER
|
static int |
EQUALLESS
|
static int |
GREATER
|
static int |
LESS
|
static int |
LIKE
|
protected ArrayList<Integer> |
m_comparations
|
protected ArrayList<Integer> |
m_indexes
|
protected ArrayList<Integer> |
m_logicals
|
protected ArrayList<Object> |
m_objects
|
static int |
NOTEQUAL
|
static int |
OR
|
Constructor Summary | |
---|---|
WhereDescriptor()
Construct. |
Method Summary | |
---|---|
void |
addCondition(Object object,
int index,
int logical,
int comparation)
Add condition to descriptor. |
int |
getCnt()
Returns number of conditions at descriptor. |
int |
getComparation(int index)
Returns type of comparation of specific condition EQUAL .. |
int |
getIndex(int index)
Returns index of column of specific condition. |
int |
getLogical(int index)
Get type how to combine with another conditions. |
Object |
getObject(int index)
Returns object of specific condtion. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int OR
public static final int AND
public static final int EQUAL
public static final int NOTEQUAL
public static final int LESS
public static final int GREATER
public static final int EQUALGREATER
public static final int EQUALLESS
public static final int LIKE
protected ArrayList<Object> m_objects
protected ArrayList<Integer> m_indexes
protected ArrayList<Integer> m_logicals
protected ArrayList<Integer> m_comparations
Constructor Detail |
---|
public WhereDescriptor()
Method Detail |
---|
public void addCondition(Object object, int index, int logical, int comparation)
object
- object of condition. Type of it depended from column.index
- index of column.logical
- how to add. ADD or OR.comparation
- how to compare entries. EQUAL .. EQUALLESS.public int getCnt()
public Object getObject(int index)
index
- index of condition.
public int getIndex(int index)
index
- index of condition.
public int getLogical(int index)
index
- index of condition.
public int getComparation(int index)
index
- index of condition.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |