
Public Member Functions | |
| boolean | updateForLock (LSDDbAdmin admin) |
| boolean | set (LSDDbAdmin admin) |
| boolean | set (LSDDbAdmin admin, int status, long size) |
| boolean | update (LSDDbAdmin admin) |
| void | getLock (LSDDbAdmin admin) |
| void | unsetLock (LSDDbAdmin admin) |
| String | toString () |
Static Public Member Functions | |
| static LSDDbLegacy | newLSDDbLegacy (long lid, int status, long idadmin, long iduser, long idcomp, long idprot, long size, String name) |
| static LSDDbLegacy | get (ResultSet resultSet) |
| static String | getWhereCondPl () |
| static LSDDbLegacy | get (LSDDbAdmin admin, long lid) |
| static boolean | del (LSDDbAdmin admin, long lid) |
| static long | findFirstIndex (LSDDbAdmin admin) |
| static ArrayList< LSDDbLegacy > | getLegacies (LSDDbAdmin admin) |
Public Attributes | |
| long | lid = LSDConstants.invalide_idx |
| int | status = -1 |
| long | idadmin = LSDConstants.invalide_idx |
| long | iduser = LSDConstants.invalide_idx |
| long | idcomp = LSDConstants.invalide_idx |
| long | idprot = LSDConstants.invalide_idx |
| long | size = 0 |
| String | name = null |
Static Public Attributes | |
| static final String | table = " lsdlegacy " |
| static final String[] | fields |
| static final int | rlid = 0 |
| static final int | rstatus = 1 |
| static final int | ridadmin = 2 |
| static final int | riduser = 3 |
| static final int | ridcomp = 4 |
| static final int | ridprot = 5 |
| static final int | rsize = 6 |
| static final int | rname = 7 |
Private Member Functions | |
| LSDDbLegacy () | |
| LSDDbLegacy (long lid, int status, long idadmin, long iduser, long idcomp, long idprot, long size, String name) | |
| void | assign (long lid, int status, long idadmin, long iduser, long idcomp, long idprot, long size, String name) |
| void | getLockNoSQL (LSDDbAdmin admin) |
| void | getLockNoJVM (LSDDbAdmin admin) |
| void | unsetLockNoJVM (LSDDbAdmin admin) |
| void | unsetLockNoSQL (LSDDbAdmin admin) |
Static Private Member Functions | |
| static String | getFieldsSetPsiiiisn () |
| static String | getFieldsValuesPlsiiiisn () |
| static LSDDbPreparedStatement | setPGet (LSDDbAdmin admin, long lid) |
| static LSDDbPreparedStatement | setPGet (LSDDbAdmin admin) |
| static LSDDbPreparedStatement | setPUpdate (LSDDbAdmin admin, long lid, int status, long idadmin, long iduser, long idcomp, long idprot, long size, String name) |
| static LSDDbPreparedStatement | setPInsert (LSDDbAdmin admin, long lid, int status, long idadmin, long iduser, long idcomp, long idprot, long size, String name) |
| static LSDDbPreparedStatement | setPUpdate (LSDDbAdmin admin, long lid, int status, long size) |
| static LSDDbPreparedStatement | setPUpdate (LSDDbAdmin admin, long lid, int status) |
| static LSDDbPreparedStatement | setPDel (LSDDbAdmin admin, long lid) |
| static LSDDbPreparedStatement | setPGetforUpdate (LSDDbAdmin admin, long lid) |
Private Attributes | |
| ReentrantLock | lock = null |
Static Private Attributes | |
| static final String | allfields |
| static final String | insertfields |
| static final ConcurrentHashMap < Long, LSDDbLegacy > | chashmap |
| openlsd.database.data.LSDDbLegacy.LSDDbLegacy | ( | ) | [private] |
Create an empty Legacy
| openlsd.database.data.LSDDbLegacy.LSDDbLegacy | ( | long | lid, | |
| int | status, | |||
| long | idadmin, | |||
| long | iduser, | |||
| long | idcomp, | |||
| long | idprot, | |||
| long | size, | |||
| String | name | |||
| ) | [private] |
Create a Legacy from args
| lid | ||
| status | ||
| idadmin | ||
| iduser | ||
| idcomp | ||
| idprot | ||
| size | ||
| name |
| static LSDDbLegacy openlsd.database.data.LSDDbLegacy.newLSDDbLegacy | ( | long | lid, | |
| int | status, | |||
| long | idadmin, | |||
| long | iduser, | |||
| long | idcomp, | |||
| long | idprot, | |||
| long | size, | |||
| String | name | |||
| ) | [static] |
Create a new LSDDbLegacy from arguments
| lid | ||
| status | ||
| idadmin | ||
| iduser | ||
| idcomp | ||
| idprot | ||
| size | ||
| name |
| void openlsd.database.data.LSDDbLegacy.assign | ( | long | lid, | |
| int | status, | |||
| long | idadmin, | |||
| long | iduser, | |||
| long | idcomp, | |||
| long | idprot, | |||
| long | size, | |||
| String | name | |||
| ) | [private] |
Assign new value to this Object
| lid | ||
| status | ||
| idadmin | ||
| iduser | ||
| idcomp | ||
| idprot | ||
| size | ||
| name |
| static LSDDbLegacy openlsd.database.data.LSDDbLegacy.get | ( | ResultSet | resultSet | ) | [static] |
| static String openlsd.database.data.LSDDbLegacy.getFieldsSetPsiiiisn | ( | ) | [static, private] |
Get String for Setting as Set
| static String openlsd.database.data.LSDDbLegacy.getFieldsValuesPlsiiiisn | ( | ) | [static, private] |
Get String for Setting as Values
| static String openlsd.database.data.LSDDbLegacy.getWhereCondPl | ( | ) | [static] |
Get String for Where Condition
| static LSDDbPreparedStatement openlsd.database.data.LSDDbLegacy.setPGet | ( | LSDDbAdmin | admin, | |
| long | lid | |||
| ) | [static, private] |
Create the PreparedStatement for Get
| admin | ||
| lid |
| static LSDDbPreparedStatement openlsd.database.data.LSDDbLegacy.setPGet | ( | LSDDbAdmin | admin | ) | [static, private] |
Create the PreparedStatement for Get
| admin |
| static LSDDbPreparedStatement openlsd.database.data.LSDDbLegacy.setPUpdate | ( | LSDDbAdmin | admin, | |
| long | lid, | |||
| int | status, | |||
| long | idadmin, | |||
| long | iduser, | |||
| long | idcomp, | |||
| long | idprot, | |||
| long | size, | |||
| String | name | |||
| ) | [static, private] |
Create the PreparedStatement for Update
| admin | ||
| lid | ||
| status | ||
| idadmin | ||
| iduser | ||
| idcomp | ||
| idprot | ||
| size | ||
| name |
| static LSDDbPreparedStatement openlsd.database.data.LSDDbLegacy.setPInsert | ( | LSDDbAdmin | admin, | |
| long | lid, | |||
| int | status, | |||
| long | idadmin, | |||
| long | iduser, | |||
| long | idcomp, | |||
| long | idprot, | |||
| long | size, | |||
| String | name | |||
| ) | [static, private] |
Create the PreparedStatement for Insert
| admin | ||
| lid | ||
| status | ||
| idadmin | ||
| iduser | ||
| idcomp | ||
| idprot | ||
| size | ||
| name |
| static LSDDbPreparedStatement openlsd.database.data.LSDDbLegacy.setPUpdate | ( | LSDDbAdmin | admin, | |
| long | lid, | |||
| int | status, | |||
| long | size | |||
| ) | [static, private] |
Create the PreparedStatement for Update
| admin | ||
| lid | ||
| status | ||
| size |
| static LSDDbPreparedStatement openlsd.database.data.LSDDbLegacy.setPUpdate | ( | LSDDbAdmin | admin, | |
| long | lid, | |||
| int | status | |||
| ) | [static, private] |
Create the PreparedStatement for Update For Lock
| admin | ||
| lid | ||
| status |
| static LSDDbPreparedStatement openlsd.database.data.LSDDbLegacy.setPDel | ( | LSDDbAdmin | admin, | |
| long | lid | |||
| ) | [static, private] |
Create the PreparedStatement for Delete
| admin | ||
| lid |
| static LSDDbPreparedStatement openlsd.database.data.LSDDbLegacy.setPGetforUpdate | ( | LSDDbAdmin | admin, | |
| long | lid | |||
| ) | [static, private] |
Create the PreparedStatement for GetforUpdate
| admin | ||
| lid |
| boolean openlsd.database.data.LSDDbLegacy.updateForLock | ( | LSDDbAdmin | admin | ) |
Update only to release DB object
| admin |
| static LSDDbLegacy openlsd.database.data.LSDDbLegacy.get | ( | LSDDbAdmin | admin, | |
| long | lid | |||
| ) | [static] |
| boolean openlsd.database.data.LSDDbLegacy.set | ( | LSDDbAdmin | admin | ) |
Update or Insert data into DB from object If lid is KO, then try to create a new one.
| admin |
| boolean openlsd.database.data.LSDDbLegacy.set | ( | LSDDbAdmin | admin, | |
| int | status, | |||
| long | size | |||
| ) |
Update some Values into BD
| admin | ||
| status | ||
| size |
| boolean openlsd.database.data.LSDDbLegacy.update | ( | LSDDbAdmin | admin | ) |
Update only data into DB from object
| admin |
| static boolean openlsd.database.data.LSDDbLegacy.del | ( | LSDDbAdmin | admin, | |
| long | lid | |||
| ) | [static] |
Del the Legacy object from DB
| admin | ||
| lid |
| static long openlsd.database.data.LSDDbLegacy.findFirstIndex | ( | LSDDbAdmin | admin | ) | [static] |
Find first available Legacy id for this object. No update are made into the DB. Legacy must be saved.
| admin |
| static ArrayList<LSDDbLegacy> openlsd.database.data.LSDDbLegacy.getLegacies | ( | LSDDbAdmin | admin | ) | [static] |
Return an array of Legacy
| admin |
| void openlsd.database.data.LSDDbLegacy.getLock | ( | LSDDbAdmin | admin | ) |
Get Lock for the current Legacy (Move/Insert/Delete)
| admin |
| void openlsd.database.data.LSDDbLegacy.unsetLock | ( | LSDDbAdmin | admin | ) |
Release the lock for the current Legacy (Move/Insert/Delete)
| admin |
| void openlsd.database.data.LSDDbLegacy.getLockNoSQL | ( | LSDDbAdmin | admin | ) | [private] |
Get Lock for the current Legacy (Move/Insert/Delete)
| admin |
| void openlsd.database.data.LSDDbLegacy.getLockNoJVM | ( | LSDDbAdmin | admin | ) | [private] |
Get Lock for the current Legacy (Move/Insert/Delete)
| admin |
| void openlsd.database.data.LSDDbLegacy.unsetLockNoJVM | ( | LSDDbAdmin | admin | ) | [private] |
Release the lock for the current Legacy (Move/Insert/Delete)
| admin |
| void openlsd.database.data.LSDDbLegacy.unsetLockNoSQL | ( | LSDDbAdmin | admin | ) | [private] |
Release the lock for the current Legacy (Move/Insert/Delete)
| admin |
| String openlsd.database.data.LSDDbLegacy.toString | ( | ) |
Object to String
The Legacy id
The status of this Legacy (on or off)
The Admin Service Id
The User Service Id
The User with Compression Service Id
The Protected Service Id
The size of each Storage of this Legacy
| String openlsd.database.data.LSDDbLegacy.name = null |
The Legacy name
final String openlsd.database.data.LSDDbLegacy.table = " lsdlegacy " [static] |
information for DB manipulation: Table name
final String [] openlsd.database.data.LSDDbLegacy.fields [static] |
Initial value:
{"LID","STATUS","IDADMIN","IDUSER",
"IDCOMP","IDPROT","SIZELEG","NAME"}
final int openlsd.database.data.LSDDbLegacy.rlid = 0 [static] |
DB field rank
final int openlsd.database.data.LSDDbLegacy.rstatus = 1 [static] |
DB field rank
final int openlsd.database.data.LSDDbLegacy.ridadmin = 2 [static] |
DB field rank
final int openlsd.database.data.LSDDbLegacy.riduser = 3 [static] |
DB field rank
final int openlsd.database.data.LSDDbLegacy.ridcomp = 4 [static] |
DB field rank
final int openlsd.database.data.LSDDbLegacy.ridprot = 5 [static] |
DB field rank
final int openlsd.database.data.LSDDbLegacy.rsize = 6 [static] |
DB field rank
final int openlsd.database.data.LSDDbLegacy.rname = 7 [static] |
DB field rank
final String openlsd.database.data.LSDDbLegacy.allfields [static, private] |
final String openlsd.database.data.LSDDbLegacy.insertfields [static, private] |
final ConcurrentHashMap<Long,LSDDbLegacy> openlsd.database.data.LSDDbLegacy.chashmap [static, private] |
Initial value:
new ConcurrentHashMap<Long,LSDDbLegacy>()
ReentrantLock openlsd.database.data.LSDDbLegacy.lock = null [private] |
Internal Lock