Source Code Cross Referenced for FdocaSimpleDataArray.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » client » net » 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 » db derby 10.2 » org.apache.derby.client.net 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:
003:           Derby - Class org.apache.derby.client.net.FdocaSimpleDataArray
004:
005:           Licensed to the Apache Software Foundation (ASF) under one or more
006:           contributor license agreements.  See the NOTICE file distributed with
007:           this work for additional information regarding copyright ownership.
008:           The ASF licenses this file to You under the Apache License, Version 2.0
009:           (the "License"); you may not use this file except in compliance with
010:           the License.  You may obtain a copy of the License at
011:
012:              http://www.apache.org/licenses/LICENSE-2.0
013:
014:           Unless required by applicable law or agreed to in writing, software
015:           distributed under the License is distributed on an "AS IS" BASIS,
016:           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017:           See the License for the specific language governing permissions and
018:           limitations under the License.
019:
020:         */
021:
022:        package org.apache.derby.client.net;
023:
024:        class FdocaSimpleDataArray {
025:            //---------------------navigational members-----------------------------------
026:
027:            //-----------------------------state------------------------------------------
028:
029:            // store the protocol type. this is needed to know
030:            // which protocol type the mdd override is for.
031:            int protocolType_;
032:
033:            // the FD:OCA field type indicator shows exactly how the data is represented
034:            // in the environment.  see the FD:OCA reference for a detailed explanation of
035:            // these types.
036:            int fdocaFieldType_;
037:
038:            // this is the representation used by the DNC converters.  this is like the
039:            // FD:OCA field type but the dnc converters don't use FD:OCA types as input.
040:            int representation_;
041:
042:            // the ccsid identifies the encoding of the character data.  converting the
043:            // ccsid into binary form generates the four byte representation.  The
044:            // FD:OCA rules state that if the high order 16 bits of the CCSID field
045:            // are zero, then the low order 16 bits are to be interpreted as a CCSID
046:            int ccsid_;
047:
048:            // indicates the number of bytes each character takes in storage.
049:            // 1 is used for character, date, time, timestamp, and numeric character fields.
050:            // it must be 0 for all other types.
051:            int characterSize_;
052:
053:            // this is used to specify mode of interpretation of FD:OCA
054:            // architecture for all variable length data types (including null
055:            // terminated), that as the SBCS variable character type.  The
056:            // low order bit of this byte is used to control interpretation
057:            // of Length Fields in SDAs for variable length types.  A '0' in that
058:            // bit indicates that non-zero length field values indicate the space
059:            // reserved for data and that all the space is transmitted
060:            // whether or not it contains valid data.  In the case of variable
061:            // length types, the first two bytes of the data itself determine
062:            // the valid data length.  A '1' in this bit shows that non-zero length
063:            // field values indicate the maximum value of the length fields
064:            // that the data will contain.  Only enough space to contain each
065:            // data value is transmitted for each value.
066:            int mode_;
067:
068:            // this represents the maximum valid value.  when and if a group
069:            // data array (GDA) triplet overrides it, the value can be reduced.
070:            // For character fields with only DBCS characters, this is the length in
071:            // characters (bytes/2).  For all other cases, the length is in bytes.
072:            // It does not include the length of the length field (variable length
073:            // types) or null indicator (nullable types).
074:            //
075:            int fieldLength_;
076:
077:            // this is a group of types which indicates how the data length are computed.
078:            int typeToUseForComputingDataLength_;
079:
080:            //---------------------constructors/finalizer---------------------------------
081:
082:            FdocaSimpleDataArray(int protocolType, int fdocaFieldType,
083:                    int representation, int ccsid, int characterSize, int mode,
084:                    int fieldLength, int typeToUseForComputingDataLength) {
085:                protocolType_ = protocolType;
086:                fdocaFieldType_ = fdocaFieldType;
087:                representation_ = representation;
088:                ccsid_ = ccsid;
089:                characterSize_ = characterSize;
090:                mode_ = mode;
091:                fieldLength_ = fieldLength;
092:                typeToUseForComputingDataLength_ = typeToUseForComputingDataLength;
093:            }
094:
095:            public void update(int protocolType, int fdocaFieldType,
096:                    int representation, int ccsid, int characterSize, int mode,
097:                    int fieldLength, int typeToUseForComputingDataLength) {
098:                protocolType_ = protocolType;
099:                fdocaFieldType_ = fdocaFieldType;
100:                representation_ = representation;
101:                ccsid_ = ccsid;
102:                characterSize_ = characterSize;
103:                mode_ = mode;
104:                fieldLength_ = fieldLength;
105:                typeToUseForComputingDataLength_ = typeToUseForComputingDataLength;
106:            }
107:
108:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.