Class BasicIdGenerator
- java.lang.Object
-
- org.fugerit.java.core.db.dao.idgen.BasicIdGenerator
-
- All Implemented Interfaces:
ConfigurableObject
,IdGenerator
- Direct Known Subclasses:
BasicSeqIdGenerator
public abstract class BasicIdGenerator extends Object implements IdGenerator
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BasicIdGenerator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
configure(Properties props)
Configure the object.void
configure(Element tag)
Configure the object.void
configureProperties(InputStream source)
Configure the object.void
configureXML(InputStream source)
Configure the object.DAOID
generateId()
abstract DAOID
generateId(Connection conn)
ConnectionFactory
getConnectionFactory()
boolean
isAutoCloseConnection()
void
setAutoCloseConnection(boolean autoCloseConnection)
void
setConnectionFactory(ConnectionFactory connectionFactory)
-
-
-
Method Detail
-
configure
public void configure(Properties props) throws ConfigException
Description copied from interface:ConfigurableObject
Configure the object.
- Specified by:
configure
in interfaceConfigurableObject
- Parameters:
props
- The property object to use for configuration.- Throws:
ConfigException
- If troubles arise during object configuration.
-
configureProperties
public void configureProperties(InputStream source) throws ConfigException
Description copied from interface:ConfigurableObject
Configure the object.
- Specified by:
configureProperties
in interfaceConfigurableObject
- Parameters:
source
- The input source to use for configuration.- Throws:
ConfigException
- If troubles arise during object configuration.
-
configureXML
public void configureXML(InputStream source) throws ConfigException
Description copied from interface:ConfigurableObject
Configure the object.
- Specified by:
configureXML
in interfaceConfigurableObject
- Parameters:
source
- The input source to use for configuration.- Throws:
ConfigException
- If troubles arise during object configuration.
-
configure
public void configure(Element tag) throws ConfigException
Description copied from interface:ConfigurableObject
Configure the object.
- Specified by:
configure
in interfaceConfigurableObject
- Parameters:
tag
- The tag object to use for configuration.- Throws:
ConfigException
- If troubles arise during object configuration.
-
generateId
public abstract DAOID generateId(Connection conn) throws DAOException
- Specified by:
generateId
in interfaceIdGenerator
- Throws:
DAOException
-
generateId
public DAOID generateId() throws DAOException
- Specified by:
generateId
in interfaceIdGenerator
- Throws:
DAOException
-
getConnectionFactory
public ConnectionFactory getConnectionFactory()
- Specified by:
getConnectionFactory
in interfaceIdGenerator
- Returns:
- the connectionFactory
-
setConnectionFactory
public void setConnectionFactory(ConnectionFactory connectionFactory)
- Specified by:
setConnectionFactory
in interfaceIdGenerator
- Parameters:
connectionFactory
- the connectionFactory to set
-
isAutoCloseConnection
public boolean isAutoCloseConnection()
-
setAutoCloseConnection
public void setAutoCloseConnection(boolean autoCloseConnection)
-
-