|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttreebolic.provider.sql.Provider
public class Provider
Provider for SQL
Field Summary | |
---|---|
private IProviderContext |
theContext
Provider context |
private static java.lang.String |
theDefaultEdgesSql
Get edges SQL statement |
private static java.lang.String |
theDefaultMenuSql
Get menu item SQL statement |
private static java.lang.String |
theDefaultNodesSql
Get nodes SQL statement |
private static java.lang.String |
theDefaultSettingsSql
Get settings SQL statement |
private static java.lang.String |
theDefaultTreeEdgesSql
Get tree edges SQL statement |
private java.util.Hashtable<java.lang.String,TreeMutableNode> |
theIdToNodeMap
Node map by id |
protected java.util.Properties |
theProperties
Properties |
private static java.lang.String |
thePropertyFile
Property files |
Constructor Summary | |
---|---|
Provider()
Constructor |
Method Summary | |
---|---|
void |
connect(IProviderContext thisContext)
Called by framework to pass context reference (may default to void action if provider does not need it) |
private java.lang.String |
getName(java.lang.String thisKey)
Get name |
private boolean |
initialize(java.lang.String thisSource)
Initialize |
private java.lang.String |
macroExpand(java.lang.String thisString)
Expand macros |
Model |
makeModel(java.lang.String thisSource)
Make model |
Tree |
makeTree(java.lang.String thisSource,
boolean checkRecursion)
Make tree. |
private java.lang.String |
makeUrl(java.util.Properties theseProperties)
Make URL |
private java.util.List<IEdge> |
queryEdges(java.sql.Connection thisConnection)
Query edges |
private Model |
queryModel()
Query model |
private MutableNode |
queryNodes(java.sql.Connection thisConnection)
Query nodes |
private Settings |
querySettings(java.sql.Connection thisConnection)
Query settings |
private Tree |
queryTree()
Query tree |
private Tree |
queryTree(java.sql.Connection thisConnection)
Query tree |
private java.lang.Boolean |
readBoolean(java.sql.ResultSet thisRecordSet,
java.lang.String thisName)
Read boolean |
private java.awt.Color |
readColor(java.sql.ResultSet thisRecordSet,
java.lang.String thisName)
Read color |
private java.lang.Double |
readDouble(java.sql.ResultSet thisRecordSet,
java.lang.String thisName)
Read double |
private java.lang.Integer |
readInteger(java.sql.ResultSet thisRecordSet,
java.lang.String thisName)
Read integer |
private java.lang.String |
readString(java.sql.ResultSet thisRecordSet,
java.lang.String thisName)
Read string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.lang.String thePropertyFile
private static java.lang.String theDefaultNodesSql
private static java.lang.String theDefaultTreeEdgesSql
private static java.lang.String theDefaultEdgesSql
private static java.lang.String theDefaultSettingsSql
private static java.lang.String theDefaultMenuSql
private IProviderContext theContext
private java.util.Hashtable<java.lang.String,TreeMutableNode> theIdToNodeMap
protected java.util.Properties theProperties
Constructor Detail |
---|
public Provider()
Method Detail |
---|
private boolean initialize(java.lang.String thisSource)
thisSource
- source
public void connect(IProviderContext thisContext)
IProvider
connect
in interface IProvider
thisContext
- contextpublic Model makeModel(java.lang.String thisSource)
IProvider
makeModel
in interface IProvider
thisSource
- source (a string that refers to the data in a was that the provider implementation will understand)
public Tree makeTree(java.lang.String thisSource, boolean checkRecursion)
IProvider
makeTree
in interface IProvider
thisSource
- source (a string that refers to the data in a was that the provider implementation will understand)checkRecursion
- whether immediate recursion is checked (avoid mount-now infinite recursion)
private java.lang.String makeUrl(java.util.Properties theseProperties)
theseProperties
- properties
private Model queryModel()
private Tree queryTree()
private Tree queryTree(java.sql.Connection thisConnection) throws java.sql.SQLException
thisConnection
- connection
java.sql.SQLException
private MutableNode queryNodes(java.sql.Connection thisConnection) throws java.sql.SQLException
thisConnection
- connection
java.sql.SQLException
private java.util.List<IEdge> queryEdges(java.sql.Connection thisConnection) throws java.sql.SQLException
thisConnection
- connection
java.sql.SQLException
private Settings querySettings(java.sql.Connection thisConnection)
thisConnection
- connection
private java.lang.String readString(java.sql.ResultSet thisRecordSet, java.lang.String thisName)
thisRecordSet
- record setthisName
- field name
private java.lang.Integer readInteger(java.sql.ResultSet thisRecordSet, java.lang.String thisName)
thisRecordSet
- record setthisName
- field name
private java.lang.Double readDouble(java.sql.ResultSet thisRecordSet, java.lang.String thisName)
thisRecordSet
- record setthisName
- field name
private java.lang.Boolean readBoolean(java.sql.ResultSet thisRecordSet, java.lang.String thisName)
thisRecordSet
- record setthisName
- field name
private java.awt.Color readColor(java.sql.ResultSet thisRecordSet, java.lang.String thisName)
thisRecordSet
- record setthisName
- field name
private java.lang.String getName(java.lang.String thisKey)
thisKey
- key
private java.lang.String macroExpand(java.lang.String thisString)
thisString
- string to expand macro in
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |