|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.moredata.xml2db.Table
| Constructor Summary | |
Table(java.lang.String _name)
Creates a table model for name without base xPath and without multi record |
|
Table(java.lang.String _name,
java.lang.String _xPath)
Creates a table model for name with base xPath and without multi record |
|
Table(java.lang.String _name,
java.lang.String _xPath,
java.lang.String _recordTag)
Creates a table model for name with base xPath and with multi record |
|
| Method Summary | |
void |
addColumn(Column c)
Add a column definition to the table |
void |
addKey(Column c)
Add a column definition to the table keys |
void |
afterGroupInsertAction()
Method that is executed by ReadXML2DB once for each record to be inserted after the insertAction, you'll have to rewrite this if you need something to hapen after the insert, i.e. update a char field to lower |
void |
afterInsertAction()
Method that is executed by ReadXML2DB once for each record to be inserted after the insertAction, you'll have to rewrite this if you need something to hapen after the insert, i.e. update a char field to lower |
void |
beforeGroupInsertAction()
Method that is executed by ReadXML2DB before any record is inserted and before the beforeInsertAction, you'll have to rewrite this if you need something to hapen before the insert, i.e. get a FK |
void |
beforeInsertAction()
Method that is executed by ReadXML2DB once for each record to be inserted before the insertAction, you'll have to rewrite this if you need something to hapen before the insert, i.e. get a FK |
void |
changeInsertToUpdate()
Method that changes action from insert to update, and there is no turning back |
void |
defaultInsertAction()
Method that executs the default insertAction |
void |
defaultUpdateAction()
Method that executs the default updateAction |
Column |
getColumn(java.lang.String _name)
Return a column reference |
java.util.Iterator |
getColumns()
Return an iterator for the column definitions of the table |
boolean |
getDisposable()
Method that sets disposabilaty of the table |
java.sql.PreparedStatement |
getInsertAction()
Method that returns the default insert prepared statement, with the fields set for the values of the current column values |
java.util.Iterator |
getKeys()
Return an iterator for the key definitions of the table |
java.lang.String |
getName()
Returns the name of the table |
java.lang.String |
getRecordTag()
Returns the tag that defines a record |
java.sql.PreparedStatement |
getUpdateAction()
Method that returns the default update prepared statement, with the fields set for the values of the current column values |
java.lang.Object |
getValue(java.lang.String _name)
Gets the value of column name, null if doesn't exist(or if is realy null) |
java.lang.String |
getXPath()
Return the xPath |
void |
insertAction()
Method that is executed by ReadXML2DB once for each record to be inserted, you'll have to rewrite this if you need something to happen imediately be- fore or after de insert command, i.e. get a serial |
boolean |
isMultiRecord()
Returns true if this table was defined as multi record table |
void |
setConnection(java.sql.Connection _con)
Method that sets the connection, and gets the classes of the fields from de DB |
void |
setDisposable(boolean _disposable)
Method that sets disposabilaty of the table |
void |
setKeyValue(java.lang.String _name,
java.lang.Object _value)
Sets the value of key column name, if the column definition doesn't exists it creates it |
void |
setValue(java.lang.String _name,
java.lang.Object _value)
Sets the value of column name, if the column definition doesn't exists it creates it |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Table(java.lang.String _name)
_name -
public Table(java.lang.String _name,
java.lang.String _xPath)
_name - _xPath -
public Table(java.lang.String _name,
java.lang.String _xPath,
java.lang.String _recordTag)
_name - _xPath - _recordTag - | Method Detail |
public void beforeGroupInsertAction()
throws java.sql.SQLException
java.sql.SQLException
public void beforeInsertAction()
throws java.sql.SQLException
java.sql.SQLException
public void insertAction()
throws java.sql.SQLException
java.sql.SQLException
public void afterGroupInsertAction()
throws java.sql.SQLException
java.sql.SQLException
public void afterInsertAction()
throws java.sql.SQLException
java.sql.SQLException
public void defaultInsertAction()
throws java.sql.SQLException
java.sql.SQLException
public void defaultUpdateAction()
throws java.sql.SQLException
java.sql.SQLException
public java.sql.PreparedStatement getInsertAction()
throws java.sql.SQLException
java.sql.SQLException
public java.sql.PreparedStatement getUpdateAction()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setConnection(java.sql.Connection _con)
_con - public void setDisposable(boolean _disposable)
public void changeInsertToUpdate()
public boolean getDisposable()
public java.lang.String getName()
public boolean isMultiRecord()
public java.lang.String getRecordTag()
public java.lang.String getXPath()
public void addColumn(Column c)
c - public void addKey(Column c)
c -
public void setValue(java.lang.String _name,
java.lang.Object _value)
_name - _value -
public void setKeyValue(java.lang.String _name,
java.lang.Object _value)
_name - _value - public java.lang.Object getValue(java.lang.String _name)
_name -
public java.util.Iterator getColumns()
public Column getColumn(java.lang.String _name)
public java.util.Iterator getKeys()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||