|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dke.smwp.serialize.SerializeTupleModification | +--dke.smwp.serialize.SerializeIncrementalImpl
implementation of serialization strategy "coreSMWP". triggeredFragmentDeletion / -insertion / -modification
The TColumnTable object parameters represent tuples which where inserted / deleted / updated in the Fragmentation Relation of a Fragment Class. There tuples represent the fragmentation parameter of a fragment.
If the Fragment Class - whose Fragmentation Relation was modified - is mapped to a Page Class a new page (xml document) will be created for every Page Class it is mapped to, while the old pages will be deleted. If the Fragment Class is not mapped to any Page Class nothing happens.
triggeredSerializeFragmentDeletion /- insertion / -modification
If the Fragment Class whose relation was modified - is mapped to a Page Class its pages (designated by the fragmentation parameter values of the tuple) are to be updated.
Field Summary | |
static java.lang.String |
MAINTENANCE_MODE
|
Fields inherited from class dke.smwp.serialize.SerializeTupleModification |
_instance, DEBUG |
Constructor Summary | |
protected |
SerializeIncrementalImpl()
default constructor |
Method Summary | |
protected void |
modifyPagesIncr(java.sql.Connection con,
PageSer[] pages,
TupleModificationDescr mod)
modifies pages (xml documents) which are to be modified |
void |
serializeFragmentDeletion(java.sql.Connection con,
java.lang.String fc_longName,
TColumnTable oldTuple)
deletes published pages (xml documents) |
void |
serializeFragmentInsertion(java.sql.Connection con,
java.lang.String fc_longName,
TColumnTable newTuple)
creates new Page Class/pages as xml documents |
void |
serializeFragmentModification(java.sql.Connection con,
java.lang.String fc_longName,
TColumnTable oldTuple,
TColumnTable newTuple)
updates published Page Class/pages (xml documents) by deleting old pages designated by fragmentation parameter values of oldTuple and
creating new pages designated by newTuple |
void |
serializeTupleDeletion(java.sql.Connection con,
java.lang.String fcName,
java.lang.String rowId,
TColumnTable oldTuple)
deletes tuple data from affected page |
void |
serializeTupleInsertion(java.sql.Connection con,
java.lang.String fcName,
java.lang.String rowId,
TColumnTable newTuple)
inserts tuple data into affected page |
void |
serializeTupleModification(java.sql.Connection con,
java.lang.String fcName,
java.lang.String rowId,
TColumnTable oldTuple,
TColumnTable newTuple)
updates Page Class/pages (xml documents) |
Methods inherited from class dke.smwp.serialize.SerializeTupleModification |
buildModificationDescrObj, getFragmentParameters, getInstance, tupleAsXMLTuple |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final java.lang.String MAINTENANCE_MODE
Constructor Detail |
protected SerializeIncrementalImpl()
Method Detail |
protected void modifyPagesIncr(java.sql.Connection con, PageSer[] pages, TupleModificationDescr mod) throws org.xml.sax.SAXException, java.sql.SQLException, java.io.IOException
con
- Connection handlepages
- Page Class-pages which are to be modifiedmod
- modification descriptionorg.xml.sax.SAXException
- creating / parsing xml documents failedjava.sql.SQLException
- fetching data failedjava.io.IOException
- reading / writing xml documents failedpublic void serializeFragmentDeletion(java.sql.Connection con, java.lang.String fc_longName, TColumnTable oldTuple) throws java.io.IOException, java.sql.SQLException, org.xml.sax.SAXException
serializeFragmentDeletion
in class SerializeTupleModification
con
- Connection handlefc_longName
- name of Fragment Class where a fragment is being deletedoldTuple
- fragmentation parameters for fragment,
which is to be deletedjava.io.IOException
- reading / writing xml document failedjava.sql.SQLException
- fetching data failedorg.xml.sax.SAXException
- generating / parsing xml document(s) failedpublic void serializeFragmentInsertion(java.sql.Connection con, java.lang.String fc_longName, TColumnTable newTuple) throws java.sql.SQLException, java.io.IOException, org.xml.sax.SAXException
serializeFragmentInsertion
in class SerializeTupleModification
con
- Connection handlefc_longName
- name of Fragment Class which gains a new fragmentnewTuple
- fragmentation parmeters of new fragmentjava.sql.SQLException
- fetching data failedjava.io.IOException
- writing xml document failedorg.xml.sax.SAXException
- creating xml document failedpublic void serializeFragmentModification(java.sql.Connection con, java.lang.String fc_longName, TColumnTable oldTuple, TColumnTable newTuple) throws java.io.IOException, java.sql.SQLException, org.xml.sax.SAXException
oldTuple
and
creating new pages designated by newTuple
serializeFragmentModification
in class SerializeTupleModification
con
- Connection handlefc_longName
- name of Fragment Class in which a fragment is updatedoldTuple
- fragmentation parameters of old tuplenewTuple
- fragmentation parameters of new tuplejava.sql.SQLException
- fetching data failedjava.io.IOException
- writing xml document failedorg.xml.sax.SAXException
- creating xml document failedpublic void serializeTupleModification(java.sql.Connection con, java.lang.String fcName, java.lang.String rowId, TColumnTable oldTuple, TColumnTable newTuple) throws java.io.IOException, java.sql.SQLException, org.xml.sax.SAXException
serializeTupleModification
in class SerializeTupleModification
con
- Connection objectfcName
- fragment class name (whose Fragment Class
relation was updated)rowId
- row id from the updated tupleoldTuple
- tuple whose data is replaced by the new tuplenewTuple
- tuple whose data replaces the old tuplejava.io.IOException
- reading / writing xml document failedjava.sql.SQLException
- fetching data failedorg.xml.sax.SAXException
- generating / parsing xml document(s) failedpublic void serializeTupleInsertion(java.sql.Connection con, java.lang.String fcName, java.lang.String rowId, TColumnTable newTuple) throws java.io.IOException, java.sql.SQLException, org.xml.sax.SAXException
serializeTupleInsertion
in class SerializeTupleModification
con
- Connection objectfcName
- fragment class realtion which was updatedrowId
- row id of the inserted tuplenewTuple
- data of inserted tuplejava.io.IOException
- reading / writing xml document failedjava.sql.SQLException
- fetching data failedorg.xml.sax.SAXException
- generating / parsing xml document(s) failedpublic void serializeTupleDeletion(java.sql.Connection con, java.lang.String fcName, java.lang.String rowId, TColumnTable oldTuple) throws java.io.IOException, java.sql.SQLException, org.xml.sax.SAXException
serializeTupleDeletion
in class SerializeTupleModification
con
- Connection handlefcName
- name of fragment class, where the tuple was deletedrowId
- rowid of deleted tupleoldTuple
- data of deleted tuplejava.io.IOException
- reading / writing xml document failedjava.sql.SQLException
- fetching data failedorg.xml.sax.SAXException
- generating / parsing xml document(s) failed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |