|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectNode
DatabaseNode
public class DatabaseNode
DOCUMENT ME!
trunk/gt/modules
(gt-modules.jar
) (Maven report) (SVN head)Field Summary |
---|
Fields inherited from class Node |
---|
bounds, entries, entriesCount, isChanged, maxNodeEntries |
Constructor Summary | |
---|---|
DatabaseNode(int maxNodeEntries,
DataSource ds,
Dialect dialect,
String tableName)
Constructor |
|
DatabaseNode(int maxNodeEntries,
DataSource ds,
Dialect dialect,
String tableName,
Integer pageId)
Constructor that retrieves data from the db |
Method Summary | |
---|---|
protected void |
doInsert(Connection cnn,
byte[] bytes)
Inserts this Node into the database |
protected void |
doSave()
Saves this Node ; called from save() |
protected void |
doUpdate(Connection cnn,
byte[] bytes)
Update the databse with this Node informations |
protected Entry |
getEntry(Node node)
Returns the Entry pointing the specified Node |
Integer |
getPageId()
DOCUMENT ME! |
Node |
getParent()
DOCUMENT ME! |
void |
setPageId(Integer pageId)
DOCUMENT ME! |
void |
setParent(Node node)
Sets the parent of this Node |
Methods inherited from class Node |
---|
addEntry, boundsChanged, clear, getBounds, getEntries, getEntriesCount, getEntry, isLeaf, removeEntry, save, setLeaf |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatabaseNode(int maxNodeEntries, DataSource ds, Dialect dialect, String tableName)
maxNodeEntries
- ds
- dialect
- tableName
- public DatabaseNode(int maxNodeEntries, DataSource ds, Dialect dialect, String tableName, Integer pageId) throws TreeException
maxNodeEntries
- ds
- dialect
- tableName
- pageId
-
TreeException
- DOCUMENT ME!Method Detail |
---|
protected void doSave() throws TreeException
Node
Node
; called from save()
doSave
in class Node
TreeException
Node.doSave()
protected void doInsert(Connection cnn, byte[] bytes) throws SQLException, IOException
cnn
- bytes
-
SQLException
IOException
protected void doUpdate(Connection cnn, byte[] bytes) throws SQLException, IOException
cnn
- bytes
-
SQLException
IOException
protected Entry getEntry(Node node)
Node
Node
getEntry
in class Node
node
- The Node
Entry
Node.getEntry(org.geotools.index.rtree.Node)
public Node getParent() throws TreeException
Node
getParent
in class Node
TreeException
- DOCUMENT ME!Node.getParent()
public void setParent(Node node)
Node
Node
setParent
in class Node
node
- The parent Node
Node.setParent(org.geotools.index.rtree.Node)
public Integer getPageId()
public void setPageId(Integer pageId)
pageId
- The pageId to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |