com.gentics.api.lib.datasource
Interface DatasourceHandle


public interface DatasourceHandle

Interface for a datasource handle


Method Summary
 void close()
          Close the datasource handle
 DatasourceDefinition getDatasourceDefinition()
          Get the datasource definition
 java.lang.Exception getLastException()
          Get the last exception
 void init(java.util.Map parameters)
          Initialize the datasource handle with the given parameters
 boolean isAlive()
          Check whether the connection is still alive
 

Method Detail

init

void init(java.util.Map parameters)
Initialize the datasource handle with the given parameters

Parameters:
parameters - map of parameters

close

void close()
Close the datasource handle


getDatasourceDefinition

DatasourceDefinition getDatasourceDefinition()
Get the datasource definition

Returns:
datasource definition

isAlive

boolean isAlive()
Check whether the connection is still alive

Returns:
true when the connection is alive, false if not

getLastException

java.lang.Exception getLastException()
Get the last exception

Returns:
last exception or null


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.