|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DeserializationHandler
A DeserializationHandler instance handles the deserialization of the CDATA of content of a tag to a database column.
Method Summary | |
---|---|
void |
addCharacters(char[] ch,
int start,
int length)
Push characters received by ContentHandler.characters(char[], int, int)
to the field content. |
void |
fillColumn(PreparedStatement ps,
int column)
Fill the column of the given prepared statement with the data received so far. |
void |
startCharacters()
Start receiving data. |
Method Detail |
---|
void startCharacters()
ContentHandler.startElement(String, String, String, org.xml.sax.Attributes)
operation.
void addCharacters(char[] ch, int start, int length)
ContentHandler.characters(char[], int, int)
to the field content.
This method throws an exception, startCharacters()
has not been called before.
ch
- The character array.start
- The start index of the data to push.length
- The length of the data to push.void fillColumn(PreparedStatement ps, int column) throws SQLException
startCharacters()
has not been called
before, set the column to an SQL null value.
This call resets the state of this handler, so startCharacters()
may be called
again.
ps
- The PreparedStatement to fill.column
- The number of the column to set.
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |