Java Doc for CallParameter.java in  » Database-ORM » ODAL » com » completex » objective » components » persistency » 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 » ODAL » com.completex.objective.components.persistency 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.completex.objective.components.persistency.Parameter
      com.completex.objective.components.persistency.CallParameter

CallParameter
public class CallParameter extends Parameter (Code)
Represents stored procedure ccall parameter
author:
   Gennady Krizhevsky

Inner Class :public static class Mode
Inner Class :public static class RefCursorParameter extends CallParameter

Field Summary
final public static  ModeMODE_IN
    
final public static  ModeMODE_INOUT
    
final public static  ModeMODE_OUT
    
final public static  RefCursorParameterPARAMETER_REF_CURSOR
     Marker for reference cursor.
final public static  StringTAG_JDBC_TYPE
    
final public static  StringTAG_MODE
    
final public static  StringTAG_REF_CURSOR
    

Constructor Summary
public  CallParameter(Map parameter)
    
public  CallParameter()
    
public  CallParameter(Object value, Mode mode, int jdbcType)
    
Parameters:
  value - value of this parameter.
public  CallParameter(Object value, Mode mode, int jdbcType, String jdbcTypeName)
     Note that jdbcType and jdbcTypeName are only used for OUT parameters
Parameters:
  value - value value of this parameter.
public  CallParameter(Object value, Mode mode, ColumnType type)
    
Parameters:
  value - value value of this parameter.
public  CallParameter(Object value, Mode mode, ColumnType type, int jdbcType, String jdbcTypeName)
     Note that one may need both ColumnType and jdbcType/jdbcTypeName set.

Method Summary
protected  PropertyMapfromMap0(Map parameter)
    
public  intgetJdbcScale()
     Returns scale the desired number of digits to the right of the decimal point.
public  intgetJdbcType(DatabasePolicy policy)
    
public  StringgetJdbcTypeName(DatabasePolicy policy)
    
public  ModegetMode()
    
public  booleanisIn()
     Returns true if mode == MODE_IN || mode == MODE_INOUT.
public  booleanisOut()
     Returns true if mode == MODE_OUT || mode == MODE_INOUT.
public  booleanisRefCursor()
    
public  booleanisSkipBackPopulation()
    
public  voidsetJdbcScale(int jdbcScale)
     Sets scale - the desired number of digits to the right of the decimal point.
public  voidsetMode(Mode mode)
    
public  voidsetOutValue(Object value)
     Sets value for OUT parameter.
public  voidsetSkipBackPopulation(boolean skipBackPopulation)
    
public static  ModetoMode(String name)
    

Field Detail
MODE_IN
final public static Mode MODE_IN(Code)
Marker for IN call parameter



MODE_INOUT
final public static Mode MODE_INOUT(Code)
Marker for IN and OUT call parameter



MODE_OUT
final public static Mode MODE_OUT(Code)
Marker for OUT call parameter



PARAMETER_REF_CURSOR
final public static RefCursorParameter PARAMETER_REF_CURSOR(Code)
Marker for reference cursor. When setting refernce cursor parameter always use CallParameter.PARAMETER_REF_CURSOR



TAG_JDBC_TYPE
final public static String TAG_JDBC_TYPE(Code)



TAG_MODE
final public static String TAG_MODE(Code)



TAG_REF_CURSOR
final public static String TAG_REF_CURSOR(Code)




Constructor Detail
CallParameter
public CallParameter(Map parameter)(Code)



CallParameter
public CallParameter()(Code)
Creates new call parameter in default mode - MODE_INOUT
See Also:   Mode
See Also:   CallParameter.MODE_INOUT



CallParameter
public CallParameter(Object value, Mode mode, int jdbcType)(Code)

Parameters:
  value - value of this parameter. Setting it in constructor only makes sense forIN parameters
Parameters:
  mode - one of CallParameter.MODE_XXX fields
Parameters:
  jdbcType - one of java.sql.Types types
See Also:   java.sql.Types



CallParameter
public CallParameter(Object value, Mode mode, int jdbcType, String jdbcTypeName)(Code)
Note that jdbcType and jdbcTypeName are only used for OUT parameters
Parameters:
  value - value value of this parameter. Setting it in constructor only makes sense forIN parameters
Parameters:
  mode - mode one of CallParameter.MODE_XXX fields
Parameters:
  jdbcType - one of java.sql.Types types
Parameters:
  jdbcTypeName - the fully-qualified name of an SQL structured type
See Also:   java.sql.Types



CallParameter
public CallParameter(Object value, Mode mode, ColumnType type)(Code)

Parameters:
  value - value value of this parameter. Setting it in constructor only makes sense forIN parameters
Parameters:
  mode - mode one of CallParameter.MODE_XXX fields
Parameters:
  type - column type of the field this parameter corresponds to
See Also:   java.sql.Types



CallParameter
public CallParameter(Object value, Mode mode, ColumnType type, int jdbcType, String jdbcTypeName)(Code)
Note that one may need both ColumnType and jdbcType/jdbcTypeName set. Even though ColumnType has jdbcType inside it works rather as a default one. In case the parameter one is set it will take precedence. We can take as an example when it would we beneficial to have both set the case when the object field is described as being of ColumnType.OBJECT type but when retrieving java.sql.Types.Clob is specified and the object field will actually be set to Clob.
Parameters:
  value - value value of this parameter. Setting it in constructor only makes sense forIN parameters
Parameters:
  mode - mode one of CallParameter.MODE_XXX fields
Parameters:
  type - column type of the field this parameter corresponds to
Parameters:
  jdbcType - one of java.sql.Types types
Parameters:
  jdbcTypeName - the fully-qualified name of an SQL structured type
See Also:   java.sql.Types




Method Detail
fromMap0
protected PropertyMap fromMap0(Map parameter)(Code)

See Also:   Parameter.fromMap0(java.util.Map)



getJdbcScale
public int getJdbcScale()(Code)
Returns scale the desired number of digits to the right of the decimal point. It must be greater than or equal to zero. scale - the desired number of digits to the right of thedecimal point. It must be greater than or equal to zero.



getJdbcType
public int getJdbcType(DatabasePolicy policy)(Code)
Returns jdbcType one of java.sql.Types types
Parameters:
  policy - jdbcType one of java.sql.Types types



getJdbcTypeName
public String getJdbcTypeName(DatabasePolicy policy)(Code)
Returns jdbcTypeName the fully-qualified name of an SQL structured type
Parameters:
  policy - jdbcTypeName the fully-qualified name of an SQL structured type



getMode
public Mode getMode()(Code)
Returns mode that defines this parameters as being IN/OUT or INOUT - one of CallParameter.MODE_XXX fields mode that defines this parameters as being IN/OUT or INOUT - one of CallParameter.MODE_XXX fields



isIn
public boolean isIn()(Code)
Returns true if mode == MODE_IN || mode == MODE_INOUT. true if mode == MODE_IN || mode == MODE_INOUT.



isOut
public boolean isOut()(Code)
Returns true if mode == MODE_OUT || mode == MODE_INOUT. true if mode == MODE_OUT || mode == MODE_INOUT.



isRefCursor
public boolean isRefCursor()(Code)
Returns true if this is reference cursor OUT parameter true if this is reference cursor OUT parameter



isSkipBackPopulation
public boolean isSkipBackPopulation()(Code)
Returns true if the value population for OUT parameter is not needed or desirable true if the value population for OUT parameter is not needed or desirable



setJdbcScale
public void setJdbcScale(int jdbcScale)(Code)
Sets scale - the desired number of digits to the right of the decimal point. It must be greater than or equal to zero.
Parameters:
  jdbcScale - the desired number of digits to the right of thedecimal point. It must be greater than or equal to zero.



setMode
public void setMode(Mode mode)(Code)
Sets mode that defines this parameters as being IN/OUT or INOUT - one of CallParameter.MODE_XXX fields
Parameters:
  mode - mode that defines this parameters as being IN/OUT or INOUT - one of CallParameter.MODE_XXX fields



setOutValue
public void setOutValue(Object value)(Code)
Sets value for OUT parameter. It is called by Persistency after the retrieval.
Parameters:
  value - retrieved value
throws:
  OdalRuntimePersistencyException - if this is not OUT parameter



setSkipBackPopulation
public void setSkipBackPopulation(boolean skipBackPopulation)(Code)
Sets true if the value population for OUT parameter is not needed or desirable
Parameters:
  skipBackPopulation - true if the value population for OUT parameter is not needed or desirable



toMode
public static Mode toMode(String name)(Code)
Mode by its name
Parameters:
  name - mode name Mode by its name



Fields inherited from com.completex.objective.components.persistency.Parameter
final public static String TAG_BINARY(Code)(Java Doc)
final public static String TAG_COLUMN_TYPE(Code)(Java Doc)
final public static String TAG_COLUMN_TYPE_CLASS(Code)(Java Doc)
final public static String TAG_VALUE(Code)(Java Doc)

Methods inherited from com.completex.objective.components.persistency.Parameter
public void fromMap(Map parameter)(Code)(Java Doc)
protected PropertyMap fromMap0(Map parameter)(Code)(Java Doc)
public int getJdbcType()(Code)(Java Doc)
public String getJdbcTypeName()(Code)(Java Doc)
public ColumnType getType()(Code)(Java Doc)
public Object getValue()(Code)(Java Doc)
public void setJdbcType(int jdbcType)(Code)(Java Doc)
public void setJdbcTypeName(String jdbcTypeName)(Code)(Java Doc)
protected void setValue(Object value)(Code)(Java Doc)
public Map toMap()(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.