Java Doc for DbObject.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) 


org.h2.engine.DbObject

All known Subclasses:   org.h2.engine.DbObjectBase,
DbObject
public interface DbObject (Code)
A database object such as a table, an index, or a user.


Field Summary
 intAGGREGATE
     This object is a user defined aggregate function.
 intCOMMENT
     This object is a comment.
 intCONSTANT
     This object is a constant.
 intCONSTRAINT
     This object is a constraint (check constraint, unique constraint, or referential constraint).
 intFUNCTION_ALIAS
     This object is an alias for a Java function.
 intINDEX
     This object is an index.
 intRIGHT
     This object is a right.
 intROLE
     This object is a role.
 intSCHEMA
     This object is a schema.
 intSEQUENCE
     This object is a sequence.
 intSETTING
     This object is a setting.
 intTABLE_OR_VIEW
     The object is of the type table or view.
 intTRIGGER
     This object is a trigger.
 intUSER
     This object is a user.
 intUSER_DATATYPE
     This object is a user data type (domain).


Method Summary
 voidcheckRename()
     Check if renaming is allowed.
 ObjectArraygetChildren()
     Get the list of dependent children (for tables, this includes indexes and so on).
 StringgetComment()
     Get the current comment of this object.
 StringgetCreateSQL()
     Construct the original CREATE ...
 StringgetCreateSQLForCopy(Table table, String quotedName)
     Construct a CREATE ...
 DatabasegetDatabase()
     Get the database.
 StringgetDropSQL()
     Construct a DROP ...
 intgetHeadPos()
     Get the position of the head record.
 intgetId()
     Get the unique object id.
 longgetModificationId()
     Get the last modification id.
 StringgetName()
     Get the name.
 StringgetSQL()
     Get the SQL name of this object (may be quoted).
 booleangetTemporary()
     Check if this object is temporary (for example, a temporary table).
 intgetType()
     Get the object type.
 voidremoveChildrenAndResources(Session session)
     Delete all dependent children objects and resources of this object.
 voidrename(String newName)
     Rename the object.
 voidsetComment(String comment)
     Change the comment of this object.
 voidsetModified()
     Tell the object that is was modified.
 voidsetTemporary(boolean temporary)
     Tell this object that it is temporary or not.

Field Detail
AGGREGATE
int AGGREGATE(Code)
This object is a user defined aggregate function.



COMMENT
int COMMENT(Code)
This object is a comment.



CONSTANT
int CONSTANT(Code)
This object is a constant.



CONSTRAINT
int CONSTRAINT(Code)
This object is a constraint (check constraint, unique constraint, or referential constraint).



FUNCTION_ALIAS
int FUNCTION_ALIAS(Code)
This object is an alias for a Java function.



INDEX
int INDEX(Code)
This object is an index.



RIGHT
int RIGHT(Code)
This object is a right.



ROLE
int ROLE(Code)
This object is a role.



SCHEMA
int SCHEMA(Code)
This object is a schema.



SEQUENCE
int SEQUENCE(Code)
This object is a sequence.



SETTING
int SETTING(Code)
This object is a setting.



TABLE_OR_VIEW
int TABLE_OR_VIEW(Code)
The object is of the type table or view.



TRIGGER
int TRIGGER(Code)
This object is a trigger.



USER
int USER(Code)
This object is a user.



USER_DATATYPE
int USER_DATATYPE(Code)
This object is a user data type (domain).





Method Detail
checkRename
void checkRename() throws SQLException(Code)
Check if renaming is allowed. Does nothing when allowed.
throws:
  SQLException - if renaming is not allowed



getChildren
ObjectArray getChildren()(Code)
Get the list of dependent children (for tables, this includes indexes and so on). the list of children



getComment
String getComment()(Code)
Get the current comment of this object. the comment, or null if not set



getCreateSQL
String getCreateSQL()(Code)
Construct the original CREATE ... SQL statement for this object. the SQL statement



getCreateSQLForCopy
String getCreateSQLForCopy(Table table, String quotedName)(Code)
Construct a CREATE ... SQL statement for this object when creating a copy of it.
Parameters:
  table - the new table
Parameters:
  quotedName - the quoted name the SQL statement



getDatabase
Database getDatabase()(Code)
Get the database. the database



getDropSQL
String getDropSQL()(Code)
Construct a DROP ... SQL statement for this object. the SQL statement



getHeadPos
int getHeadPos()(Code)
Get the position of the head record. the head position



getId
int getId()(Code)
Get the unique object id. the object id



getModificationId
long getModificationId()(Code)
Get the last modification id. the modification id



getName
String getName()(Code)
Get the name. the name



getSQL
String getSQL()(Code)
Get the SQL name of this object (may be quoted). the SQL name



getTemporary
boolean getTemporary()(Code)
Check if this object is temporary (for example, a temporary table). true if is temporary



getType
int getType()(Code)
Get the object type. the object type



removeChildrenAndResources
void removeChildrenAndResources(Session session) throws SQLException(Code)
Delete all dependent children objects and resources of this object.
Parameters:
  session - the session



rename
void rename(String newName) throws SQLException(Code)
Rename the object.
Parameters:
  newName - the new name



setComment
void setComment(String comment)(Code)
Change the comment of this object.
Parameters:
  comment - the new comment, or null for no comment



setModified
void setModified()(Code)
Tell the object that is was modified.



setTemporary
void setTemporary(boolean temporary)(Code)
Tell this object that it is temporary or not.
Parameters:
  temporary - the new value



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