Java Doc for Column.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » db » table » 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 » EJB Server resin 3.1.5 » resin » com.caucho.db.table 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.db.table.Column

All known Subclasses:   com.caucho.db.table.IntColumn,  com.caucho.db.table.DoubleColumn,  com.caucho.db.table.BlobColumn,  com.caucho.db.table.LongColumn,  com.caucho.db.table.DateColumn,  com.caucho.db.table.BinaryColumn,  com.caucho.db.table.NumericColumn,  com.caucho.db.table.StringColumn,
Column
abstract public class Column (Code)


Field Summary
final public static  intBLOB
    
final public static  intDATE
    
final public static  intDOUBLE
    
final public static  intINT
    
final public static  intLONG
    
final public static  intNONE
    
final public static  intNUMERIC
    
final public static  intVARBINARY
    
final public static  intVARCHAR
    
final protected  int_columnOffset
    
final protected  byte_nullMask
    
final protected  int_nullOffset
    
final protected static  Loggerlog
    

Constructor Summary
 Column(Row row, String name)
    

Method Summary
public  voidclose()
     Cleanup of the column on table shutdown.
 voiddelete(Transaction xa, byte[] block, int rowOffset)
     Deleting the row, based on the column.
 intevalToBuffer(byte[] block, int rowOffset, byte[] buffer, int bufferOffset)
     Evaluate to a buffer.
public  voidevalToResult(byte[] block, int rowOffset, SelectResult result)
     Evaluates the column to the result.
public  intgetAutoIncrement()
     Set if the column is unique.
 intgetColumnOffset()
     Returns the column offset.
public  longgetDate(byte[] block, int rowOffset)
     Gets a double value in the column.
abstract public  intgetDeclarationSize()
     Returns the column's size (from the decl).
public  ExprgetDefault()
    
public  doublegetDouble(byte[] block, int rowOffset)
     Sets a double value in the column.
public  BTreegetIndex()
     Returns the index.
public  KeyComparegetIndexKeyCompare()
     Returns the key compare for the column.
public  intgetInteger(byte[] block, int rowOffset)
     Sets an integer value in the column.
public  ClassgetJavaType()
     Returns the java type.
abstract  intgetLength()
    
public  longgetLong(byte[] block, int rowOffset)
     Sets a long value in the column.
public  StringgetName()
     Returns the column's name.
abstract public  StringgetString(byte[] block, int rowOffset)
     Gets a string value from the column.
public  TablegetTable()
     Gets the table.
abstract public  intgetTypeCode()
     Returns the column's code.
public  booleanisEqual(byte[] block, int rowOffset, byte[] buffer, int offset, int length)
     Returns true if the bytes are equal.
public  booleanisEqual(byte[] buffer1, int rowOffset1, byte[] buffer2, int rowOffset2)
     Returns true if the bytes are equal.
public  booleanisEqual(byte[] block, int rowOffset, String string)
     Returns true if the string is equal.
public  booleanisNotNull()
     Returns true if the column is NOT NULL.
final public  booleanisNull(byte[] block, int rowOffset)
     Returns true if the column is null.
public  booleanisPrimaryKey()
    
public  booleanisUnique()
     Returns true if the column is unique.
public  voidset(Transaction xa, TableIterator iter, Expr expr, QueryContext context)
     Sets based on an iterator.
public  voidsetAutoIncrement(int min)
    
 voidsetDate(Transaction xa, byte[] block, int rowOffset, double value)
     Sets a date value in the column.
public  voidsetDefault(Expr expr)
    
 voidsetDouble(Transaction xa, byte[] block, int rowOffset, double value)
     Sets a double value in the column.
 voidsetExpr(Transaction xa, byte[] block, int rowOffset, Expr expr, QueryContext context)
     Sets the column based on an expression.
public  voidsetIndex(BTree index)
     Sets the index.
 voidsetIndex(Transaction xa, byte[] block, int rowOffset, long rowAddr, QueryContext context)
     Sets any index for the column.
 voidsetInteger(Transaction xa, byte[] block, int rowOffset, int value)
     Sets an integer value in the column.
 voidsetLong(Transaction xa, byte[] block, int rowOffset, long value)
     Sets a long value in the column.
final protected  voidsetNonNull(byte[] block, int rowOffset)
     Sets the column non-null.
public  voidsetNotNull()
     Set true if the column is NOT NULL.
final public  voidsetNull(byte[] block, int rowOffset)
     Sets the column null.
public  voidsetPrimaryKey(boolean primaryKey)
    
abstract  voidsetString(Transaction xa, byte[] block, int rowOffset, String value)
     Sets a string value in the column.
 voidsetTable(Table table)
     Sets the table.
public  voidsetUnique()
     Set if the column is unique.
public  StringtoString()
    

Field Detail
BLOB
final public static int BLOB(Code)



DATE
final public static int DATE(Code)



DOUBLE
final public static int DOUBLE(Code)



INT
final public static int INT(Code)



LONG
final public static int LONG(Code)



NONE
final public static int NONE(Code)



NUMERIC
final public static int NUMERIC(Code)



VARBINARY
final public static int VARBINARY(Code)



VARCHAR
final public static int VARCHAR(Code)



_columnOffset
final protected int _columnOffset(Code)



_nullMask
final protected byte _nullMask(Code)



_nullOffset
final protected int _nullOffset(Code)



log
final protected static Logger log(Code)




Constructor Detail
Column
Column(Row row, String name)(Code)




Method Detail
close
public void close()(Code)
Cleanup of the column on table shutdown.



delete
void delete(Transaction xa, byte[] block, int rowOffset) throws SQLException(Code)
Deleting the row, based on the column.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block
Parameters:
  expr - the expression to store



evalToBuffer
int evalToBuffer(byte[] block, int rowOffset, byte[] buffer, int bufferOffset) throws SQLException(Code)
Evaluate to a buffer.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block
Parameters:
  buffer - the result buffer
Parameters:
  buffer - the result buffer offset the length of the value



evalToResult
public void evalToResult(byte[] block, int rowOffset, SelectResult result) throws SQLException(Code)
Evaluates the column to the result.



getAutoIncrement
public int getAutoIncrement()(Code)
Set if the column is unique.



getColumnOffset
int getColumnOffset()(Code)
Returns the column offset.



getDate
public long getDate(byte[] block, int rowOffset) throws SQLException(Code)
Gets a double value in the column.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block



getDeclarationSize
abstract public int getDeclarationSize()(Code)
Returns the column's size (from the decl).



getDefault
public Expr getDefault()(Code)
Gets the default expression



getDouble
public double getDouble(byte[] block, int rowOffset) throws SQLException(Code)
Sets a double value in the column.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block
Parameters:
  value - the value to store



getIndex
public BTree getIndex()(Code)
Returns the index.



getIndexKeyCompare
public KeyCompare getIndexKeyCompare()(Code)
Returns the key compare for the column.



getInteger
public int getInteger(byte[] block, int rowOffset) throws SQLException(Code)
Sets an integer value in the column.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block
Parameters:
  value - the value to store



getJavaType
public Class getJavaType()(Code)
Returns the java type.



getLength
abstract int getLength()(Code)



getLong
public long getLong(byte[] block, int rowOffset) throws SQLException(Code)
Sets a long value in the column.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block
Parameters:
  value - the value to store



getName
public String getName()(Code)
Returns the column's name.



getString
abstract public String getString(byte[] block, int rowOffset) throws SQLException(Code)
Gets a string value from the column.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block



getTable
public Table getTable()(Code)
Gets the table.



getTypeCode
abstract public int getTypeCode()(Code)
Returns the column's code.



isEqual
public boolean isEqual(byte[] block, int rowOffset, byte[] buffer, int offset, int length)(Code)
Returns true if the bytes are equal.



isEqual
public boolean isEqual(byte[] buffer1, int rowOffset1, byte[] buffer2, int rowOffset2)(Code)
Returns true if the bytes are equal.



isEqual
public boolean isEqual(byte[] block, int rowOffset, String string)(Code)
Returns true if the string is equal.



isNotNull
public boolean isNotNull()(Code)
Returns true if the column is NOT NULL.



isNull
final public boolean isNull(byte[] block, int rowOffset)(Code)
Returns true if the column is null.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block



isPrimaryKey
public boolean isPrimaryKey()(Code)
Returns true if the column is a primary key



isUnique
public boolean isUnique()(Code)
Returns true if the column is unique.



set
public void set(Transaction xa, TableIterator iter, Expr expr, QueryContext context) throws SQLException(Code)
Sets based on an iterator.



setAutoIncrement
public void setAutoIncrement(int min)(Code)
Returns true if the column is auto increment



setDate
void setDate(Transaction xa, byte[] block, int rowOffset, double value) throws SQLException(Code)
Sets a date value in the column.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block
Parameters:
  value - the value to store



setDefault
public void setDefault(Expr expr)(Code)
Sets the default expression



setDouble
void setDouble(Transaction xa, byte[] block, int rowOffset, double value) throws SQLException(Code)
Sets a double value in the column.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block
Parameters:
  value - the value to store



setExpr
void setExpr(Transaction xa, byte[] block, int rowOffset, Expr expr, QueryContext context) throws SQLException(Code)
Sets the column based on an expression.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block
Parameters:
  expr - the expression to store



setIndex
public void setIndex(BTree index)(Code)
Sets the index.



setIndex
void setIndex(Transaction xa, byte[] block, int rowOffset, long rowAddr, QueryContext context) throws SQLException(Code)
Sets any index for the column.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block
Parameters:
  rowAddr - the address of the row



setInteger
void setInteger(Transaction xa, byte[] block, int rowOffset, int value) throws SQLException(Code)
Sets an integer value in the column.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block
Parameters:
  value - the value to store



setLong
void setLong(Transaction xa, byte[] block, int rowOffset, long value) throws SQLException(Code)
Sets a long value in the column.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block
Parameters:
  value - the value to store



setNonNull
final protected void setNonNull(byte[] block, int rowOffset)(Code)
Sets the column non-null.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block



setNotNull
public void setNotNull()(Code)
Set true if the column is NOT NULL.



setNull
final public void setNull(byte[] block, int rowOffset)(Code)
Sets the column null.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block



setPrimaryKey
public void setPrimaryKey(boolean primaryKey)(Code)
Returns true if the column is a primary key



setString
abstract void setString(Transaction xa, byte[] block, int rowOffset, String value) throws SQLException(Code)
Sets a string value in the column.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block
Parameters:
  value - the value to store



setTable
void setTable(Table table)(Code)
Sets the table.



setUnique
public void setUnique()(Code)
Set if the column is unique.



toString
public String toString()(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.