@Deprecated public class JDBCPersistentIdStore extends AbstractInitializableComponent implements PersistentIdStore
This is a deprecated version that relies on the older, racy interface for
storage. It has been superseded by the JDBCPersistentIdStoreEx class.
| Modifier and Type | Field and Description |
|---|---|
private String |
creationTimeColumn
Deprecated.
Name of the creation time column.
|
private DataSource |
dataSource
Deprecated.
JDBC data source for retrieving connections.
|
private String |
deactivateSQL
Deprecated.
SQL used to deactivate an ID.
|
private String |
deactivationTimeColumn
Deprecated.
Name of the deactivation time column.
|
private String |
idEntrySelectSQL
Deprecated.
Partial select query for ID entries.
|
private String |
issuerColumn
Deprecated.
Name of the issuer entityID column.
|
private org.slf4j.Logger |
log
Deprecated.
Class logger.
|
private String |
peerProvidedIdColumn
Deprecated.
Name of recipient-attached alias column.
|
private String |
persistentIdColumn
Deprecated.
Name of the persistent ID column.
|
private String |
principalNameColumn
Deprecated.
Name of the principal name column.
|
private long |
queryTimeout
Deprecated.
Timeout of SQL queries in milliseconds.
|
private String |
recipientColumn
Deprecated.
Name of the recipient entityID column.
|
private String |
sourceIdColumn
Deprecated.
Name of the source ID column.
|
private String |
tableName
Deprecated.
Name of the database table.
|
| Constructor and Description |
|---|
JDBCPersistentIdStore()
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private List<PersistentIdEntry> |
buildIdentifierEntries(ResultSet resultSet)
Deprecated.
Builds a list of
PersistentIdEntrys from a result set. |
void |
deactivate(String persistentId,
DateTime deactivation)
Deprecated.
|
protected void |
doInitialize()
Deprecated.
|
PersistentIdEntry |
getActiveEntry(String persistentId)
Deprecated.
|
PersistentIdEntry |
getActiveEntry(String issuer,
String recipient,
String sourceId)
Deprecated.
|
int |
getCount(String issuer,
String recipient,
String sourceId)
Deprecated.
|
String |
getCreateTimeColumn()
Deprecated.
Get the name of the creation time column.
|
DataSource |
getDataSource()
Deprecated.
Get the source datasource used to communicate with the database.
|
String |
getDeactivationTimeColumn()
Deprecated.
Get the name of the deactivation time column.
|
private String |
getInsertSql()
Deprecated.
Code to build the INSERT SQL required by storePersistentIdEntry.
|
String |
getLocalEntityColumn()
Deprecated.
Get the name of the issuer entityID column.
|
private String |
getLogPrefix()
Deprecated.
Return a string which is to be prepended to all log messages.
|
String |
getPeerEntityColumn()
Deprecated.
Get the name of the recipient entityID column.
|
String |
getPeerProvidedIdColumn()
Deprecated.
Get the name of the peer-provided ID column.
|
String |
getPersistentIdColumn()
Deprecated.
Get the name of the persistent ID column.
|
private PersistentIdEntry |
getPersistentIdEntry(String persistentId,
boolean onlyActiveId)
Deprecated.
Get the entry for the given ID.
|
String |
getPrincipalNameColumn()
Deprecated.
Get the name of the principal name column.
|
long |
getQueryTimeout()
Deprecated.
Get the SQL query timeout.
|
String |
getSourceIdColumn()
Deprecated.
Get the name of the source ID column.
|
String |
getTableName()
Deprecated.
Get the table name.
|
boolean |
isAvailable(String persistentId)
Deprecated.
|
void |
setCreateTimeColumn(String name)
Deprecated.
Set the name of the creation time column.
|
void |
setDataSource(DataSource source)
Deprecated.
Set the source datasource used to communicate with the database.
|
void |
setDeactivationTimeColumn(String name)
Deprecated.
Set the name of the deactivation time column.
|
void |
setLocalEntityColumn(String name)
Deprecated.
Set the name of the issuer entityID column.
|
void |
setPeerEntityColumn(String name)
Deprecated.
Set the name of the recipient entityID column.
|
void |
setPeerProvidedIdColumn(String name)
Deprecated.
Set the name of the peer-provided ID column.
|
void |
setPersistentIdColumn(String name)
Deprecated.
Set the name of the persistent ID column.
|
void |
setPrincipalNameColumn(String name)
Deprecated.
Set the name of the principal name column.
|
void |
setQueryTimeout(long timeout)
Deprecated.
Set the SQL query timeout.
|
void |
setSourceIdColumn(String name)
Deprecated.
Set the name of the source ID column.
|
void |
setTableName(String name)
Deprecated.
Set the table name.
|
void |
store(PersistentIdEntry entry)
Deprecated.
|
protected void |
validatePersistentIdEntry(PersistentIdEntry entry)
Deprecated.
Check that the entry meets the constraints imposed by the SQL DDL.
|
destroy, doDestroy, initialize, isDestroyed, isInitialized@Nonnull private final org.slf4j.Logger log
@NonnullAfterInit private DataSource dataSource
@Duration @NonNegative private long queryTimeout
@Nonnull @NotEmpty private String issuerColumn
@Nonnull @NotEmpty private String recipientColumn
@Nonnull @NotEmpty private String principalNameColumn
@Nonnull @NotEmpty private String sourceIdColumn
@Nonnull @NotEmpty private String persistentIdColumn
@Nonnull @NotEmpty private String peerProvidedIdColumn
@Nonnull @NotEmpty private String creationTimeColumn
@Nonnull @NotEmpty private String deactivationTimeColumn
@NonnullAfterInit private String idEntrySelectSQL
@NonnullAfterInit private String deactivateSQL
@Nonnull @NotEmpty public String getTableName()
public void setTableName(@Nonnull@NotEmpty String name)
name - table name@Nonnull @NotEmpty public String getLocalEntityColumn()
public void setLocalEntityColumn(@Nonnull@NotEmpty String name)
name - name of issuer column@Nonnull @NotEmpty public String getPeerEntityColumn()
public void setPeerEntityColumn(@Nonnull@NotEmpty String name)
name - name of recipient column@Nonnull @NotEmpty public String getPrincipalNameColumn()
public void setPrincipalNameColumn(@Nonnull@NotEmpty String name)
name - name of principal name column@Nonnull @NotEmpty public String getSourceIdColumn()
public void setSourceIdColumn(@Nonnull@NotEmpty String name)
name - name of source ID column@Nonnull @NotEmpty public String getPersistentIdColumn()
public void setPersistentIdColumn(@Nonnull@NotEmpty String name)
name - name of the persistent ID column@Nonnull @NotEmpty public String getPeerProvidedIdColumn()
public void setPeerProvidedIdColumn(@Nonnull@NotEmpty String name)
name - name of peer-provided ID column@Nonnull @NotEmpty public String getCreateTimeColumn()
public void setCreateTimeColumn(@Nonnull@NotEmpty String name)
name - name of creation time column@Nonnull @NotEmpty public String getDeactivationTimeColumn()
public void setDeactivationTimeColumn(@Nonnull@NotEmpty String name)
name - name of deactivation time column@NonnullAfterInit public DataSource getDataSource()
public void setDataSource(@Nonnull DataSource source)
source - the data source@NonNegative @Duration public long getQueryTimeout()
@Duration public void setQueryTimeout(@Duration@NonNegative long timeout)
timeout - the timeout to set in millisecondsprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractInitializableComponentComponentInitializationExceptionpublic boolean isAvailable(@Nonnull@NotEmpty String persistentId) throws IOException
isAvailable in interface PersistentIdStoreIOExceptionpublic void store(@Nonnull PersistentIdEntry entry) throws IOException
store in interface PersistentIdStoreIOExceptionpublic int getCount(@Nonnull@NotEmpty String issuer, @Nonnull@NotEmpty String recipient, @Nonnull@NotEmpty String sourceId) throws IOException
getCount in interface PersistentIdStoreIOException@Nullable public PersistentIdEntry getActiveEntry(@Nonnull@NotEmpty String persistentId) throws IOException
getActiveEntry in interface PersistentIdStoreIOException@Nullable public PersistentIdEntry getActiveEntry(@Nonnull@NotEmpty String issuer, @Nonnull@NotEmpty String recipient, @Nonnull@NotEmpty String sourceId) throws IOException
getActiveEntry in interface PersistentIdStoreIOExceptionpublic void deactivate(@Nonnull@NotEmpty String persistentId, @Nullable DateTime deactivation) throws IOException
deactivate in interface PersistentIdStoreIOException@Nullable private PersistentIdEntry getPersistentIdEntry(@Nonnull@NotEmpty String persistentId, boolean onlyActiveId) throws IOException
persistentId - the persistent IDonlyActiveId - true if only an active ID should be returned, false if a deactivated ID may be returnedIOException - thrown if there is a problem communication with the databaseprotected void validatePersistentIdEntry(@Nonnull PersistentIdEntry entry) throws SQLException
entry - what to look atSQLException - if we go against the constraint.@Nonnull @NotEmpty private String getInsertSql()
@Nonnull @NonnullElements @Live private List<PersistentIdEntry> buildIdentifierEntries(@Nonnull ResultSet resultSet) throws SQLException
PersistentIdEntrys from a result set.resultSet - the result setPersistentIdEntrysSQLException - thrown if there is a problem reading the information from the databaseCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.