|
xmlBlaster 1.6.2 contributions API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xmlBlaster.contrib.dbwriter.info.SqlDescription
This info object is mainly used for two purposes: the one is the parsed object returned by each message. The other is as an info object for each table in the replication (hold in cache to contain meta information of the table on which to perform the operations (either INSERT, UPDATE or DELETE).
| Field Summary | |
static java.lang.String |
COMMAND_TAG
|
static java.lang.String |
DESC_TAG
|
static java.lang.String |
IDENT_TAG
|
static java.lang.String |
ME
|
| Constructor Summary | |
SqlDescription(I_Info info)
|
|
| Method Summary | |
void |
addAttributes(java.util.Map map)
It copies (stores) all entries found in the map into the attributes. |
void |
addColumn(SqlColumn column)
|
void |
clearColumnDescriptions()
|
int |
delete(java.sql.Connection conn,
SqlRow row)
Returns the number of entries deleted |
org.xmlBlaster.util.qos.ClientProperty |
getAttribute(java.lang.String key)
Returns the requested attribute. |
java.lang.String[] |
getAttributeNames()
|
java.util.Map |
getAttributesClone()
|
java.lang.String |
getCatalog()
Gets the name of the schema. |
SqlColumn |
getColumn(java.lang.String colName)
|
SqlColumn |
getColumnAtPosition(int pos)
Gets the column at position given by pos. |
SqlColumn[] |
getColumns()
|
java.lang.String |
getCommand()
|
java.lang.String |
getCompleteTableName()
|
static java.lang.String |
getDifferences(SqlDescription description1,
SqlDescription description2)
|
java.lang.String |
getIdentity()
|
int |
getNumOfColumns()
|
java.lang.String |
getSchema()
Gets the name of the schema. |
int |
insert(java.sql.Connection conn,
SqlRow row)
Returns the number of entries inserted |
boolean |
isColumnSearchConfigured(java.lang.String column)
|
static void |
main(java.lang.String[] args)
|
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 |
setCommand(java.lang.String command)
|
void |
setIdentity(java.lang.String identity)
|
java.lang.String |
toXml(java.lang.String extraOffset)
|
int |
update(java.sql.Connection conn,
SqlRow newRow,
I_Parser parserForOld)
Returns the number of entries updated |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String ME
public static final java.lang.String DESC_TAG
public static final java.lang.String IDENT_TAG
public static final java.lang.String COMMAND_TAG
| Constructor Detail |
public SqlDescription(I_Info info)
| Method Detail |
public java.lang.String getSchema()
public java.lang.String getCompleteTableName()
public java.lang.String getCatalog()
public java.lang.String[] getAttributeNames()
public void clearColumnDescriptions()
public java.util.Map getAttributesClone()
public org.xmlBlaster.util.qos.ClientProperty getAttribute(java.lang.String key)
key - the key of the attribute
public void setAttribute(org.xmlBlaster.util.qos.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 int update(java.sql.Connection conn,
SqlRow newRow,
I_Parser parserForOld)
throws java.lang.Exception
conn -
java.lang.Exception
public int delete(java.sql.Connection conn,
SqlRow row)
throws java.lang.Exception
conn - row -
java.lang.Exception
public int insert(java.sql.Connection conn,
SqlRow row)
throws java.lang.Exception
conn - row -
java.lang.Exceptionpublic java.lang.String getCommand()
public void setCommand(java.lang.String command)
public java.lang.String getIdentity()
public void setIdentity(java.lang.String identity)
public void addColumn(SqlColumn column)
public SqlColumn[] getColumns()
public SqlColumn getColumn(java.lang.String colName)
public int getNumOfColumns()
public SqlColumn getColumnAtPosition(int pos)
pos -
java.lang.IllegalArgumentException - if the number is less than 1 or bigger than the size of the list or if for some reason the entry has not been found.public java.lang.String toXml(java.lang.String extraOffset)
public static java.lang.String getDifferences(SqlDescription description1,
SqlDescription description2)
public static void main(java.lang.String[] args)
public boolean isColumnSearchConfigured(java.lang.String column)
column - the name of the column to check or null if a global check for the table.
|
xmlBlaster 1.6.2 contributions API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||