예제 #1
0
  public final String findRolePermissions(String sRole) {

    try {
      return Formats.BYTEA.formatValue(m_rolepermissions.find(sRole));
    } catch (BasicException e) {
      return null;
    }
  }
예제 #2
0
 private int getMaxSortOrder() {
   try {
     Object result = m_sentmaxsortorder.find();
     if (result != null) return (int) result;
   } catch (BasicException e) {
   }
   return 0;
 }
예제 #3
0
  //    private final byte[] getResource(String name) {
  private byte[] getResource(String name) {

    byte[] resource;

    resource = resourcescache.get(name);

    if (resource == null) {
      // Primero trato de obtenerlo de la tabla de recursos
      try {
        resource = (byte[]) m_resourcebytes.find(name);
        resourcescache.put(name, resource);
      } catch (BasicException e) {
        resource = null;
      }
    }

    return resource;
  }
예제 #4
0
 public final String findLocationName(String iLocation) throws BasicException {
   return (String) m_locationfind.find(iLocation);
 }
예제 #5
0
 public final Object[] findActiveCash(String sActiveCashIndex) throws BasicException {
   return (Object[]) m_activecash.find(sActiveCashIndex);
 }
예제 #6
0
 public final int getSequenceCash(String host) throws BasicException {
   Integer i = (Integer) m_sequencecash.find(host);
   return (i == null) ? 1 : i.intValue();
 }
예제 #7
0
 public final AppUser findPeopleByCard(String card) throws BasicException {
   return (AppUser) m_peoplebycard.find(card);
 }
예제 #8
0
 public final String findVersion() throws BasicException {
   return (String) m_version.find(AppLocal.APP_ID);
 }