Package jakarta.annotation.sql
Annotation Type DataSourceDefinition
@Target(TYPE)
@Retention(RUNTIME)
@Repeatable(DataSourceDefinitions.class)
public @interface DataSourceDefinition
- Since:
- Common Annotations 1.1
- 
Required Element SummaryRequired Elements
- 
Optional Element SummaryOptional Elements
- 
Element Details
- 
- 
descriptionString description- Returns:
- the description
 - Default:
- ""
 
- 
urlString url- Returns:
- the url
 - Default:
- ""
 
- 
userString user- Returns:
- the user
 - Default:
- ""
 
- 
passwordString password- Returns:
- the password
 - Default:
- ""
 
- 
databaseNameString databaseName- Returns:
- database name
 - Default:
- ""
 
- 
portNumberint portNumber- Returns:
- the port number
 - Default:
- -1
 
- 
serverNameString serverName- Returns:
- the server name
 - Default:
- "localhost"
 
- 
isolationLevelint isolationLevel- Returns:
- the isolation level
 - Default:
- -1
 
- 
transactionalboolean transactional- Returns:
- true if the data source is transactional
 - Default:
- true
 
- 
initialPoolSizeint initialPoolSize- Returns:
- the initial pool size
 - Default:
- -1
 
- 
maxPoolSizeint maxPoolSize- Returns:
- the max pool size
 - Default:
- -1
 
- 
minPoolSizeint minPoolSize- Returns:
- the min pool size
 - Default:
- -1
 
- 
maxIdleTimeint maxIdleTime- Returns:
- the max idle time
 - Default:
- -1
 
- 
maxStatementsint maxStatements- Returns:
- the max statements
 - Default:
- -1
 
- 
propertiesString[] properties- Returns:
- a String[] with the properties
 - Default:
- {}
 
- 
loginTimeoutint loginTimeout- Returns:
- the login timeout
 - Default:
- 0
 
 
-