org.apache.derby.iapi.services.i18n
Interface LocaleFinder

All Known Subinterfaces:
Database
All Known Implementing Classes:
BasicDatabase, SlaveDatabase

public interface LocaleFinder

A LocaleFinder gets a Locale and things associated with Locales.


Method Summary
 java.util.Locale getCurrentLocale()
           
 java.text.DateFormat getDateFormat()
          Get a formatter for formatting dates.
 java.text.DateFormat getTimeFormat()
          Get a formatter for formatting times.
 java.text.DateFormat getTimestampFormat()
          Get a formatter for formatting timestamps.
 

Method Detail

getCurrentLocale

java.util.Locale getCurrentLocale()
                                  throws StandardException
Throws:
StandardException - Thrown on error

getDateFormat

java.text.DateFormat getDateFormat()
                                   throws StandardException
Get a formatter for formatting dates. The implementation may cache this value, since it never changes for a given Locale.

Throws:
StandardException - Thrown on error

getTimeFormat

java.text.DateFormat getTimeFormat()
                                   throws StandardException
Get a formatter for formatting times. The implementation may cache this value, since it never changes for a given Locale.

Throws:
StandardException - Thrown on error

getTimestampFormat

java.text.DateFormat getTimestampFormat()
                                        throws StandardException
Get a formatter for formatting timestamps. The implementation may cache this value, since it never changes for a given Locale.

Throws:
StandardException - Thrown on error

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.