Java Doc for Session.java in  » Database-DBMS » h2database » org » h2 » engine » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » h2database » org.h2.engine 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.h2.engine.Session

Session
public class Session implements SessionInterface(Code)
A session represents a database connection. When using the server mode, this object resides on the server side and communicates with a RemoteSession on the client side.



Constructor Summary
public  Session()
    
 Session(Database database, User user, int id)
    

Method Summary
public  voidaddLocalTempTable(Table table)
    
public  voidaddLock(Table table)
    
public  voidaddLogPos(int logId, int pos)
    
public  voidaddProcedure(Procedure procedure)
    
public  voidaddSavepoint(String name)
    
public  voidaddTemporaryResult(LocalResult result)
    
public  voidbegin()
    
public  voidcancel()
    
public  voidcheckCancelled()
    
public  voidclose()
    
public  voidcloseTemporaryResults()
    
public  voidcommit(boolean ddl)
    
public  JdbcConnectioncreateConnection(boolean columnList)
    
public  SessionInterfacecreateSession(ConnectionInfo ci)
    
protected  voidfinalize()
    
public  TablefindLocalTempTable(String name)
    
public  booleangetAllowLiterals()
    
public  booleangetAutoCommit()
    
public  CommandgetCurrentCommand()
    
public  longgetCurrentCommandStart()
    
public  StringgetCurrentSchemaName()
    
public  DataHandlergetDataHandler()
    
public  DatabasegetDatabase()
    
public  intgetFirstUncommittedLog()
    
public  intgetFirstUncommittedPos()
    
public  intgetId()
    
public  ValuegetLastIdentity()
    
public  intgetLastUncommittedDelete()
    
public  ObjectArraygetLocalTempTables()
    
public  intgetLockTimeout()
    
public  Table[]getLocks()
    
public  intgetLogId()
    
public  StringgetNextTempViewName()
    
public  intgetPowerOffCount()
    
public  ProceduregetProcedure(String name)
    
public  intgetQueryTimeout()
    
public  RandomgetRandom()
    
public  booleangetRollbackMode()
    
public  String[]getSchemaSearchPath()
    
public  longgetSessionStart()
    
public  TracegetTrace()
    
public  booleangetUndoLogEnabled()
    
public  UsergetUser()
    
public  ValuegetVariable(String name)
    
public  inthashCode()
    
public  booleanisClosed()
    
public  voidlog(Table table, short type, Row row)
     Add an undo log entry to this session.
public  Preparedprepare(String sql)
    
public  Preparedprepare(String sql, boolean rightsChecked)
    
public  CommandInterfaceprepareCommand(String sql, int fetchSize)
    
public  voidprepareCommit(String transactionName)
    
public  CommandprepareLocal(String sql)
    
public  voidremoveLocalTempTable(Table table)
    
public  voidremoveProcedure(String name)
    
public  voidrollback()
    
public  voidrollbackTo(int index)
    
public  voidrollbackToSavepoint(String name)
    
public  voidsetAllCommitted()
    
public  voidsetAllowLiterals(boolean b)
    
public  voidsetAutoCommit(boolean b)
    
public  booleansetCommitOrRollbackDisabled(boolean x)
    
public  voidsetCurrentCommand(Command command, long startTime)
    
public  voidsetCurrentSchema(Schema schema)
    
public  voidsetLastIdentity(Value last)
    
public  voidsetLastUncommittedDelete(int deleteId)
    
public  voidsetLockTimeout(int lockTimeout)
    
public  voidsetPowerOffCount(int count)
    
public  voidsetPreparedTransaction(String transactionName, boolean commit)
    
public  voidsetQueryTimeout(int queryTimeout)
    
public  voidsetSchemaSearchPath(String[] schemas)
    
public  voidsetThrottle(int throttle)
    
public  voidsetUndoLogEnabled(boolean b)
    
public  voidsetVariable(String name, Value value)
    
public  voidthrottle()
    
public  voidunlinkAtCommit(Value v)
    
public  voidunlinkAtCommitStop(Value v)
    
public  voidunlockReadLocks()
    
public  voidwaitIfExclusiveModeEnabled()
    


Constructor Detail
Session
public Session()(Code)



Session
Session(Database database, User user, int id)(Code)




Method Detail
addLocalTempTable
public void addLocalTempTable(Table table) throws SQLException(Code)



addLock
public void addLock(Table table)(Code)



addLogPos
public void addLogPos(int logId, int pos)(Code)



addProcedure
public void addProcedure(Procedure procedure)(Code)



addSavepoint
public void addSavepoint(String name)(Code)



addTemporaryResult
public void addTemporaryResult(LocalResult result)(Code)



begin
public void begin()(Code)



cancel
public void cancel()(Code)



checkCancelled
public void checkCancelled() throws SQLException(Code)



close
public void close() throws SQLException(Code)



closeTemporaryResults
public void closeTemporaryResults()(Code)



commit
public void commit(boolean ddl) throws SQLException(Code)



createConnection
public JdbcConnection createConnection(boolean columnList) throws SQLException(Code)



createSession
public SessionInterface createSession(ConnectionInfo ci) throws SQLException(Code)



finalize
protected void finalize()(Code)



findLocalTempTable
public Table findLocalTempTable(String name)(Code)



getAllowLiterals
public boolean getAllowLiterals()(Code)



getAutoCommit
public boolean getAutoCommit()(Code)



getCurrentCommand
public Command getCurrentCommand()(Code)



getCurrentCommandStart
public long getCurrentCommandStart()(Code)



getCurrentSchemaName
public String getCurrentSchemaName()(Code)



getDataHandler
public DataHandler getDataHandler()(Code)



getDatabase
public Database getDatabase()(Code)



getFirstUncommittedLog
public int getFirstUncommittedLog()(Code)



getFirstUncommittedPos
public int getFirstUncommittedPos()(Code)



getId
public int getId()(Code)



getLastIdentity
public Value getLastIdentity()(Code)



getLastUncommittedDelete
public int getLastUncommittedDelete()(Code)



getLocalTempTables
public ObjectArray getLocalTempTables()(Code)



getLockTimeout
public int getLockTimeout()(Code)



getLocks
public Table[] getLocks()(Code)



getLogId
public int getLogId()(Code)



getNextTempViewName
public String getNextTempViewName()(Code)



getPowerOffCount
public int getPowerOffCount()(Code)



getProcedure
public Procedure getProcedure(String name)(Code)



getQueryTimeout
public int getQueryTimeout()(Code)



getRandom
public Random getRandom()(Code)



getRollbackMode
public boolean getRollbackMode()(Code)



getSchemaSearchPath
public String[] getSchemaSearchPath()(Code)



getSessionStart
public long getSessionStart()(Code)



getTrace
public Trace getTrace()(Code)



getUndoLogEnabled
public boolean getUndoLogEnabled()(Code)



getUser
public User getUser()(Code)



getVariable
public Value getVariable(String name)(Code)



hashCode
public int hashCode()(Code)



isClosed
public boolean isClosed()(Code)



log
public void log(Table table, short type, Row row) throws SQLException(Code)
Add an undo log entry to this session.
Parameters:
  table - the table
Parameters:
  type - the operation type (see UndoLogRecord)
Parameters:
  row - the row



prepare
public Prepared prepare(String sql) throws SQLException(Code)



prepare
public Prepared prepare(String sql, boolean rightsChecked) throws SQLException(Code)



prepareCommand
public CommandInterface prepareCommand(String sql, int fetchSize) throws SQLException(Code)



prepareCommit
public void prepareCommit(String transactionName) throws SQLException(Code)



prepareLocal
public Command prepareLocal(String sql) throws SQLException(Code)



removeLocalTempTable
public void removeLocalTempTable(Table table) throws SQLException(Code)



removeProcedure
public void removeProcedure(String name)(Code)



rollback
public void rollback() throws SQLException(Code)



rollbackTo
public void rollbackTo(int index) throws SQLException(Code)



rollbackToSavepoint
public void rollbackToSavepoint(String name) throws SQLException(Code)



setAllCommitted
public void setAllCommitted()(Code)



setAllowLiterals
public void setAllowLiterals(boolean b)(Code)



setAutoCommit
public void setAutoCommit(boolean b)(Code)



setCommitOrRollbackDisabled
public boolean setCommitOrRollbackDisabled(boolean x)(Code)



setCurrentCommand
public void setCurrentCommand(Command command, long startTime)(Code)



setCurrentSchema
public void setCurrentSchema(Schema schema)(Code)



setLastIdentity
public void setLastIdentity(Value last)(Code)



setLastUncommittedDelete
public void setLastUncommittedDelete(int deleteId)(Code)



setLockTimeout
public void setLockTimeout(int lockTimeout)(Code)



setPowerOffCount
public void setPowerOffCount(int count)(Code)



setPreparedTransaction
public void setPreparedTransaction(String transactionName, boolean commit) throws SQLException(Code)



setQueryTimeout
public void setQueryTimeout(int queryTimeout)(Code)



setSchemaSearchPath
public void setSchemaSearchPath(String[] schemas)(Code)



setThrottle
public void setThrottle(int throttle)(Code)



setUndoLogEnabled
public void setUndoLogEnabled(boolean b)(Code)



setVariable
public void setVariable(String name, Value value) throws SQLException(Code)



throttle
public void throttle()(Code)



unlinkAtCommit
public void unlinkAtCommit(Value v)(Code)



unlinkAtCommitStop
public void unlinkAtCommitStop(Value v)(Code)



unlockReadLocks
public void unlockReadLocks()(Code)



waitIfExclusiveModeEnabled
public void waitIfExclusiveModeEnabled()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.