|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.jsqltool.utils.Options
Title: JSqlTool Project
Description: This is a singleton class used to store application properties.
Copyright: Copyright (C) 2006 Mauro Carniel
This file is part of JSqlTool project. This library is free software; you can redistribute it and/or modify it under the terms of the (LGPL) Lesser General Public License as published by the Free Software Foundation; GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author may be contacted at: maurocarniel@tin.it
| Method Summary | |
java.lang.String |
decode(java.lang.String text)
Decrypt text. |
java.lang.String |
decodeFromBytes(byte[] text)
Decrypt text. |
java.lang.String |
encode(java.lang.String text)
Encrypt text. |
byte[] |
encodeToBytes(java.lang.String text)
Encrypt text. |
java.lang.String |
getDateFormat()
|
static Options |
getInstance()
|
java.lang.String |
getLanguage()
|
java.lang.String |
getOracleExplainPlanTable()
|
java.lang.String |
getResource(java.lang.String key)
|
boolean |
isUpdateWhenNoPK()
|
void |
setDateFormat(java.lang.String dateFormat)
Set date format. |
void |
setLanguage(java.lang.String language)
Set language id to be used inside the application. |
void |
setOracleExplainPlanTable(java.lang.String oracleExplainPlanTable)
Set Oracle PLAN table, used to execute query explain. |
void |
setUpdateWhenNoPK(boolean updateWhenNoPK)
Allow record updating when no pk is defined |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Options getInstance()
public java.lang.String getDateFormat()
public final java.lang.String getOracleExplainPlanTable()
public final boolean isUpdateWhenNoPK()
public final void setUpdateWhenNoPK(boolean updateWhenNoPK)
updateWhenNoPK - allow record updating when no pk is definedpublic final void setOracleExplainPlanTable(java.lang.String oracleExplainPlanTable)
oracleExplainPlanTable - Oracle PLAN table, used to execute query explainpublic final void setDateFormat(java.lang.String dateFormat)
dateFormat - date formatpublic final java.lang.String getLanguage()
public final void setLanguage(java.lang.String language)
language - language id to be used inside the applicationpublic final java.lang.String getResource(java.lang.String key)
key - key to translate
public final java.lang.String encode(java.lang.String text)
throws javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException,
java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
text - text to encrypt
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
public final java.lang.String decode(java.lang.String text)
throws javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException,
java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
text - text to decrypt
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
public final byte[] encodeToBytes(java.lang.String text)
throws javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException,
java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
text - text to encrypt
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
public final java.lang.String decodeFromBytes(byte[] text)
throws javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException,
java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
text - text to decrypt
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||