Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
*
*
Unless required by applicable law or agreed to in writing, software distributed under the
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.mhus.lib.adb.model;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.io.ObjectOutputStream;
import java.sql.Timestamp;
import java.util.Date;
import java.util.HashMap;
import java.util.UUID;
import de.mhus.lib.adb.DbDynamic;
import de.mhus.lib.adb.DbManager;
import de.mhus.lib.annotations.adb.DbType;
import de.mhus.lib.core.MDate;
import de.mhus.lib.core.MString;
import de.mhus.lib.core.config.IConfig;
import de.mhus.lib.core.io.MObjectInputStream;
import de.mhus.lib.core.pojo.PojoAttribute;
import de.mhus.lib.core.util.MUri;
import de.mhus.lib.core.util.Raw;
import de.mhus.lib.errors.MException;
import de.mhus.lib.sql.DbResult;
/**
* FieldPersistent class.
*
* @author mikehummel
* @version $Id: $Id
*/
public class FieldPersistent extends Field {
private String autoPrefix;
/**
* Constructor for FieldPersistent.
*
* @param manager a {@link de.mhus.lib.adb.DbManager} object.
* @param table a {@link de.mhus.lib.adb.model.Table} object.
* @param isPrimary a boolean.
* @param readOnly a boolean.
* @param attribute a {@link de.mhus.lib.core.pojo.PojoAttribute} object.
* @param attr2 a object.
* @param dynamicField a {@link de.mhus.lib.adb.DbDynamic.Field} object.
* @param features an array of {@link java.lang.String} objects.
* @throws de.mhus.lib.errors.MException if any.
*/
@SuppressWarnings("unchecked")
public FieldPersistent(
DbManager manager,
Table table,
boolean isPrimary,
boolean readOnly,
PojoAttribute> attribute,
IConfig attr2,
DbDynamic.Field dynamicField,
String[] features)
throws MException {
this.manager = manager;
this.table = table;
this.manager = table.manager;
this.nameOrg = attribute.getName();
this.name = manager.getPool().getDialect().normalizeColumnName(nameOrg.toLowerCase());
this.createName = nameOrg.toLowerCase();
this.methodName = nameOrg;
this.isPrimary = isPrimary;
this.attribute = (PojoAttribute