Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HdbTdbArchivingApi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Tango controls archiving
HdbTdbArchivingApi
Commits
84228c5d
Commit
84228c5d
authored
Dec 14, 2016
by
Gwenaelle ABEILLE
Browse files
Options
Downloads
Patches
Plain Diff
release hdbtdbArchivingApi-2.5.8
parent
e8ed18ad
No related branches found
Tags
hdbtdbArchivingApi-2.5.8
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pom.xml
+1
-1
1 addition, 1 deletion
pom.xml
src/main/java/fr/soleil/archiving/hdbtdb/api/management/attributes/adtapt/tableselector/AttributeIds.java
+37
-42
37 additions, 42 deletions
...agement/attributes/adtapt/tableselector/AttributeIds.java
with
38 additions
and
43 deletions
pom.xml
+
1
−
1
View file @
84228c5d
...
...
@@ -9,7 +9,7 @@
</parent>
<groupId>
fr.soleil.lib
</groupId>
<artifactId>
hdbtdbArchivingApi
</artifactId>
<version>
2.5.8
-SNAPSHOT
</version>
<version>
2.5.8
</version>
<name>
hdbtdbArchivingApi
</name>
<developers>
<developer>
...
...
This diff is collapsed.
Click to expand it.
src/main/java/fr/soleil/archiving/hdbtdb/api/management/attributes/adtapt/tableselector/AttributeIds.java
+
37
−
42
View file @
84228c5d
...
...
@@ -15,7 +15,7 @@ import fr.soleil.database.connection.AbstractDataBaseConnector;
public
class
AttributeIds
extends
AttributesData
{
pr
otec
te
d
final
Map
<
String
,
Integer
>
attributesIDs
=
new
ConcurrentHashMap
<
String
,
Integer
>();
pr
iva
te
final
static
Map
<
String
,
Integer
>
ATTRIBUTE_ID_CACHE
=
new
ConcurrentHashMap
<
String
,
Integer
>();
public
AttributeIds
(
final
AbstractDataBaseConnector
connector
)
{
super
(
connector
);
...
...
@@ -33,10 +33,7 @@ public class AttributeIds extends AttributesData {
public
int
getAttID
(
final
String
attributeName
,
final
boolean
caseSensitiveDb
)
throws
ArchivingException
{
int
attributeID
=
getAttributeID
(
attributeName
);
if
(
attributeID
==
0
)
{
synchronized
(
this
)
{
attributeID
=
getAttributeID
(
attributeName
);
// DBA-1178: reduce the attribute id recovery request
if
(
attributeID
==
0
)
{
if
(
connector
!=
null
)
{
ResultSet
rset
=
null
;
Connection
conn
=
null
;
...
...
@@ -74,8 +71,6 @@ public class AttributeIds extends AttributesData {
}
}
}
}
}
return
attributeID
;
}
...
...
@@ -128,7 +123,7 @@ public class AttributeIds extends AttributesData {
protected
int
getAttributeID
(
final
String
attributeName
)
{
int
id
;
final
Integer
temp
=
attributeName
==
null
?
null
:
attributesIDs
.
get
(
attributeName
.
toLowerCase
());
final
Integer
temp
=
attributeName
==
null
?
null
:
ATTRIBUTE_ID_CACHE
.
get
(
attributeName
.
toLowerCase
());
if
(
temp
==
null
)
{
id
=
0
;
}
else
{
...
...
@@ -139,12 +134,12 @@ public class AttributeIds extends AttributesData {
protected
void
putAttributeID
(
final
String
attributeName
,
final
int
attributeID
)
{
if
(
attributeName
!=
null
)
{
attributesIDs
.
put
(
attributeName
.
toLowerCase
(),
Integer
.
valueOf
(
attributeID
)
)
;
ATTRIBUTE_ID_CACHE
.
put
(
attributeName
.
toLowerCase
(),
attributeID
);
}
}
public
void
clear
()
{
attributesIDs
.
clear
();
ATTRIBUTE_ID_CACHE
.
clear
();
}
@Override
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment