|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdods.dap.BaseType
dods.dap.DVector
dods.dap.DList
dods.dap.Server.SDList
dods.servers.sql.sqlList
Holds a DODS Server sqlList
value.
SDList
Constructor Summary | |
sqlList()
Constructs a new sqlList . |
|
sqlList(java.lang.String n)
Constructs a new sqlList with name n . |
Method Summary | |
boolean |
read(java.lang.String datasetName,
java.lang.Object specialO)
Read a value from the named dataset for this variable. |
void |
serialize(java.lang.String dataset,
java.io.DataOutputStream sink,
CEEvaluator ce,
java.lang.Object specialO)
Server-side serialization for DODS variables (sub-classes of BaseType ). |
Methods inherited from class dods.dap.Server.SDList |
equal, greater_eql, greater, isProject, isRead, isSynthesized, less_eql, less, not_equal, printDecl, printVal, regexp, setProject, setProject, setRead, setSynthesized |
Methods inherited from class dods.dap.DList |
getTypeName |
Methods inherited from class dods.dap.DVector |
addVariable, clone, deserialize, externalize, getLength, getPrimitiveVector, setLength |
Methods inherited from class dods.dap.BaseType |
checkSemantics, checkSemantics, elementCount, elementCount, getLongName, getName, getParent, newPrimitiveVector, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printVal, printVal, printVal, setName, setParent |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public sqlList()
sqlList
.
public sqlList(java.lang.String n)
sqlList
with name n
.
n
- the name of the variable.Method Detail |
public boolean read(java.lang.String datasetName, java.lang.Object specialO) throws NoSuchVariableException, java.io.IOException, java.io.EOFException
Database -> JDBC -> Java -> DODS
The Database types are the native types for the particular database that is being read from. The translation from Database->JDBC is handled before we get to the data (most likely by the JDBC Drivers). Our mapping of JDBC type to DODS types (the intermediate Java types happen in the process) looks like this:Mapping from JDBC Types to DODS Types:
TINYINT DByte SMALLINT DInt16 INTEGER DInt32 BIGINT DInt32 **NO SENSIBLE MAPPING (Need DInt64) REAL DFloat32 FLOAT DFloat64 DOUBLE DFloat64 DECIMAL DFloat64 **NO SENSIBLE MAPPING (Need Some Kind Monsterous Floating point value) NUMERIC DFloat64 **NO SENSIBLE MAPPING (ibid) BIT DBoolean CHAR DString VARCHAR DString LONGVARCHAR Implemented to be read into a DString, although it is a "BLOB" type and might be better represented as a DArray(of bytes). BINARY DArray(of bytes) VARBINARY DArray(of bytes) LONGVARBINARY DArray(of bytes) DATE DString TIME DString TIMESTAMP DStringAnd are handled in this (the read()) method for each of the correspoonding DODS data types.
These read() methods must be sure to read from the current column in the sqlResponse object, and then bump the column counter when finished in order for the sqlResponse object to be ready for the next invocation of a read() method.
read
in interface ServerMethods
read
in class SDList
datasetName
- String identifying the file or other data store
from which to read a vaue for this variable.specialO
- This Object
is used by this method. It is
assumed to be of type sqlResponse, a container for the ResultSet and
the index value of next column to evaluate.
true
if more data remains to be read, otherwise
false
. This is an abtsract method that must be implemented
as part of the installation/localization of a DODS server.
java.io.IOException
java.io.EOFException
NoSuchVariableException
public void serialize(java.lang.String dataset, java.io.DataOutputStream sink, CEEvaluator ce, java.lang.Object specialO) throws NoSuchVariableException, SDODSException, java.io.IOException
BaseType
).
We override the serialize() method of the parent SDClass in
order to stop the evaluation of the CEEvaluator's Clauses, as
this has been handled implicitly by the SQL Database that this
Server is designed to interrogate.
serialize
in interface ServerMethods
serialize
in class SDList
sink
- a DataOutputStream
to write to.
java.io.IOException
- thrown on any OutputStream
exception.
NoSuchVariableException
SDODSException
BaseType
,
DDS
,
ServerDDS
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |