|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sybase.persistence.ConnectionManager
public final class ConnectionManager
Method Summary | |
---|---|
void |
deleteConnection(Connection connection)
Deletes given connection |
static void |
endSetDefaultConnection(Connection connection)
Sybase internal use only. |
int |
getCacheSize()
Returns the cache size |
Connection |
getConnection(java.lang.String name)
Gets the Connection by name. |
Connection |
getConnectionById(java.lang.String uuid)
Gets the Connection by uuid. |
Connection[] |
getConnections()
Gets all saved Connection objects. |
Connection |
getDefaultConnection()
Gets the default connection. |
static ConnectionManager |
getInstance()
Gets the singleton instance of |
int |
getPageSize()
Returns the page size |
static boolean |
isUsingDynamicPublication()
|
void |
saveConnection(Connection connection)
Saves or updates the specified Connection . |
void |
setCacheSize(int size)
Sets the cache size |
void |
setDefaultConnection(Connection connection)
Sybase internal use only. |
void |
setPageSize(int size)
Sets the page size |
static void |
useDynamicPublication(boolean useDynamicPublication)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ConnectionManager getInstance()
ConnectionManager
.public void deleteConnection(Connection connection)
profile
- public Connection getConnection(java.lang.String name)
Connection
by name.
name
- The name of connection to find.
Connection
or a null reference if
not found.public Connection getConnectionById(java.lang.String uuid)
Connection
by uuid.
uuid
- The uuid of connection to find.
Connection
or a null reference if
not found.public Connection[] getConnections()
Connection
objects.
public Connection getDefaultConnection()
public void setDefaultConnection(Connection connection)
public static void endSetDefaultConnection(Connection connection)
public void saveConnection(Connection connection)
Connection
.
connection
- The Connection
to save or update.public void setPageSize(int size)
size
- public void setCacheSize(int size)
size
- public int getPageSize()
public int getCacheSize()
public static boolean isUsingDynamicPublication()
public static void useDynamicPublication(boolean useDynamicPublication)
useDynamicPublication
- The useDynamicPublication to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |