Java Doc for CounterColumns.java in  » Database-JDBC-Connection-Pool » octopus » org » webdocwf » util » loader » 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 JDBC Connection Pool » octopus » org.webdocwf.util.loader 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.webdocwf.util.loader.CounterColumns

CounterColumns
public class CounterColumns (Code)
CounterColumns - insert auto increment values in target counter columns.



Constructor Summary
public  CounterColumns()
    

Method Summary
public  voidcounterColumnTypes(String tableName, String tableID, Connection c, int firstColumn, boolean columnsSuportedTarget, ConfigReader configReaderTarget)
     Method counterColumnTypes is used to put types of constant columns into global vector sorted in target tables.
public  VectorgetCounterIncrement(String tableName, String tableID)
    
public  VectorgetCounterName(String tableName, String tableID)
    
public  StringgetCounterNameColumn()
    
public  VectorgetCounterStartValue(String tableName, String tableID)
    
public  VectorgetCounterStartValueReset(String tableName, String tableID)
    
public  StringgetCounterTableName()
    
public  VectorgetCounterValue(String tableName, String tableID)
    
public  StringgetCounterValueColumn()
    
public  VectorgetSubCounterIncrement(String tableName, String tableID)
    
public  VectorgetSubCounterKeyColumns(String tableName, String tableID)
    
public  VectorgetSubCounterKeyColumnsTyp(String tableName, String tableID)
    
public  VectorgetSubCounterKeyValues(String tableName, String tableID)
    
public  VectorgetSubCounterName(String tableName, String tableID)
    
public  VectorgetSubCounterStartValue(String tableName, String tableID)
    
public  VectorgetSubTargetColumnName(String tableName, String tableID)
    
public  VectorgetSubTargetColumnTyp(String tableName, String tableID)
    
public  VectorgetSubValueMode(String tableName, String tableID)
    
public  VectorgetTargetColumnName(String tableName, String tableID)
    
public  VectorgetTargetColumnTyp(String tableName, String tableID)
    
public  VectorgetValueMode(String tableName, String tableID)
    
public  voidreadConstantColumnAttributes(Document doc, int importJob)
    
public  voidreadConstantColumnsParameters(Document doc, int importJob)
    
public  VectorreadSubCounterValue(String tableName, String tableID, Connection conn, int firstColumn, String tableMode, ConfigReader targetConfigReader)
    
public  voidreset()
    
public  voidresetSubCounterCache()
    
public  voidsetConstantColumnsParameters(String tableName, String tableID)
    
public  voidsetCounterNameColumn(String nameColumn)
    
public  voidsetCounterTableName(String tableName)
    
public  voidsetCounterValue(String tableName, String tableID)
    
public  voidsetCounterValueColumn(String valueColumn)
    
public  voidsetLogger(Logger logger)
    
public  voidsetSubCounterKeyValues(String tableName, String tableID, Hashtable values)
    
public  voidsetTargetColumnStartValues(String tableName, String tableID, Connection conn, int firstColumn)
    
public  voidupdateCounter(Connection conn)
    


Constructor Detail
CounterColumns
public CounterColumns()(Code)
Empty constructor of CounterColumns class




Method Detail
counterColumnTypes
public void counterColumnTypes(String tableName, String tableID, Connection c, int firstColumn, boolean columnsSuportedTarget, ConfigReader configReaderTarget) throws SQLException, NullPointerException(Code)
Method counterColumnTypes is used to put types of constant columns into global vector sorted in target tables. If there is an error, Exception "SQLException" or "NullPointerException" is thrown.
Parameters:
  c - Connection to target database.
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID
Parameters:
  firstColumn - is first column
throws:
  SQLException - Constructs an SQLException object with a reason.
throws:
  NullPointerException - Constructs a NullPointerException with the specified detail message.



getCounterIncrement
public Vector getCounterIncrement(String tableName, String tableID)(Code)
This method read value of counterIncrement parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID Vector of increment values for all counter columns in table tableName.



getCounterName
public Vector getCounterName(String tableName, String tableID)(Code)
This method read value of counterNames parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID vector



getCounterNameColumn
public String getCounterNameColumn()(Code)
This method read value of counterNameColumn parameter String name of column in counter table with counter names.



getCounterStartValue
public Vector getCounterStartValue(String tableName, String tableID)(Code)
This method read value of counterStartValue parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID Vector of start values for all counter columns in table tableName.



getCounterStartValueReset
public Vector getCounterStartValueReset(String tableName, String tableID)(Code)
This method read value of counterStartValueReset parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID vector



getCounterTableName
public String getCounterTableName()(Code)
This method read value of counterTableName parameter string name of counter table



getCounterValue
public Vector getCounterValue(String tableName, String tableID)(Code)
This method set values for currentCounterValue parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID Vector of current counter values for table - tableName



getCounterValueColumn
public String getCounterValueColumn()(Code)
This method read value of counterValueColumn parameter String name of column in counter table with current values of each counter



getSubCounterIncrement
public Vector getSubCounterIncrement(String tableName, String tableID)(Code)
This method read value of getSubCounterIncrement parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID vector



getSubCounterKeyColumns
public Vector getSubCounterKeyColumns(String tableName, String tableID)(Code)
This method read value of subCounterKeyColumns parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID vector



getSubCounterKeyColumnsTyp
public Vector getSubCounterKeyColumnsTyp(String tableName, String tableID)(Code)
This method read value of subCounterKeyColumnsTyp parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID vector



getSubCounterKeyValues
public Vector getSubCounterKeyValues(String tableName, String tableID)(Code)
This method read value of subCounterKeyValues parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID vector



getSubCounterName
public Vector getSubCounterName(String tableName, String tableID)(Code)
This method read value of subCounterName parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID vector



getSubCounterStartValue
public Vector getSubCounterStartValue(String tableName, String tableID)(Code)
This method read value of getSubCounterStartValue parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID vector



getSubTargetColumnName
public Vector getSubTargetColumnName(String tableName, String tableID)(Code)
This method read value of subTargetColumnName parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID vector



getSubTargetColumnTyp
public Vector getSubTargetColumnTyp(String tableName, String tableID)(Code)
This method read value of subTargetColumnTyp parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID vector



getSubValueMode
public Vector getSubValueMode(String tableName, String tableID)(Code)
This method read value of subValueMode parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID vector



getTargetColumnName
public Vector getTargetColumnName(String tableName, String tableID)(Code)
This method read value of targetColumnName parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID Vector of counter column names for all counter columns in table tableName.



getTargetColumnTyp
public Vector getTargetColumnTyp(String tableName, String tableID)(Code)
This method read value of targetColumnTyp parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID Vector of counter column types for all counter columns in table tableName.



getValueMode
public Vector getValueMode(String tableName, String tableID)(Code)
This method read value of valueMode parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID vector



readConstantColumnAttributes
public void readConstantColumnAttributes(Document doc, int importJob)(Code)
This method sets the value of: counterTableName, counterNameColumn and counterValueColumn parameters
Parameters:
  doc - represents Object document
Parameters:
  importJob - represents current import job



readConstantColumnsParameters
public void readConstantColumnsParameters(Document doc, int importJob)(Code)
This method sets the value of next parameters: vecCounterName, vecCounterIncrement, vecCounterStartValue, vecTargetColumnName, vecValueMode, vecCounterStartValueReset, vecTargetTableName, vecTargetTableID, vecSubCounterName, vecSubCounterIncrement, vecSubCounterStartValue, vecSubTargetTableName, vecSubTargetTableID, vecSubTargetColumnName, vecSubValueMode and vecSubKeyColumns
Parameters:
  doc - represents Object document
Parameters:
  importJob - represents current import job



readSubCounterValue
public Vector readSubCounterValue(String tableName, String tableID, Connection conn, int firstColumn, String tableMode, ConfigReader targetConfigReader) throws SQLException, LoaderException(Code)
This method read value of sub counter parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID
Parameters:
  conn - is connection
Parameters:
  firstColumn - is first column vector
throws:
  SQLException -



reset
public void reset()(Code)
This method reset all variables



resetSubCounterCache
public void resetSubCounterCache()(Code)
This method reset cach for subcounter



setConstantColumnsParameters
public void setConstantColumnsParameters(String tableName, String tableID)(Code)
This method sets the value of Constant Columns parameters
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID



setCounterNameColumn
public void setCounterNameColumn(String nameColumn)(Code)
This method sets the value of counterNameColumn parameter
Parameters:
  nameColumn - is name of the column



setCounterTableName
public void setCounterTableName(String tableName)(Code)
This method sets the value of counterTableName parameter
Parameters:
  tableName - is table name



setCounterValue
public void setCounterValue(String tableName, String tableID)(Code)
This method set values for Counter columns
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID



setCounterValueColumn
public void setCounterValueColumn(String valueColumn)(Code)
This method sets the value of counterValueColumn parameter
Parameters:
  valueColumn - is value of the column



setLogger
public void setLogger(Logger logger)(Code)
This method set logger object



setSubCounterKeyValues
public void setSubCounterKeyValues(String tableName, String tableID, Hashtable values)(Code)
This method set value of subCounterKeyValues parameter
Parameters:
  tableName - defines table name
Parameters:
  tableID - defines table ID
Parameters:
  values - is hashtable new key values



setTargetColumnStartValues
public void setTargetColumnStartValues(String tableName, String tableID, Connection conn, int firstColumn) throws SQLException(Code)
This method set values for currentCounterValue parameter
Parameters:
  tableName - is table name
Parameters:
  tableID - is table ID
Parameters:
  conn - is connection to target database
Parameters:
  firstColumn - is first column
throws:
  SQLException -



updateCounter
public void updateCounter(Connection conn) throws SQLException(Code)
This method check the update operation
Parameters:
  conn - is connection
throws:
  SQLException -



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.