Java Doc for NumericColumn.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
      com.caucho.db.table.NumericColumn

NumericColumn
class NumericColumn extends Column (Code)
Represents a numeric column.



Constructor Summary
 NumericColumn(Row row, String name, int precision, int scale)
     Creates a date column.

Method Summary
 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 a stream.
public  intgetDeclarationSize()
     Returns the column's declaration size.
public  doublegetDouble(Transaction xa, byte[] block, int rowOffset)
     Sets a double value in the column.
public  ClassgetJavaType()
     Returns the column's Java type.
public  intgetLength()
    
 longgetNumeric(byte[] block, int rowOffset)
     Gets a long value from the column.
public  intgetPrecision()
     Returns the precision.
public  intgetScale()
     Returns the scale.
public  StringgetString(byte[] block, int rowOffset)
     Gets a string value from the column.
public  intgetTypeCode()
     Returns the column's type code.
public  booleanisEqual(byte[] block1, int rowOffset1, byte[] block2, int rowOffset2)
     Returns true if the items in the given rows match.
public  voidset(TableIterator iter, Expr expr, QueryContext context)
     Sets based on an iterator.
public  voidsetDouble(Transaction xa, byte[] block, int rowOffset, double v)
     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.
 voidsetIndex(Transaction xa, byte[] block, int rowOffset, long rowAddr, QueryContext context)
     Sets any index for the column.
 voidsetNumeric(Transaction xa, byte[] block, int rowOffset, long value)
     Sets a numeric value in the column.
 voidsetString(Transaction xa, byte[] block, int rowOffset, String str)
     Sets a string value in the column.


Constructor Detail
NumericColumn
NumericColumn(Row row, String name, int precision, int scale)(Code)
Creates a date column.
Parameters:
  row - the row the column is being added to
Parameters:
  name - the column's name




Method Detail
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 a stream.



getDeclarationSize
public int getDeclarationSize()(Code)
Returns the column's declaration size.



getDouble
public double getDouble(Transaction xa, 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



getJavaType
public Class getJavaType()(Code)
Returns the column's Java type.



getLength
public int getLength()(Code)
Returns the column's length



getNumeric
long getNumeric(byte[] block, int rowOffset)(Code)
Gets a long value from the column.
Parameters:
  block - the block's buffer
Parameters:
  rowOffset - the offset of the row in the block



getPrecision
public int getPrecision()(Code)
Returns the precision.



getScale
public int getScale()(Code)
Returns the scale.



getString
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



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



isEqual
public boolean isEqual(byte[] block1, int rowOffset1, byte[] block2, int rowOffset2)(Code)
Returns true if the items in the given rows match.



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



setDouble
public void setDouble(Transaction xa, byte[] block, int rowOffset, double v) 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
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



setNumeric
void setNumeric(Transaction xa, byte[] block, int rowOffset, long value)(Code)
Sets a numeric 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



setString
void setString(Transaction xa, byte[] block, int rowOffset, String str) 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



Fields inherited from com.caucho.db.table.Column
final public static int BLOB(Code)(Java Doc)
final public static int DATE(Code)(Java Doc)
final public static int DOUBLE(Code)(Java Doc)
final public static int INT(Code)(Java Doc)
final public static int LONG(Code)(Java Doc)
final public static int NONE(Code)(Java Doc)
final public static int NUMERIC(Code)(Java Doc)
final public static int VARBINARY(Code)(Java Doc)
final public static int VARCHAR(Code)(Java Doc)
final protected int _columnOffset(Code)(Java Doc)
final protected byte _nullMask(Code)(Java Doc)
final protected int _nullOffset(Code)(Java Doc)
final protected static Logger log(Code)(Java Doc)

Methods inherited from com.caucho.db.table.Column
public void close()(Code)(Java Doc)
void delete(Transaction xa, byte[] block, int rowOffset) throws SQLException(Code)(Java Doc)
int evalToBuffer(byte[] block, int rowOffset, byte[] buffer, int bufferOffset) throws SQLException(Code)(Java Doc)
public void evalToResult(byte[] block, int rowOffset, SelectResult result) throws SQLException(Code)(Java Doc)
public int getAutoIncrement()(Code)(Java Doc)
int getColumnOffset()(Code)(Java Doc)
public long getDate(byte[] block, int rowOffset) throws SQLException(Code)(Java Doc)
abstract public int getDeclarationSize()(Code)(Java Doc)
public Expr getDefault()(Code)(Java Doc)
public double getDouble(byte[] block, int rowOffset) throws SQLException(Code)(Java Doc)
public BTree getIndex()(Code)(Java Doc)
public KeyCompare getIndexKeyCompare()(Code)(Java Doc)
public int getInteger(byte[] block, int rowOffset) throws SQLException(Code)(Java Doc)
public Class getJavaType()(Code)(Java Doc)
abstract int getLength()(Code)(Java Doc)
public long getLong(byte[] block, int rowOffset) throws SQLException(Code)(Java Doc)
public String getName()(Code)(Java Doc)
abstract public String getString(byte[] block, int rowOffset) throws SQLException(Code)(Java Doc)
public Table getTable()(Code)(Java Doc)
abstract public int getTypeCode()(Code)(Java Doc)
public boolean isEqual(byte[] block, int rowOffset, byte[] buffer, int offset, int length)(Code)(Java Doc)
public boolean isEqual(byte[] buffer1, int rowOffset1, byte[] buffer2, int rowOffset2)(Code)(Java Doc)
public boolean isEqual(byte[] block, int rowOffset, String string)(Code)(Java Doc)
public boolean isNotNull()(Code)(Java Doc)
final public boolean isNull(byte[] block, int rowOffset)(Code)(Java Doc)
public boolean isPrimaryKey()(Code)(Java Doc)
public boolean isUnique()(Code)(Java Doc)
public void set(Transaction xa, TableIterator iter, Expr expr, QueryContext context) throws SQLException(Code)(Java Doc)
public void setAutoIncrement(int min)(Code)(Java Doc)
void setDate(Transaction xa, byte[] block, int rowOffset, double value) throws SQLException(Code)(Java Doc)
public void setDefault(Expr expr)(Code)(Java Doc)
void setDouble(Transaction xa, byte[] block, int rowOffset, double value) throws SQLException(Code)(Java Doc)
void setExpr(Transaction xa, byte[] block, int rowOffset, Expr expr, QueryContext context) throws SQLException(Code)(Java Doc)
public void setIndex(BTree index)(Code)(Java Doc)
void setIndex(Transaction xa, byte[] block, int rowOffset, long rowAddr, QueryContext context) throws SQLException(Code)(Java Doc)
void setInteger(Transaction xa, byte[] block, int rowOffset, int value) throws SQLException(Code)(Java Doc)
void setLong(Transaction xa, byte[] block, int rowOffset, long value) throws SQLException(Code)(Java Doc)
final protected void setNonNull(byte[] block, int rowOffset)(Code)(Java Doc)
public void setNotNull()(Code)(Java Doc)
final public void setNull(byte[] block, int rowOffset)(Code)(Java Doc)
public void setPrimaryKey(boolean primaryKey)(Code)(Java Doc)
abstract void setString(Transaction xa, byte[] block, int rowOffset, String value) throws SQLException(Code)(Java Doc)
void setTable(Table table)(Code)(Java Doc)
public void setUnique()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.