xmlBlaster 2.2.0 contributions API

org.xmlBlaster.contrib.dbwriter.info
Class SqlRow

java.lang.Object
  extended by org.xmlBlaster.contrib.dbwriter.info.SqlRow

public class SqlRow
extends java.lang.Object


Field Summary
static java.lang.String COL_TAG
           
static java.lang.String NUM_ATTR
           
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.
protected  java.lang.Object clone()
           
 SqlRow cloneRow()
           
 org.xmlBlaster.util.qos.ClientProperty getAttribute(java.lang.String key)
          Returns the requested attribute.
 java.lang.String[] getAttributeNames()
           
 java.lang.String getColsRawContent()
           
 org.xmlBlaster.util.qos.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.
 void setAttribute(org.xmlBlaster.util.qos.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)
           
 void setColumn(org.xmlBlaster.util.qos.ClientProperty value)
          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

ROW_TAG

public static final java.lang.String ROW_TAG
See Also:
Constant Field Values

COL_TAG

public static final java.lang.String COL_TAG
See Also:
Constant Field Values

NUM_ATTR

public static final java.lang.String NUM_ATTR
See Also:
Constant Field Values
Constructor Detail

SqlRow

public SqlRow(I_Info info,
              int position)
Method Detail

cloneRow

public SqlRow cloneRow()

clone

protected java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getAttributeNames

public java.lang.String[] getAttributeNames()

getColumnNames

public java.lang.String[] getColumnNames()

getAttribute

public org.xmlBlaster.util.qos.ClientProperty getAttribute(java.lang.String key)
Returns the requested attribute. If 'caseSensitive' has been set, the characters of the key are compared case sensitively. If it is set to false, then it first searches for the case sensitive match, if nothing is found it looks for the lowercase of the key, and finally if still no match it looks for the uppercase alternative. If none of these is found, null is returned.

Parameters:
key - the key of the attribute
Returns:
the ClientProperty object associated with the key, or if none found, null is returned.

setAttribute

public void setAttribute(org.xmlBlaster.util.qos.ClientProperty value)
Stores the client property as a new value. It it exists already it is overwritten.

Parameters:
value - the value to store as an attribute.

setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.String value)
Stores the String as a new value. The passed String is directly transformed into a ClientProperty object.

Parameters:
value - the value to store as an attribute.

addAttributes

public void addAttributes(java.util.Map map)
It copies (stores) all entries found in the map into the attributes. As values only String and ClientProperty objects are allowed. If another type is found, an IllegalArgumentException is thrown. If null is passed, nothing is done.

Parameters:
map -

getColumn

public org.xmlBlaster.util.qos.ClientProperty getColumn(java.lang.String key)

setColumn

public void setColumn(org.xmlBlaster.util.qos.ClientProperty value)
Stores the client property as a new value. Note that it is not allowed to store an attribute with the same name multiple times.

Parameters:
value - the value to store as an attribute.
Throws:
java.lang.IllegalArgumentException - if the entry already existed, if the value is null or if the raw columns have already been set.

renameColumn

public void renameColumn(java.lang.String oldName,
                         java.lang.String newName)
                  throws java.lang.Exception
Renames the given column. If a column with the new name exists, it is first removed.

Parameters:
oldName -
newName -
Throws:
java.lang.Exception - if one of the names is null

toXml

public java.lang.String toXml(java.lang.String extraOffset)

toXml

public java.lang.String toXml(java.lang.String extraOffset,
                              boolean withRowTag)

toXml

public final java.lang.String toXml(java.lang.String extraOffset,
                                    boolean withRowTag,
                                    boolean doTruncate,
                                    boolean forceReadable)

isCaseSensitive

public boolean isCaseSensitive()

setCaseSensitive

public void setCaseSensitive(boolean caseSensitive)

getColsRawContent

public java.lang.String getColsRawContent()

xmlBlaster 2.2.0 contributions API

Copyright © 1999-2014 The xmlBlaster.org contributers.