1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.synchronoss.cpo.jdbc;
22
23 import org.synchronoss.cpo.meta.domain.CpoArgument;
24
25
26
27
28
29
30 public class JdbcCpoArgument extends CpoArgument implements java.io.Serializable, java.lang.Cloneable {
31
32
33
34
35 private static final long serialVersionUID = 1L;
36 private static final String IN_PARAMETER = "IN";
37 private static final String OUT_PARAMETER = "OUT";
38 private static final String INOUT_PARAMETER = "BOTH";
39 private String scope = null;
40 private String typeInfo = null;
41
42 public JdbcCpoArgument() {
43 super();
44 }
45
46 @Override
47 public JdbcCpoAttribute getAttribute() {
48 return (JdbcCpoAttribute) super.getAttribute();
49 }
50
51 public boolean isInParameter() {
52 return IN_PARAMETER.equals(getScope()) || INOUT_PARAMETER.equals(getScope());
53 }
54
55 public boolean isOutParameter() {
56 return OUT_PARAMETER.equals(getScope()) || INOUT_PARAMETER.equals(getScope());
57 }
58
59 public String getScope() {
60 return scope;
61 }
62
63 public void setScope(String scope) {
64 this.scope = scope;
65 }
66
67 public String getTypeInfo() {
68 return typeInfo;
69 }
70
71 public void setTypeInfo(String typeInfo) {
72 this.typeInfo = typeInfo;
73 }
74
75 }