|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.dataobjects.BaseDataObject
com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject
com.jcorporate.expresso.core.dbobj.DBObject
com.jcorporate.expresso.core.dbobj.SecuredDBObject
com.jcorporate.expresso.ext.dbobj.ISOCountryCodes
com.jcorporate.expresso.ext.dbobj.ReverseLookupDomains
Class that maintains a database of all known top level domain codes. Useful
for testing whether a particular domain should be denied or not.
See RestrictedCountries for sample usage.
| Nested Class Summary |
| Nested classes inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
DBObject.FieldError, DBObject.FieldUpdate |
| Field Summary | |
static String |
FLD_DESCRIPTION
|
static String |
FLD_DOMAINCODE
|
static String |
FLD_NOTES
|
| Fields inherited from class com.jcorporate.expresso.ext.dbobj.ISOCountryCodes |
compiler, countryCodeLock, countryCodes, FLD_COUNTRY, FLD_ISOCODE, FLD_POSTALREGEXP, matcher, regExpCache, TABLE |
| Fields inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
ADD, ALL_FUNCTIONS, CACHE_NAME, CACHE_TTY, DELETE, SEARCH, SYSTEM_ACCOUNT, SYSTEM_ACCOUNT_NAME, UPDATE |
| Fields inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
ATTRIBUTE_ERROR, ATTRIBUTE_ERROR_MESSAGE, ATTRIBUTE_PAGE_LIMIT, BIG_DECIMAL_ZERO, EMAIL_MASK, EVENT_ADD, EVENT_DELETE, EVENT_UPDATE, FLOAT_MASK, INT_MASK, IS_CHECK_RELATIONAL_INTEGRITY, UPDATE_CHANGED_ONLY, WHERE_KEYWORD |
| Fields inherited from class com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject |
anyFieldsDistinct, anyFieldsToRetrieve, appendCustomWhere, caseSensitiveQuery, customWhereClause, dbKey, distinctFields, localConnection, LONGBINARY_READ_DEFAULT_SIZE, maxRecords, myClassName, myUpdates, offsetRecord, recordSet, retrieveFields, sMetadataMap, sortKeys |
| Fields inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
currentStatus, globalMask |
| Fields inherited from interface com.jcorporate.expresso.core.dataobjects.DataObject |
STATUS_CURRENT, STATUS_DELETED, STATUS_NEW, STATUS_UPDATED |
| Constructor Summary | |
ReverseLookupDomains()
Constructor |
|
ReverseLookupDomains(DBConnection myConnection)
Constructor |
|
ReverseLookupDomains(int uid)
Use over (String) constructor. |
|
ReverseLookupDomains(RequestContext request)
For using DBObjects within Controllers. |
|
| Method Summary | |
String |
getDomainId(String ipAddress)
Use this function to lookup any domain names given the InetAddress |
int |
getExpectedDefaultPopulation()
Useful method for unit testing to make sure that everything got added during setup as expected. |
protected String[][] |
getInternetCodes()
|
DBObject |
getThisDBObj()
This will return a new object of the type of the subclass. |
Vector |
getValues()
Method to return a Vector of ValidValue Template method--not implemented in this superclass. |
void |
populateDefaultValues()
This function populates the table with the current listing of ISO country codes |
protected void |
setupFields()
Sets up the fields for use in this database |
| Methods inherited from class com.jcorporate.expresso.ext.dbobj.ISOCountryCodes |
checkPostalCode, getCountryCodes |
| Methods inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
add, canRequesterAdd, canRequesterDelete, canRequesterRead, canRequesterUpdate, checkAllowed, copyAttributes, count, createSecurityCache, delete, deleteAll, find, getRequestingUid, getString, getString, getString, getString, getString, getString, getSystemUid, instantiate, isAllowed, retrieve, search, searchAndRetrieveList, searchAndRetrieveList, setRequestingUid, update |
| Methods inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
getGlobalMask, getStatus, isGlobalMasked, setFieldsWithDefaults, setGlobalMask, setStatus |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String FLD_DOMAINCODE
public static final String FLD_DESCRIPTION
public static final String FLD_NOTES
| Constructor Detail |
public ReverseLookupDomains()
throws DBException
DBException - if there's an initialization problem
public ReverseLookupDomains(DBConnection myConnection)
throws DBException
myConnection - database connection for transactions
DBException - if there's an initialization problem
public ReverseLookupDomains(int uid)
throws DBException
uid - the Uid of the user context
DBException - if there's an initialization problem
public ReverseLookupDomains(RequestContext request)
throws DBException
request - - The controller request handed to you by the framework.
DBException - if there's an initialization problem| Method Detail |
public void populateDefaultValues()
throws DBException
populateDefaultValues in class ISOCountryCodesDBException - if an error occurs while populating the table.DBObject.populateDefaultValues()public int getExpectedDefaultPopulation()
getExpectedDefaultPopulation in class ISOCountryCodes
public Vector getValues()
throws DBException
DBObject
getValues in interface LookupInterfacegetValues in class ISOCountryCodesDBException - If the values cannot be retrieved
public DBObject getThisDBObj()
throws DBException
DBObjectreturn new MyObject()
if you want greatest efficiency. For example: A DBObject called "Customer" should return a new "Customer" object. the implementation in DBObject uses getClass().newInstance(), which seems to be about 50% slower than "new MyObject()" calls on JDK 1.4 Note that this method should never be called directly. It should only be called by newInstance()
getThisDBObj in class DBObjectDBException - if an error occurs while instantiating the objectDBObject.getThisDBObj()
protected void setupFields()
throws DBException
setupFields in class ISOCountryCodesDBException - if an error occurs while instantiating the objectprotected String[][] getInternetCodes()
public String getDomainId(String ipAddress)
throws DBException
ipAddress - the address to check
DBException - if an error occurs
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||