public class BICDirectory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APACHE_DERBY_JDBC_EMBEDDED_DRIVER
Default JDBC Driver
|
Constructor and Description |
---|
BICDirectory() |
Modifier and Type | Method and Description |
---|---|
java.util.List<BICRecord> |
branches(java.lang.String bic8)
Get all bic records for the given bic.
|
boolean |
exists(java.lang.String bic11)
Return true if bic11 exists in the BIC database.
|
java.util.List<BICRecord> |
query(java.lang.String bic,
boolean like)
Search the database of bics and return a BICRecord.
|
java.util.List<java.lang.String> |
subtypes()
List all distinct subtype of bics in database
|
public static final java.lang.String APACHE_DERBY_JDBC_EMBEDDED_DRIVER
public java.util.List<BICRecord> branches(java.lang.String bic8)
bic8
- a bic of 8 charactersjava.lang.IllegalArgumentException
- if bic8 is null
or bic8 is not an 8 chars length stringquery(String, boolean)
public boolean exists(java.lang.String bic11)
bic11
- an 11 chars long BIC, for validating a BIC of 8 chars, then append XXX at the endjava.lang.IllegalArgumentException
- if bic11 is null or bic11 is not an 11 chars length stringpublic java.util.List<BICRecord> query(java.lang.String bic, boolean like)
bic
- the bic to query must be 8 or 11 chars unless like is truelike
- set to true to query with like instead of = should be used with SQL wildcardsjava.lang.IllegalArgumentException
- if bic is null or not sized 8 or 11 charspublic java.util.List<java.lang.String> subtypes() throws java.sql.SQLException
java.sql.SQLException
- if an error occurs during the query