Java Doc for VerifyMappingsTask.java in  » Database-ORM » db-ojb » org » apache » ojb » broker » ant » 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 ORM » db ojb » org.apache.ojb.broker.ant 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.ojb.broker.ant.VerifyMappingsTask

VerifyMappingsTask
public class VerifyMappingsTask extends Task (Code)
An Ant task that will read the OJB repository xml file and confirm the following: a)Mapped classes exist. b)Mapped class fields exist c)Mapped database tables exist. d)Mapped database columns exist. e)Mapped database columns jdbc type matches the "jdbc-type" attribute. Obviously you should have built your classes, written your OJB repository.xml file and built your database schema before running this task.
author:
   Daren Drummond
version:
   $Id: $




Method Summary
public  PathcreateClasspath()
     Create the classpath for loading the driver.
public  voidexecute()
    
protected  intgetErrorCount()
    
public  booleangetFailOnError()
     Determines whether this task stops by throwing a BuildException when the first error is encountered.
public  booleangetIgnoreFieldNameCase()
     Determines whether the task ignores the case of the db column name case when looking for db columns.
public  StringgetJdbcDriver()
    
public  StringgetLogon()
    
public  StringgetPassword()
    
public  ClassgetPersistentFieldClass()
     Returns the Class object of the class specified in the OJB.properties file for the "PersistentFieldClass" property.
public  StringgetPropertiesFile()
    
public  StringgetRepositoryFile()
     Gets the path to the OJB repository file.
public  StringgetUrl()
    
public  booleangetUseStrictTypeChecking()
    
public  booleangetUseXMLValidation()
     Determines whether the xml syntax is verified.
protected  intgetWarningCount()
    
public  booleanhasConnectionInfo()
     Tests to see if the jdbc connection information was specified in the tag xml.
 ClassloadClass(String className)
    
public  voidlogInfo(String msg)
     Log an Info message with the Ant out stream.
public  voidlogWarning(String msg)
     Log a warning with the Ant out stream.
public  voidsetClasspath(Path classpath)
     Set the classpath for loading the driver.
public  voidsetClasspathRef(Reference r)
     Set the classpath for loading the driver using the classpath reference.
protected  voidsetErrorCount(int count)
    
public  voidsetFailOnError(String sFailFlag)
     Sets a flag indicating that this Ant task should throw a BuildException if it encounters any verification errors.
public  voidsetIgnoreFieldNameCase(String sIgnoreCaseFlag)
     Sets the flag for ignoring the db column name case when looking for db columns.
public  voidsetJdbcDriver(String jdbcClass)
     Sets the fully qualified class name of the jdbc driver to use.
public  voidsetLogon(String logon)
     Sets the database logon account that the utility should use.
public  voidsetPassword(String password)
     Sets the password for the database logon account.
public  voidsetPropertiesFile(String path)
     Sets the fully qualified path and file name of the OJB properties file.
public  voidsetRepositoryFile(String path)
    
public  voidsetUrl(String url)
     Sets the url connection string for the jdbc driver.
public  voidsetUseStrictTypeChecking(String sTypeCheckingFlag)
     Sets the flag for stict type checking of database column types.
public  voidsetUseXMLValidation(String sValidationFlag)
     Turns on W3C xml validation of the OJB repository.xml file (on by default).
protected  voidsetWarningCount(int count)
    



Method Detail
createClasspath
public Path createClasspath()(Code)
Create the classpath for loading the driver. the classpath



execute
public void execute() throws BuildException(Code)



getErrorCount
protected int getErrorCount()(Code)



getFailOnError
public boolean getFailOnError()(Code)
Determines whether this task stops by throwing a BuildException when the first error is encountered. A flag indicating that the Ant task will throw aBuildException if it encounters any validation errors



getIgnoreFieldNameCase
public boolean getIgnoreFieldNameCase()(Code)
Determines whether the task ignores the case of the db column name case when looking for db columns. Flag indicating if the field name case will beignored when searching for table column names



getJdbcDriver
public String getJdbcDriver()(Code)
Gets the value set by setJdbcDriver(String jdbcClass) Fully qualified class name of the jdbc driver



getLogon
public String getLogon()(Code)
Gets the value set by setLogon(String logon) The database logon account



getPassword
public String getPassword()(Code)
Gets the value set by setPassword(String password) The password for the database logon account



getPersistentFieldClass
public Class getPersistentFieldClass()(Code)
Returns the Class object of the class specified in the OJB.properties file for the "PersistentFieldClass" property. Class The Class object of the "PersistentFieldClass" classspecified in the OJB.properties file.



getPropertiesFile
public String getPropertiesFile()(Code)
Gets the value set by setPropertiesFile(String path) The path and file name of the OJB properties file



getRepositoryFile
public String getRepositoryFile()(Code)
Gets the path to the OJB repository file. (Includes the file name) The path and file name of the OJB repository file



getUrl
public String getUrl()(Code)
Gets the value set by setUrl(String url) The connection string for the jdbc driver



getUseStrictTypeChecking
public boolean getUseStrictTypeChecking()(Code)
Gets the boolean equivalent of the value set by setUseStrictTypeChecking(String sTypeCheckingFlag) Flag indicating if strict type checking will beused when searching for database table columns



getUseXMLValidation
public boolean getUseXMLValidation()(Code)
Determines whether the xml syntax is verified. A flag indicating if W3c xml validation will be used toverify the OJB repository.xml file



getWarningCount
protected int getWarningCount()(Code)



hasConnectionInfo
public boolean hasConnectionInfo()(Code)
Tests to see if the jdbc connection information was specified in the tag xml. true if the jdbc connection information wassupplied in the tag xml



loadClass
Class loadClass(String className) throws ClassNotFoundException(Code)



logInfo
public void logInfo(String msg)(Code)
Log an Info message with the Ant out stream. Info messages can be suppressed from the command line by starting ant with the -quiet option.
Parameters:
  msg - The message to log



logWarning
public void logWarning(String msg)(Code)
Log a warning with the Ant out stream.
Parameters:
  msg - The message to log



setClasspath
public void setClasspath(Path classpath)(Code)
Set the classpath for loading the driver.
Parameters:
  classpath - the classpath



setClasspathRef
public void setClasspathRef(Reference r)(Code)
Set the classpath for loading the driver using the classpath reference.
Parameters:
  r - reference to the classpath



setErrorCount
protected void setErrorCount(int count)(Code)



setFailOnError
public void setFailOnError(String sFailFlag)(Code)
Sets a flag indicating that this Ant task should throw a BuildException if it encounters any verification errors. In most cases, this will have the effect of stopping the build process.
Parameters:
  sFailFlag - Whether to stop the task upon the first error



setIgnoreFieldNameCase
public void setIgnoreFieldNameCase(String sIgnoreCaseFlag)(Code)
Sets the flag for ignoring the db column name case when looking for db columns.
Parameters:
  sIgnoreCaseFlag - Whether the case of the db column name is ignored



setJdbcDriver
public void setJdbcDriver(String jdbcClass)(Code)
Sets the fully qualified class name of the jdbc driver to use.
Parameters:
  jdbcClass - Fully qualified class name of the jdbc driver



setLogon
public void setLogon(String logon)(Code)
Sets the database logon account that the utility should use.
Parameters:
  logon - The database logon account



setPassword
public void setPassword(String password)(Code)
Sets the password for the database logon account.
Parameters:
  password - The password for the database logon account



setPropertiesFile
public void setPropertiesFile(String path)(Code)
Sets the fully qualified path and file name of the OJB properties file.
Parameters:
  path - The path and file name of the OJB properties file



setRepositoryFile
public void setRepositoryFile(String path)(Code)



setUrl
public void setUrl(String url)(Code)
Sets the url connection string for the jdbc driver.
Parameters:
  url - The connection string for the jdbc driver



setUseStrictTypeChecking
public void setUseStrictTypeChecking(String sTypeCheckingFlag)(Code)
Sets the flag for stict type checking of database column types. If this value is set to "true" then the task will log a warning if the table column jdbc type doesn't match the type specified in the OJB repository field descriptor.
Parameters:
  sTypeCheckingFlag - Whether to use strict type checking



setUseXMLValidation
public void setUseXMLValidation(String sValidationFlag)(Code)
Turns on W3C xml validation of the OJB repository.xml file (on by default).
Parameters:
  sValidationFlag - Whether to validate the xml



setWarningCount
protected void setWarningCount(int count)(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.