| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | ConnectionCustomizer.Empty
INTERNAL: Empty customizer that does nothing. |
| Modifier and Type | Field and Description |
|---|---|
| protected Accessor | |
| private ConnectionCustomizer | |
| protected Session |
| Access | Constructor and Description |
|---|---|
| protected | ConnectionCustomizer(Accessor accessor, Session session)
INTERNAL: Constructor accepts the accessor to which the customizer will be applied and the session that used for customization. |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public static ConnectionCustomizer | |
| public abstract void | |
| public Accessor | |
| public ConnectionCustomizer | |
| public Session | |
| public abstract boolean | |
| pack-priv void | |
| public void |
| accessor | back to summary |
|---|---|
| protected Accessor accessor | |
| prevCustomizer | back to summary |
|---|---|
| private ConnectionCustomizer prevCustomizer | |
| session | back to summary |
|---|---|
| protected Session session | |
| ConnectionCustomizer | back to summary |
|---|---|
| protected ConnectionCustomizer(Accessor accessor, Session session) INTERNAL: Constructor accepts the accessor to which the customizer will be applied and the session that used for customization. The accessor and the session couldn't be altered during the connector's lifetime, the only exception is of the new accessor by DatasourceAccessor.clone method. | |
| clear | back to summary |
|---|---|
| public abstract void clear() INTERNAL: Clears customization from connection. Called only if connection is customized (isActive()==true). If the method fails due to SQLException it should "eat" it (just like DatasourceAccessor.closeConnection method). isActive method called after this method should always return false. | |
| createEmptyCustomizer | back to summary |
|---|---|
| public static ConnectionCustomizer createEmptyCustomizer(Session session) | |
| customize | back to summary |
|---|---|
| public abstract void customize() INTERNAL: Applies customization to connection. Called only if connection is not already customized (isActive()==false). The method may throw SQLException wrapped into DatabaseException. isActive method called after this method should return true only in case the connection was actually customized. | |
| getAccessor | back to summary |
|---|---|
| public Accessor getAccessor() INTERNAL: | |
| getPrevCustomizer | back to summary |
|---|---|
| public ConnectionCustomizer getPrevCustomizer() INTERNAL: | |
| getSession | back to summary |
|---|---|
| public Session getSession() INTERNAL: | |
| isActive | back to summary |
|---|---|
| public abstract boolean isActive() INTERNAL: Indicated whether the connection is currently customized. | |
| setAccessor | back to summary |
|---|---|
| pack-priv void setAccessor(Accessor accessor) INTERNAL: Used only by DatasourceAccessor.clone method. | |
| setPrevCustomizer | back to summary |
|---|---|
| public void setPrevCustomizer(ConnectionCustomizer prevCustomizer) INTERNAL: | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements abstract org. |
| public void | customize()
Implements abstract org. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public boolean | isActive()
Implements abstract org. |
| Empty | back to summary |
|---|---|
| public Empty(Accessor accessor, Session session) | |
| clear | back to summary |
|---|---|
| public void clear() Implements abstract org. Doc from org. INTERNAL: Clears customization from connection. Called only if connection is customized (isActive()==true). If the method fails due to SQLException it should "eat" it (just like DatasourceAccessor.closeConnection method). isActive method called after this method should always return false.
| |
| customize | back to summary |
|---|---|
| public void customize() Implements abstract org. Doc from org. INTERNAL: Applies customization to connection. Called only if connection is not already customized (isActive()==false). The method may throw SQLException wrapped into DatabaseException. isActive method called after this method should return true only in case the connection was actually customized.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| isActive | back to summary |
|---|---|
| public boolean isActive() Implements abstract org. Doc from org. INTERNAL: Indicated whether the connection is currently customized.
| |