|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.prefetch.KeySelect
public class KeySelect
Encapsulates data and statement generation logic for prefetching slices of indexes. This includes holding the key definition as well as the associated values we are selecting from the key.
| Constructor Summary | |
|---|---|
KeySelect(Table table,
Key key)
Create a new instance. |
|
| Method Summary | |
|---|---|
java.lang.String |
createPrefetchSelect()
Creates generic prefetch prepared statement text appropriate to the index type including drop-outs for key values. |
java.lang.String |
generateKey()
Returns a reasonably efficient key for this select that incorporates both the fully qualified key name as well as select values. |
Key |
getKey()
|
long |
getLastInvocation()
|
Table |
getTable()
|
java.lang.Object |
getValue(int index)
Gets a column value by index. |
java.lang.Object |
getValue(java.lang.String colName)
Gets a column value by name. |
java.util.List<java.lang.Object> |
getValues()
|
boolean |
hasNulls()
Returns true if any of the values in the key select is a null. |
void |
setLastInvocation(long lastInvocation)
|
void |
setValue(int index,
java.lang.Object value)
Sets a column value for the select. |
void |
setValue(java.lang.String colName,
java.lang.Object value)
Sets a column value for the select. |
int |
size()
Returns the number of columns in the key. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KeySelect(Table table,
Key key)
| Method Detail |
|---|
public Table getTable()
public Key getKey()
public java.util.List<java.lang.Object> getValues()
public long getLastInvocation()
public void setLastInvocation(long lastInvocation)
public int size()
public boolean hasNulls()
public void setValue(int index,
java.lang.Object value)
throws ReplicatorException
index - Column index in key where 1 is the first indexvalue - Value to set
ReplicatorExceptionpublic java.lang.Object getValue(int index)
index - Column index in key where 1 is the first index
public void setValue(java.lang.String colName,
java.lang.Object value)
throws ReplicatorException
colName - Name of the column in keyvalue - Value to set
ReplicatorException
public java.lang.Object getValue(java.lang.String colName)
throws ReplicatorException
colName - Name of the column in key
ReplicatorExceptionpublic java.lang.String createPrefetchSelect()
public java.lang.String generateKey()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||