|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.access.trans.LOBBatchQueryWrapper
public class LOBBatchQueryWrapper
Helper class to extract the information from BatchQueries, essential for LOB columns processing.
Field Summary | |
---|---|
protected boolean[] |
allLOBAttributes
|
protected List<DbAttribute> |
dbAttributes
|
protected boolean |
hasNext
|
protected boolean[] |
qualifierAttributes
|
protected BatchQuery |
query
|
protected Object[] |
updatedLOBAttributes
|
Constructor Summary | |
---|---|
LOBBatchQueryWrapper(BatchQuery query)
|
Method Summary | |
---|---|
protected byte[] |
convertToBlobValue(Object value)
Converts value to byte[] if possible. |
protected Object |
convertToClobValue(Object value)
Converts to char[] or String. |
List<DbAttribute> |
getDbAttributesForLOBSelectQualifier()
Returns a list of DbAttributes used in the qualifier of the query that selects a LOB row for LOB update. |
List<DbAttribute> |
getDbAttributesForUpdatedLOBColumns()
Returns a list of DbAttributes that correspond to the LOB columns updated in the current row in the batch query. |
BatchQuery |
getQuery()
Returns wrapped BatchQuery. |
List |
getValuesForLOBSelectQualifier()
|
List |
getValuesForUpdatedLOBColumns()
|
protected void |
indexLOBAttributes()
Indexes attributes |
protected void |
indexQualifierAttributes()
Indexes attributes |
boolean |
next()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BatchQuery query
protected List<DbAttribute> dbAttributes
protected boolean[] qualifierAttributes
protected boolean[] allLOBAttributes
protected Object[] updatedLOBAttributes
protected boolean hasNext
Constructor Detail |
---|
public LOBBatchQueryWrapper(BatchQuery query)
Method Detail |
---|
public boolean next()
protected void indexQualifierAttributes()
protected void indexLOBAttributes()
protected byte[] convertToBlobValue(Object value)
protected Object convertToClobValue(Object value)
public List<DbAttribute> getDbAttributesForLOBSelectQualifier()
public List<DbAttribute> getDbAttributesForUpdatedLOBColumns()
public List getValuesForLOBSelectQualifier()
public List getValuesForUpdatedLOBColumns()
public BatchQuery getQuery()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |