|
Lines 14-19
Link Here
|
| 14 |
******************************************************************************/ |
14 |
******************************************************************************/ |
| 15 |
package org.eclipse.persistence.internal.jpa.metadata.sequencing; |
15 |
package org.eclipse.persistence.internal.jpa.metadata.sequencing; |
| 16 |
|
16 |
|
|
|
17 |
import org.eclipse.persistence.internal.jpa.metadata.MetadataLogger; |
| 17 |
import org.eclipse.persistence.internal.jpa.metadata.ORMetadata; |
18 |
import org.eclipse.persistence.internal.jpa.metadata.ORMetadata; |
| 18 |
import org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAccessibleObject; |
19 |
import org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAccessibleObject; |
| 19 |
import org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotation; |
20 |
import org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotation; |
|
Lines 30-35
Link Here
|
| 30 |
private Integer m_initialValue; |
31 |
private Integer m_initialValue; |
| 31 |
|
32 |
|
| 32 |
private String m_name; |
33 |
private String m_name; |
|
|
34 |
private String m_schema; |
| 35 |
private String m_catalog; |
| 33 |
private String m_sequenceName; |
36 |
private String m_sequenceName; |
| 34 |
|
37 |
|
| 35 |
/** |
38 |
/** |
|
Lines 48-53
Link Here
|
| 48 |
m_allocationSize = (Integer) sequenceGenerator.getAttribute("allocationSize"); |
51 |
m_allocationSize = (Integer) sequenceGenerator.getAttribute("allocationSize"); |
| 49 |
m_initialValue = (Integer) sequenceGenerator.getAttribute("initialValue"); |
52 |
m_initialValue = (Integer) sequenceGenerator.getAttribute("initialValue"); |
| 50 |
m_name = (String) sequenceGenerator.getAttributeString("name"); |
53 |
m_name = (String) sequenceGenerator.getAttributeString("name"); |
|
|
54 |
m_schema = (String) sequenceGenerator.getAttribute("schema"); |
| 55 |
m_catalog = (String) sequenceGenerator.getAttribute("catalog"); |
| 51 |
m_sequenceName = (String) sequenceGenerator.getAttributeString("sequenceName"); |
56 |
m_sequenceName = (String) sequenceGenerator.getAttributeString("sequenceName"); |
| 52 |
} |
57 |
} |
| 53 |
|
58 |
|
|
Lines 87-92
Link Here
|
| 87 |
|
92 |
|
| 88 |
/** |
93 |
/** |
| 89 |
* INTERNAL: |
94 |
* INTERNAL: |
|
|
95 |
* Used for OX mapping. |
| 96 |
*/ |
| 97 |
public String getCatalog() { |
| 98 |
return m_catalog; |
| 99 |
} |
| 100 |
|
| 101 |
/** |
| 102 |
* INTERNAL: |
| 103 |
* Used for processing. |
| 104 |
*/ |
| 105 |
public String getQualifier() { |
| 106 |
if(m_catalog.length() == 0) { |
| 107 |
if(m_schema.length() == 0) { |
| 108 |
return ""; |
| 109 |
} else { |
| 110 |
return m_schema; |
| 111 |
} |
| 112 |
} else { |
| 113 |
return m_catalog + '.' + m_schema; |
| 114 |
} |
| 115 |
} |
| 116 |
|
| 117 |
/** |
| 118 |
* INTERNAL: |
| 119 |
*/ |
| 120 |
public String getCatalogContext() { |
| 121 |
return MetadataLogger.TABLE_CATALOG; |
| 122 |
} |
| 123 |
|
| 124 |
/** |
| 125 |
* INTERNAL: |
| 90 |
* To satisfy the abstract getIdentifier() method from ORMetadata. |
126 |
* To satisfy the abstract getIdentifier() method from ORMetadata. |
| 91 |
*/ |
127 |
*/ |
| 92 |
@Override |
128 |
@Override |
|
Lines 114-119
Link Here
|
| 114 |
* INTERNAL: |
150 |
* INTERNAL: |
| 115 |
* Used for OX mapping. |
151 |
* Used for OX mapping. |
| 116 |
*/ |
152 |
*/ |
|
|
153 |
public String getSchema() { |
| 154 |
return m_schema; |
| 155 |
} |
| 156 |
|
| 157 |
/** |
| 158 |
* INTERNAL: |
| 159 |
*/ |
| 160 |
public String getSchemaContext() { |
| 161 |
return MetadataLogger.TABLE_SCHEMA; |
| 162 |
} |
| 163 |
|
| 164 |
/** |
| 165 |
* INTERNAL: |
| 166 |
* Used for OX mapping. |
| 167 |
*/ |
| 117 |
public String getSequenceName() { |
168 |
public String getSequenceName() { |
| 118 |
return m_sequenceName; |
169 |
return m_sequenceName; |
| 119 |
} |
170 |
} |
|
Lines 130-135
Link Here
|
| 130 |
* INTERNAL: |
181 |
* INTERNAL: |
| 131 |
* Used for OX mapping. |
182 |
* Used for OX mapping. |
| 132 |
*/ |
183 |
*/ |
|
|
184 |
public void setCatalog(String catalog) { |
| 185 |
m_catalog = catalog; |
| 186 |
} |
| 187 |
|
| 188 |
/** |
| 189 |
* INTERNAL: |
| 190 |
* Used for OX mapping. |
| 191 |
*/ |
| 133 |
public void setInitialValue(Integer initialValue) { |
192 |
public void setInitialValue(Integer initialValue) { |
| 134 |
m_initialValue = initialValue; |
193 |
m_initialValue = initialValue; |
| 135 |
} |
194 |
} |
|
Lines 146-151
Link Here
|
| 146 |
* INTERNAL: |
205 |
* INTERNAL: |
| 147 |
* Used for OX mapping. |
206 |
* Used for OX mapping. |
| 148 |
*/ |
207 |
*/ |
|
|
208 |
public void setSchema(String schema) { |
| 209 |
m_schema = schema; |
| 210 |
} |
| 211 |
|
| 212 |
/** |
| 213 |
* INTERNAL: |
| 214 |
* Used for OX mapping. |
| 215 |
*/ |
| 149 |
public void setSequenceName(String sequenceName) { |
216 |
public void setSequenceName(String sequenceName) { |
| 150 |
m_sequenceName = sequenceName; |
217 |
m_sequenceName = sequenceName; |
| 151 |
} |
218 |
} |