org.safehaus.penrose.connector
Class Connection
java.lang.Object
org.safehaus.penrose.connector.Connection
- All Implemented Interfaces:
- ConnectionMBean
- public class Connection
- extends java.lang.Object
- implements ConnectionMBean
- Author:
- Endi S. Dewata
|
Method Summary |
int |
add(SourceConfig sourceConfig,
Row pk,
AttributeValues sourceValues)
|
int |
bind(SourceConfig sourceConfig,
Row pk,
java.lang.String password)
|
void |
close()
|
int |
delete(SourceConfig sourceConfig,
Row pk)
|
AttributeValues |
get(SourceConfig sourceConfig,
Row pk)
|
Adapter |
getAdapter()
|
AdapterConfig |
getAdapterConfig()
|
PenroseSearchResults |
getChanges(SourceConfig sourceConfig,
int lastChangeNumber)
|
ConnectionConfig |
getConnectionConfig()
|
java.lang.String |
getConnectionName()
|
int |
getLastChangeNumber(SourceConfig sourceConfig)
|
java.lang.String |
getName()
|
java.lang.String |
getParameter(java.lang.String name)
|
java.util.Collection |
getParameterNames()
|
java.util.Map |
getParameters()
|
void |
init()
|
void |
load(SourceConfig sourceConfig,
Filter filter,
PenroseSearchControls sc,
PenroseSearchResults results)
|
int |
modify(SourceConfig sourceConfig,
Row pk,
java.util.Collection modifications)
|
java.lang.Object |
openConnection()
|
java.lang.String |
removeParameter(java.lang.String name)
|
void |
search(SourceConfig sourceConfig,
Filter filter,
PenroseSearchControls sc,
PenroseSearchResults results)
|
void |
setAdapter(Adapter adapter)
|
void |
setAdapterConfig(AdapterConfig adapterConfig)
|
void |
setConnectionConfig(ConnectionConfig connectionConfig)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Connection
public Connection(ConnectionConfig connectionConfig,
AdapterConfig adapterConfig)
getName
public java.lang.String getName()
- Specified by:
getName in interface ConnectionMBean
init
public void init()
throws java.lang.Exception
- Throws:
java.lang.Exception
close
public void close()
throws java.lang.Exception
- Throws:
java.lang.Exception
getConnectionConfig
public ConnectionConfig getConnectionConfig()
setConnectionConfig
public void setConnectionConfig(ConnectionConfig connectionConfig)
getAdapter
public Adapter getAdapter()
setAdapter
public void setAdapter(Adapter adapter)
getParameter
public java.lang.String getParameter(java.lang.String name)
getParameters
public java.util.Map getParameters()
getParameterNames
public java.util.Collection getParameterNames()
removeParameter
public java.lang.String removeParameter(java.lang.String name)
getConnectionName
public java.lang.String getConnectionName()
bind
public int bind(SourceConfig sourceConfig,
Row pk,
java.lang.String password)
throws java.lang.Exception
- Throws:
java.lang.Exception
search
public void search(SourceConfig sourceConfig,
Filter filter,
PenroseSearchControls sc,
PenroseSearchResults results)
throws java.lang.Exception
- Throws:
java.lang.Exception
load
public void load(SourceConfig sourceConfig,
Filter filter,
PenroseSearchControls sc,
PenroseSearchResults results)
throws java.lang.Exception
- Throws:
java.lang.Exception
add
public int add(SourceConfig sourceConfig,
Row pk,
AttributeValues sourceValues)
throws java.lang.Exception
- Throws:
java.lang.Exception
get
public AttributeValues get(SourceConfig sourceConfig,
Row pk)
throws java.lang.Exception
- Throws:
java.lang.Exception
modify
public int modify(SourceConfig sourceConfig,
Row pk,
java.util.Collection modifications)
throws java.lang.Exception
- Throws:
java.lang.Exception
delete
public int delete(SourceConfig sourceConfig,
Row pk)
throws java.lang.Exception
- Throws:
java.lang.Exception
getLastChangeNumber
public int getLastChangeNumber(SourceConfig sourceConfig)
throws java.lang.Exception
- Throws:
java.lang.Exception
getChanges
public PenroseSearchResults getChanges(SourceConfig sourceConfig,
int lastChangeNumber)
throws java.lang.Exception
- Throws:
java.lang.Exception
openConnection
public java.lang.Object openConnection()
throws java.lang.Exception
- Throws:
java.lang.Exception
getAdapterConfig
public AdapterConfig getAdapterConfig()
setAdapterConfig
public void setAdapterConfig(AdapterConfig adapterConfig)