Java Doc for Column.java in  » Database-Client » Jackcess » com » healthmarketscience » jackcess » 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 Client » Jackcess » com.healthmarketscience.jackcess 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.healthmarketscience.jackcess.Column

Column
public class Column implements Comparable<Column>(Code)
Access database column definition
author:
   Tim McCune


Field Summary
final public static  ObjectAUTO_NUMBER
     Meaningless placeholder object for inserting values in an autonumber column.
final public static  byteAUTO_NUMBER_FLAG_MASK
    
final public static  byteFIXED_LEN_FLAG_MASK
    
final public static  byteUNKNOWN_FLAG_MASK
    

Constructor Summary
public  Column()
    
public  Column(JetFormat format)
    
 Column(boolean testing)
    
public  Column(Table table, ByteBuffer buffer, int offset)
    

Method Summary
public  intcompareTo(Column other)
    
public static  shortcountNonLongVariableLength(List<Column> columns)
    
public static  shortcountVariableLength(List<Column> columns)
    
public static  StringdecodeUncompressedText(byte[] textBytes, JetFormat format)
    
public static  ByteBufferencodeUncompressedText(CharSequence text, JetFormat format)
    
public  intgetColumnIndex()
    
public  shortgetColumnNumber()
    
public  intgetFixedDataOffset()
    
public  JetFormatgetFormat()
    
public  shortgetLength()
    
public  shortgetLengthInUnits()
    
public  StringgetName()
    
public  PageChannelgetPageChannel()
    
public  bytegetPrecision()
    
public  intgetSQLType()
    
public  bytegetScale()
    
public  TablegetTable()
    
public  DataTypegetType()
    
public  intgetVarLenTableIndex()
    
public  booleanisAutoNumber()
    
public  booleanisCompressedUnicode()
    
public  booleanisVariableLength()
    
public  Objectread(byte[] data)
    
public  Objectread(byte[] data, ByteOrder order)
    
public  voidsetAutoNumber(boolean autoNumber)
    
public  voidsetColumnIndex(int newColumnIndex)
    
public  voidsetColumnNumber(short newColumnNumber)
    
public  voidsetFixedDataOffset(int newOffset)
    
public  voidsetLength(short length)
    
public  voidsetLengthInUnits(short unitLength)
    
public  voidsetName(String name)
    
public  voidsetPrecision(byte newPrecision)
    
public  voidsetSQLType(int type)
    
public  voidsetSQLType(int type, int lengthInUnits)
    
public  voidsetScale(byte newScale)
    
public  voidsetType(DataType type)
     Also sets the length and the variable length flag, inferred from the type.
public  voidsetVarLenTableIndex(int idx)
    
public  voidsetVariableLength(boolean variableLength)
    
public static  booleantoBooleanValue(Object obj)
    
public static  CharSequencetoCharSequence(Object value)
    
public  StringtoString()
    
public  voidvalidate(JetFormat format)
     Checks that this column definition is valid.
public  ByteBufferwrite(Object obj, int remainingRowLength)
    
public  ByteBufferwrite(Object obj, int remainingRowLength, ByteOrder order)
    
public  ByteBufferwriteFixedLengthField(Object obj, ByteOrder order)
    
public  ByteBufferwriteLongValue(byte[] value, int remainingRowLength)
     Write an LVAL column into a ByteBuffer inline if it fits, otherwise in other data page(s).

Field Detail
AUTO_NUMBER
final public static Object AUTO_NUMBER(Code)
Meaningless placeholder object for inserting values in an autonumber column. it is not required that this value be used (any passed in value is ignored), but using this placeholder may make code more obvious.



AUTO_NUMBER_FLAG_MASK
final public static byte AUTO_NUMBER_FLAG_MASK(Code)
mask for the auto number bit



FIXED_LEN_FLAG_MASK
final public static byte FIXED_LEN_FLAG_MASK(Code)
mask for the fixed len bit



UNKNOWN_FLAG_MASK
final public static byte UNKNOWN_FLAG_MASK(Code)
mask for the unknown bit




Constructor Detail
Column
public Column()(Code)



Column
public Column(JetFormat format)(Code)



Column
Column(boolean testing)(Code)
Only used by unit tests



Column
public Column(Table table, ByteBuffer buffer, int offset) throws IOException(Code)
Read a column definition in from a buffer
Parameters:
  table - owning table
Parameters:
  buffer - Buffer containing column definition
Parameters:
  offset - Offset in the buffer at which the column definition starts




Method Detail
compareTo
public int compareTo(Column other)(Code)



countNonLongVariableLength
public static short countNonLongVariableLength(List<Column> columns)(Code)

Parameters:
  columns - A list of columns in a table definition The number of variable length columns which are not long valuesfound in the list



countVariableLength
public static short countVariableLength(List<Column> columns)(Code)

Parameters:
  columns - A list of columns in a table definition The number of variable length columns found in the list



decodeUncompressedText
public static String decodeUncompressedText(byte[] textBytes, JetFormat format)(Code)

Parameters:
  textBytes - bytes of text to decode
Parameters:
  format - relevant db format the decoded string



encodeUncompressedText
public static ByteBuffer encodeUncompressedText(CharSequence text, JetFormat format)(Code)

Parameters:
  text - Text to encode
Parameters:
  format - relevant db format A buffer with the text encoded



getColumnIndex
public int getColumnIndex()(Code)



getColumnNumber
public short getColumnNumber()(Code)



getFixedDataOffset
public int getFixedDataOffset()(Code)



getFormat
public JetFormat getFormat()(Code)



getLength
public short getLength()(Code)



getLengthInUnits
public short getLengthInUnits()(Code)



getName
public String getName()(Code)



getPageChannel
public PageChannel getPageChannel()(Code)



getPrecision
public byte getPrecision()(Code)



getSQLType
public int getSQLType() throws SQLException(Code)



getScale
public byte getScale()(Code)



getTable
public Table getTable()(Code)



getType
public DataType getType()(Code)



getVarLenTableIndex
public int getVarLenTableIndex()(Code)



isAutoNumber
public boolean isAutoNumber()(Code)



isCompressedUnicode
public boolean isCompressedUnicode()(Code)



isVariableLength
public boolean isVariableLength()(Code)



read
public Object read(byte[] data) throws IOException(Code)
Deserialize a raw byte value for this column into an Object
Parameters:
  data - The raw byte value The deserialized Object



read
public Object read(byte[] data, ByteOrder order) throws IOException(Code)
Deserialize a raw byte value for this column into an Object
Parameters:
  data - The raw byte value
Parameters:
  order - Byte order in which the raw value is stored The deserialized Object



setAutoNumber
public void setAutoNumber(boolean autoNumber)(Code)



setColumnIndex
public void setColumnIndex(int newColumnIndex)(Code)



setColumnNumber
public void setColumnNumber(short newColumnNumber)(Code)



setFixedDataOffset
public void setFixedDataOffset(int newOffset)(Code)



setLength
public void setLength(short length)(Code)



setLengthInUnits
public void setLengthInUnits(short unitLength)(Code)



setName
public void setName(String name)(Code)



setPrecision
public void setPrecision(byte newPrecision)(Code)



setSQLType
public void setSQLType(int type) throws SQLException(Code)



setSQLType
public void setSQLType(int type, int lengthInUnits) throws SQLException(Code)



setScale
public void setScale(byte newScale)(Code)



setType
public void setType(DataType type)(Code)
Also sets the length and the variable length flag, inferred from the type. For types with scale/precision, sets the scale and precision to default values.



setVarLenTableIndex
public void setVarLenTableIndex(int idx)(Code)



setVariableLength
public void setVariableLength(boolean variableLength)(Code)



toBooleanValue
public static boolean toBooleanValue(Object obj)(Code)
Interpret a boolean value (null == false)



toCharSequence
public static CharSequence toCharSequence(Object value)(Code)
an appropriate CharSequence representation of the given object.



toString
public String toString()(Code)



validate
public void validate(JetFormat format)(Code)
Checks that this column definition is valid.
throws:
  IllegalArgumentException - if this column definition is invalid.



write
public ByteBuffer write(Object obj, int remainingRowLength) throws IOException(Code)
Serialize an Object into a raw byte value for this column in little endian order
Parameters:
  obj - Object to serialize A buffer containing the bytes



write
public ByteBuffer write(Object obj, int remainingRowLength, ByteOrder order) throws IOException(Code)
Serialize an Object into a raw byte value for this column
Parameters:
  obj - Object to serialize
Parameters:
  order - Order in which to serialize A buffer containing the bytes



writeFixedLengthField
public ByteBuffer writeFixedLengthField(Object obj, ByteOrder order) throws IOException(Code)
Serialize an Object into a raw byte value for this column
Parameters:
  obj - Object to serialize
Parameters:
  order - Order in which to serialize A buffer containing the bytes



writeLongValue
public ByteBuffer writeLongValue(byte[] value, int remainingRowLength) throws IOException(Code)
Write an LVAL column into a ByteBuffer inline if it fits, otherwise in other data page(s).
Parameters:
  value - Value of the LVAL column A buffer containing the LVAL definition and (possibly) the columnvalue (unless written to other pages)



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.