Java Reference
In-Depth Information
HTTPsupportsauthenticationwherebyclients(e.g.,browserusers)mustprovetheir
authenticity.Variousauthenticationschemeshavebeenproposedtohandlethistask;for
example, basic and digest. Java provides Authenticator and related types so that
networked Java applications can interact with these authentication schemes.
Server applications commonly use HTTP cookies (state objects)— cookies for
short—topersistsmallamountsofinformationonclients.Javasupportscookiemanage-
ment via CookieManager , CookieHandler , and related types.
Adatabaseisanorganizedcollectionofdata.Althoughtherearemanykindsofdata-
bases(e.g.,hierarchical,object-oriented,andrelational),relationaldatabases,whichor-
ganize data into tables—each row stores a single item, such as an employee, and each
columnstoresasingleitemattribute,suchasanemployee'sname—thatcanberelated
to each other, are common.
Exceptforthemosttrivialofdatabases(e.g.,flatfiledatabases),databasesarecreated
and managed through a DBMS. RDBMSes support SQL for working with tables and
more.
Javasupportsdatabasecreation,access,andmoreviaitsrelationaldatabase-oriented
JDBC(JavaDataBaseConnectivity)API.TheJDKalsoprovidesJavaDB,whichisan
RDBMS that you can use to test your JDBC-enabled applications.
JDBCprovidesmanyfeatures,includingdriversforconnectingtodatasources,con-
nectionstodatasources,exceptionsthatstorevariouskindsofinformationaboutadata
source problem, statements (regular, prepared, and callable) for executing SQL, result
sets that store SQL query results, and metadata for learning more about a data source.
Preparedstatementsareprecompiledstatementsandcallablestatementsareusedtoex-
ecute stored procedures.
Chapter10 introducesyoutoXML,alongwithJava'sSAX,DOM,StAX,XPath,and
XSLT APIs. You even briefly learn about its Validation API.
Search WWH ::




Custom Search