📄 dbreaderwriter.html
字号:
<BR> User name key</TD></TR></TABLE> <A NAME="fields_inherited_from_class_AbstractReaderWriter"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from class <A HREF="../../../../../org/geotools/graph/io/standard/AbstractReaderWriter.html" title="class in org.geotools.graph.io.standard">AbstractReaderWriter</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/geotools/graph/io/standard/AbstractReaderWriter.html#BUILDER">BUILDER</A>, <A HREF="../../../../../org/geotools/graph/io/standard/AbstractReaderWriter.html#EDGES">EDGES</A>, <A HREF="../../../../../org/geotools/graph/io/standard/AbstractReaderWriter.html#GENERATOR">GENERATOR</A>, <A HREF="../../../../../org/geotools/graph/io/standard/AbstractReaderWriter.html#NODES">NODES</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../org/geotools/graph/io/standard/DBReaderWriter.html#DBReaderWriter()">DBReaderWriter</A></B>()</CODE><BR> </TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/Connection.html" title="class or interface in java.sql">Connection</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/io/standard/DBReaderWriter.html#getConnection()">getConnection</A></B>()</CODE><BR> Opens a connection to the database, based on set properties.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/io/standard/DBReaderWriter.html#getQuery()">getQuery</A></B>()</CODE><BR> Template method which returns the query to execute in order to read a graph from the database.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../org/geotools/graph/structure/Graph.html" title="interface in org.geotools.graph.structure">Graph</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/io/standard/DBReaderWriter.html#read()">read</A></B>()</CODE><BR> Performs a graph read by querying the database and processing each tuple returned in the query. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/io/standard/DBReaderWriter.html#readInternal(java.sql.ResultSet)">readInternal</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/ResultSet.html" title="class or interface in java.sql">ResultSet</A> rs)</CODE><BR> Template method used to create the object represented by a tuple returned by the database query.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/io/standard/DBReaderWriter.html#write(org.geotools.graph.structure.Graph)">write</A></B>(<A HREF="../../../../../org/geotools/graph/structure/Graph.html" title="interface in org.geotools.graph.structure">Graph</A> g)</CODE><BR> Performs a write on the graph out to the database. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/io/standard/DBReaderWriter.html#writeEdge(java.sql.Statement, org.geotools.graph.structure.Edge)">writeEdge</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/Statement.html" title="class or interface in java.sql">Statement</A> st, <A HREF="../../../../../org/geotools/graph/structure/Edge.html" title="interface in org.geotools.graph.structure">Edge</A> edge)</CODE><BR> Template method used to write an edge into the database.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/io/standard/DBReaderWriter.html#writeNode(java.sql.Statement, org.geotools.graph.structure.Node)">writeNode</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/Statement.html" title="class or interface in java.sql">Statement</A> st, <A HREF="../../../../../org/geotools/graph/structure/Node.html" title="interface in org.geotools.graph.structure">Node</A> node)</CODE><BR> Template method used to write a node into the database.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_AbstractReaderWriter"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="../../../../../org/geotools/graph/io/standard/AbstractReaderWriter.html" title="class in org.geotools.graph.io.standard">AbstractReaderWriter</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/geotools/graph/io/standard/AbstractReaderWriter.html#getProperty(java.lang.String)">getProperty</A>, <A HREF="../../../../../org/geotools/graph/io/standard/AbstractReaderWriter.html#setProperty(java.lang.String)">setProperty</A>, <A HREF="../../../../../org/geotools/graph/io/standard/AbstractReaderWriter.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="DRIVERCLASS"><!-- --></A><H3>DRIVERCLASS</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>DRIVERCLASS</B></PRE><DL><DD>JDBC driver class name key<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.geotools.graph.io.standard.DBReaderWriter.DRIVERCLASS">Constant Field Values</A></DL></DL><HR><A NAME="DRIVERURL"><!-- --></A><H3>DRIVERURL</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>DRIVERURL</B></PRE><DL><DD>JDBC driver url<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.geotools.graph.io.standard.DBReaderWriter.DRIVERURL">Constant Field Values</A></DL></DL><HR><A NAME="SERVER"><!-- --></A><H3>SERVER</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>SERVER</B></PRE><DL><DD>Database server key<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.geotools.graph.io.standard.DBReaderWriter.SERVER">Constant Field Values</A></DL></DL><HR><A NAME="PORT"><!-- --></A><H3>PORT</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>PORT</B></PRE><DL><DD>Database port key<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.geotools.graph.io.standard.DBReaderWriter.PORT">Constant Field Values</A></DL></DL><HR><A NAME="DBNAME"><!-- --></A><H3>DBNAME</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>DBNAME</B></PRE><DL><DD>Database name key<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.geotools.graph.io.standard.DBReaderWriter.DBNAME">Constant Field Values</A></DL></DL><HR><A NAME="USERNAME"><!-- --></A><H3>USERNAME</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>USERNAME</B></PRE><DL><DD>User name key<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.geotools.graph.io.standard.DBReaderWriter.USERNAME">Constant Field Values</A></DL></DL><HR><A NAME="TABLENAME"><!-- --></A><H3>TABLENAME</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>TABLENAME</B></PRE><DL><DD>Table key<P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -