|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.contrib.dbwriter.info.SqlRow
public class SqlRow
Field Summary | |
---|---|
private java.util.List |
attributeKeys
|
private java.util.Map |
attributes
Contains the attributes of this row. |
private boolean |
caseSensitive
|
static java.lang.String |
COL_TAG
|
private java.lang.String |
colsRawContent
If this is set, then no columns must be filled and this is used to print it out as xml |
private java.util.List |
columnKeys
|
private java.util.Map |
columns
Contains the colums of this row. |
static java.lang.String |
NUM_ATTR
|
private int |
position
|
static java.lang.String |
ROW_TAG
|
Constructor Summary | |
---|---|
SqlRow(I_Info info,
int position)
|
Method Summary | |
---|---|
void |
addAttributes(java.util.Map map)
It copies (stores) all entries found in the map into the attributes. |
private static void |
addCopyOfAttributesAndColumns(SqlRow source,
SqlRow dest)
|
(package private) static void |
addProps(java.util.Map map,
java.util.Map destinationMap,
java.util.List destinationList)
It copies (stores) all entries found in the map into the attributes. |
protected java.lang.Object |
clone()
|
SqlRow |
cloneRow()
|
private static java.lang.String |
findStringEntry(java.lang.String name,
java.util.List list,
boolean doRemove)
returns the client property with the given name out of the list. |
ClientProperty |
getAttribute(java.lang.String key)
Returns the requested attribute. |
java.lang.String[] |
getAttributeNames()
|
java.lang.String |
getColsRawContent()
|
ClientProperty |
getColumn(java.lang.String key)
|
java.lang.String[] |
getColumnNames()
|
boolean |
isCaseSensitive()
|
void |
renameColumn(java.lang.String oldName,
java.lang.String newName)
Renames the given column. |
(package private) static void |
renameProp(java.lang.String oldName,
java.lang.String newName,
java.util.Map map,
java.util.List list)
Renames the given Property. |
void |
setAttribute(ClientProperty value)
Stores the client property as a new value. |
void |
setAttribute(java.lang.String key,
java.lang.String value)
Stores the String as a new value. |
void |
setCaseSensitive(boolean caseSensitive)
|
(package private) void |
setColsRawContent(java.lang.String colsRawContent)
Used when filling one row directly from a result set (not by explicit setters). |
void |
setColumn(ClientProperty value)
Stores the client property as a new value. |
(package private) static void |
storeProp(ClientProperty value,
java.util.Map map,
java.util.List list)
Stores the client property as a new value. |
java.lang.String |
toXml(java.lang.String extraOffset)
|
java.lang.String |
toXml(java.lang.String extraOffset,
boolean withRowTag)
|
java.lang.String |
toXml(java.lang.String extraOffset,
boolean withRowTag,
boolean doTruncate,
boolean forceReadable)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ROW_TAG
public static final java.lang.String COL_TAG
public static final java.lang.String NUM_ATTR
private java.util.Map attributes
private java.util.Map columns
private java.util.List attributeKeys
private java.util.List columnKeys
private int position
private boolean caseSensitive
private java.lang.String colsRawContent
Constructor Detail |
---|
public SqlRow(I_Info info, int position)
Method Detail |
---|
private static final void addCopyOfAttributesAndColumns(SqlRow source, SqlRow dest)
public SqlRow cloneRow()
protected java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String[] getAttributeNames()
public java.lang.String[] getColumnNames()
static final void addProps(java.util.Map map, java.util.Map destinationMap, java.util.List destinationList)
map
- private static final java.lang.String findStringEntry(java.lang.String name, java.util.List list, boolean doRemove)
list
- doRemove
- if true, the entry is removed.
static final void renameProp(java.lang.String oldName, java.lang.String newName, java.util.Map map, java.util.List list) throws java.lang.Exception
oldName
- The name of the property to replace. If null an exception is thrown.newName
- The new name of the property. If null, an exception is thrown.map
- The map on which to operate.list
- The list on which to operate.
java.lang.Exception
static final void storeProp(ClientProperty value, java.util.Map map, java.util.List list)
value
- the value to store as an attribute.public ClientProperty getAttribute(java.lang.String key)
key
- the key of the attribute
public void setAttribute(ClientProperty value)
value
- the value to store as an attribute.public void setAttribute(java.lang.String key, java.lang.String value)
value
- the value to store as an attribute.public void addAttributes(java.util.Map map)
map
- public ClientProperty getColumn(java.lang.String key)
public void setColumn(ClientProperty value)
value
- the value to store as an attribute.
java.lang.IllegalArgumentException
- if the entry already existed, if the value is null or if the raw columns have already been set.public void renameColumn(java.lang.String oldName, java.lang.String newName) throws java.lang.Exception
oldName
- newName
-
java.lang.Exception
- if one of the names is nullpublic java.lang.String toXml(java.lang.String extraOffset)
public java.lang.String toXml(java.lang.String extraOffset, boolean withRowTag)
public final java.lang.String toXml(java.lang.String extraOffset, boolean withRowTag, boolean doTruncate, boolean forceReadable)
public boolean isCaseSensitive()
public void setCaseSensitive(boolean caseSensitive)
public java.lang.String getColsRawContent()
void setColsRawContent(java.lang.String colsRawContent)
colsRawContent
-
java.lang.IllegalStateException
- if at least one column has already been set.
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |